Hello Pierre,

Wednesday, July 19, 2006, 3:56:15 PM, you wrote:

> On Wed, 19 Jul 2006 15:32:42 +0200
> [EMAIL PROTECTED] (Christian Stocker) wrote:

>> 
>> 
>> On 19.7.2006 15:24 Uhr, Richard Quadling wrote:
>> > For PHP 5.2.0-dev (cli) (built: Jul 12 2006 12:20:25), I get ...
>> > 
>> > Fatal error: Cannot use array returned from foo::__get('bar') in
>> > write context in C:\- on line 16
>> > 
>> > But only once, not 1 per line.
>> > 
>> > $f = new foo();
>> > $a = $f->bar;
>> > foreach($a as $key => $value)
>>  >
>>  > fixes the code.
>>  >
>> 
>> I know (forgot to mention it), but still annoying as I have to fix a
>> lot of lines to do that.
>> 
>> If there are technical reasons for the fatal error, fine, I have to
>> live with it then.

> If there is good reasons for this change, it should be a good candidate
> for E_STRICT but not E_FATAL/RECOVERABLE.

Wrong answer and not an option at all - sorry. But we are actually
preventing potential SEGVs here. Just like the mighty reference thing that
lead to PHP 4.4.

> We should also have a notice in the upgrading notes. I can do it as
> soon as we agreed on a solution.

Why not write one since you are obviously aware of this. I wasn't until this
very momnet as i never use __get(), since i know it has too many issues and
causes to many problems. So here i am probbaly the wrong person to write
something.

Best regards,
 Marcus

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to