mirror of
https://github.com/php/php-src.git
synced 2026-04-21 15:08:16 +02:00
19ddc62778
As shown on the CI runs on my fork (which runs with UBSAN), the pointers can sometimes be unaligned when trying to write. This is UB and on platforms like ARM this *can* result in a bus error. Replace it with memcpy, which at least on x86 and powerpc architectures does result in the same assembly code. Closes GH-10940.