PHP4/5 Heisenbug

    Date: 08/04/05 (PHP Community)    Keywords: php

    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?

    Source: http://www.livejournal.com/community/php/330520.html

« getting rid of unwanted... || Ack - cant wrap my head... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home