At 23:00 10-6-2002, Sean shared with all of us:

>>>Hmm, I see.
>>>I suppose (?<=\[)\w+(?=\]) as an exeption to accomodate those errors 
>>>would be too hard on the parser?
>>
>>Adding such an exception to the parser is definitely a no-no.
>
>Also:
>
>$a = array('cow' => 'moo', 'pig' => 'oink');
>$b = pig;
>echo $a[$b];
>
>now echo "oink"
>but with the change would then echo "moo"
>
>I agree that it's messed up and just plain wrong, but it would break a lot 
>of stuff.

Shees....
So if someone in the include/require tree, would define('pig', 'cow') the 
pig would say moo and you'd be seeing a vet before you located it.

I see these warnings about 'undefined index foo, assuming foo' on E_ALL 
level if I'm correct. Could we not lower this debuglevel to say E_NOTICE? 
Then advertise the error and obsolete it in PHP 6? People have then had 
ample time to correct this.

At least could someone with enough karma on phpdoc review and apply the 
attached patch?

Met vriendelijke groeten / With kind regards,

IDG.nl
Melvyn Sopacua
Webmaster
-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to