]> granicus.if.org Git - php/commit
Fix SXE->string cast for __toString in inheriting class
authorNikita Popov <nikic@php.net>
Sat, 3 May 2014 08:49:10 +0000 (10:49 +0200)
committerNikita Popov <nikic@php.net>
Sat, 3 May 2014 09:29:08 +0000 (11:29 +0200)
commit42d4adabbd5f497ff8117aac44d2b178854e587b
tree1b58bc25ab7ca85e177bb93a0431095accc1ec08
parent65f488ece3f946d53b12b8c265185a483b079dfb
Fix SXE->string cast for __toString in inheriting class

This issue was originally hacked around in zend_make_printable_zval.
I've now moved the overridden __toString() handling into the SXE
cast_object handler, so everything invoking that handler
(zend_make_printable_zval, convert_to_string, zval_get_string,
and various other more obscure usages) see the same behavior.
Zend/zend.c
Zend/zend_operators.c
ext/simplexml/simplexml.c