diff options
author | Nikita Popov <nikic@php.net> | 2016-01-12 16:31:58 +0100 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2016-03-30 22:49:27 +0200 |
commit | b1e854f7762b2e0648ddc240835cb446ee4d20a7 (patch) | |
tree | d1c5812010a92972869fc74828235dda260d937d /main/php_main.h | |
parent | 1866ab2d1e1dfb8ada2414fea373c32b8a195eec (diff) | |
download | php-git-b1e854f7762b2e0648ddc240835cb446ee4d20a7.tar.gz |
Fix bug #71334
Always duplicate the array before doing a sort with user-defined
comparison function, to avoid access to the intermediate
inconsistent state.
I've also dropped the "array modification" warning, as protection
against modifications is no longer relevant if we're always working
on a copy anyway.
This also required some changes to how SplArray forwards calls to
sorting functions.
Diffstat (limited to 'main/php_main.h')
0 files changed, 0 insertions, 0 deletions