]> granicus.if.org Git - php/commit
zend_make_printable_zval choses cast_object over __toString
authorLeigh <leight@gmail.com>
Fri, 10 Aug 2012 10:09:25 +0000 (11:09 +0100)
committerLeigh <leight@gmail.com>
Fri, 10 Aug 2012 10:09:25 +0000 (11:09 +0100)
commita5dfd414941953c282bb68f6b08685252ca93a1a
tree6807f495ad234e3459206097c47cbb42b01b9b8a
parent7e4c0125dac2167b13ff279d8213ee46be45d4c7
zend_make_printable_zval choses cast_object over __toString

https://bugs.php.net/bug.php?id=62328

Added a check to see if the object implements a __toString magic
method. This should be called instead of the cast_object method of
built-in classes when defined.
Zend/zend.c