On 8/25/09 5:00 AM, "Ralph Deffke" <ralph_def...@yahoo.de> wrote:

> of course its a syntax error, because unset() IS NOT A FUNCTION its a
> language construct

that's hard to believe. i can't imagine how the compiler could reliably
predict if the argument will be set or not when the unset line is executed.


> "Stuart" <stut...@gmail.com> wrote in message
> news:a5f019de0908250201g14e4b61cn73c6cd67da6f...@mail.gmail.com...
>> 2009/8/25 Ralph Deffke <ralph_def...@yahoo.de>:
>>> causes an error
>>> Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'$''
> in
>>> C:\wamp\www\TinyCreator\testCrapp6.php on line 42
>> 
>> This is a syntax error, not a runtime error. You've clearly done
>> something wrong.
>> 
>>> "Tom Worster" <f...@thefsb.org> wrote in message
>>> news:c6b87877.11463%...@thefsb.org...
>>>> is it the case that unset() does not trigger an error or throw an
>>> exception
>>>> if it's argument was never set?
>> 
>> Absolutely.
>> 
>> -Stuart
>> 
>> -- 
>> http://stut.net/
> 
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to