Image

Imagewechsler wrote in Imagephp

PHP4/5 Heisenbug

SOLVED (or at least fixed) - see comments.


Slightly more complex, or at least much weirder, that the usual fare in here...


I have some client code that I'm trying to port from PHP4 to PHP5. Unfortunately it's displaying some really odd object-related behaviour, in that when I access a class member in PHP4 it's there, and when I try in PHP5 it's NULL (but the class seems fine).

Debugging this is further complicated by the fact that when I do var_dump()s on the target object AND the object accessing it, the member is present, correct and non-NULL.

Anyone got any really cunning ideas? What, exactly, is var_dump doing that I'm not aware of?