]> granicus.if.org Git - php/commit
Support references in convert_to_*
authorNikita Popov <nikic@php.net>
Tue, 16 Jun 2015 17:55:33 +0000 (19:55 +0200)
committerNikita Popov <nikic@php.net>
Tue, 16 Jun 2015 17:55:33 +0000 (19:55 +0200)
commitfb346c8f9376d4a0be80e242406c1bb8dbf710f0
treeb811032a8d998fbd4d080fdc73bc3d0111aadaa9
parent4448843b7c72e6fb28b67d20f9cc6b2519ff2798
Support references in convert_to_*

conver_to_* functions now accept REFERENCE values, which will be
unwrapped before performing the usual conversion. This is consistent
with convert_scalar_to_number and matches the expected behavior in
a couple random use-sites I checked.

Also includes a couple fixes/cleanups elsewhere and two tests for
cases that previously didn't work (though the reference issue existed
all over the place).
Zend/zend_operators.c
ext/spl/spl_heap.c
ext/spl/spl_iterators.c
ext/spl/tests/RegexIterator_with_reference_replacement.phpt [new file with mode: 0644]
ext/spl/tests/SplHeap_with_by_reference_compare.phpt [new file with mode: 0644]
ext/standard/array.c