T_CONCAT_EQUAL operator and object's write/read handlers
| From: | Piotr Pokora | Date: | Fri, 30 May 2008 19:49:39 +0000 |
| Subject: | T_CONCAT_EQUAL operator and object's write/read handlers | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-5476@lists.php.net to get a copy of this message | ||
Hi!
Why write_property handler is not invoked when concatenation operator is
used in such case?
$obj->prop .= 'a more text here';
It works fine in such example:
$obj->prop = $obj->prop . 'a more text here';
In first example only read handler is invoked ,whilst read and write
ones in latter.
I doubt it's write handler issue. Should I have another handler like
get_property_ptr_ptr_t?
Piotras