You are here: Re: Very Weird Behavior « PHP Programming Language « IT news, forums, messages
Re: Very Weird Behavior

Posted by Alan Little on 11/26/05 17:17

Carved in mystic runes upon the very living rock, the last words of
Erwin Moller of comp.lang.php make plain:

>> The result? The file returns with no execution, not even of code
>> before the problem, and with no error message, not so much as a
>> notice. It took me a good while to narrow it down and spot the
>> problem (there's quite a bit of code before this in the file). I knew
>> the file was being called, but even an echo statement at the very
>> beginning produced no output. The execution of the main script was
>> not affected.
>>
>> I thought this might save someone else a bit of time if they happen
>> to have the same problem.
>
> Sorry, I think you code in a weird way..

Perhaps, but it has no bearing on the issue. That is, if I used isset()
instead, perhaps it wouldn't tickle this particular bug, but it is in
fact a bug. Which reminds me, I should report it.

> What do you expect from if($varname) ?

I expect PHP to tell me if it has a problem. While if ($var) may not be
ideal coding practice, it is legal.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация