Re: Very Weird Behavior



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/
.



Relevant Pages

  • Addendum Re: Internet Explorer Pop-Up OBJECT Tag Bug
    ... adding an addendum about the bug which Dave ... able to control the execution of software). ... Download unsigned Activex controls - Disable ... Safe for Scripting - Disable ...
    (Bugtraq)
  • Re: Switch statement help
    ... Also remember a very annoying cross-language bug in switch ... It's like having to put break after each function body so execution ... function bar() { ... maybe to have a flag to "continue" execution of underlaying branches - ...
    (comp.lang.javascript)
  • Re: Cocoa/Obj-C: Segmentation Faults
    ... circumvents the Segmentation faults and execution is complication free. ... you seem to not know what a SIGSEGV is; all that means is that your program ... you don't "fix a SIGSEGV," you fix your bug which caused it. ... the value of 'tptr' will be whatever happens to be lying around in memory at ...
    (comp.sys.mac.programmer.help)
  • Re: IE javascript bug: global variable
    ... Global variable declarations result in properties of the ... actual execution of code in that context. ... That's another aspect of this bug that puzzles me; ... both variable instantiation and actual code ...
    (comp.lang.javascript)