On Wed, 19 Jul 2006 19:22:47 +0400 [EMAIL PROTECTED] ("Dmitry Stogov") wrote:
> __get() never worked in write context proper. > It just CAN NOT work proper, because __get() returns by value > (zval*), but modification requires address (zval**). > We have a lot of __get() related bugs because of this situation in > bugs.php.net. > > Month ago Marcus disabled usage of __get() in write context and I am > completely agree with him > We cannot use E_STRICT for this error and then SIGSEGV. I agree too with the write mode. What I do not really understand is why this script produces a write mode, there is actually no write operations outside the hash position. For what Dmitri explained, foreach uses array in write context. It is required when foreach is done by ref. The open question is to know if it is possible to work in read mode in this case. Please reopen or create a bug report about this issue and assign it to Dmitri (requested by Dmitri). Cheers, -- Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php