]> granicus.if.org Git - php/commit
- Have __toString() be called if available in all places an object is used
authorMarcus Boerger <helly@php.net>
Wed, 5 Oct 2005 19:02:27 +0000 (19:02 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 5 Oct 2005 19:02:27 +0000 (19:02 +0000)
commit7c083fcc0790105e4d56f91d68401e95e3f8a769
tree14938145b27e5905563a8d697f3ae99b7982cc0a
parent12dbad3a5c8b3ed65d09c184ccbac357f7bbf5cd
- Have __toString() be called if available in all places an object is used
  as a string.
#
# Note that "Object #<id>" is no longer afallback for debugging purpose use
# var_dump, which was made for debugging. If you used this to grab the id
# of an object you can never rely on this. For object storage look at SPL's
# ObjectStorage class.
#
# Note the signature change in the cast handler:
#
# int (*cast_t)(zval *readobj, zval *writeobj, int type, int should_free TSRMLS_DC);
# int (*cast_t)(zval *readobj, zval *retval, int type TSRMLS_DC);
Zend/zend.c
Zend/zend_API.c
Zend/zend_execute.h
Zend/zend_object_handlers.c
Zend/zend_object_handlers.h
Zend/zend_operators.c