From: thought at phenomind dot com Operating system: Windows XP PHP version: 5CVS-2003-12-26 (dev) PHP Bug Type: Class/Object related Bug description: get_class() and __CLASS__ causing crashes and erratic behaviour
Description: ------------ Apologise for not being able to describe this better or give example code. get_class() and __CLASS__ cause PHP5 to behave erratically. Sometimes changes the data within the [argument] object and often causes Apache to crash. Problems experienced on Windows XP. Same problem also caused a Dual Processor Mac OS-X box to soak up CPU time 1 processor. Script calls get_class() many, many times or complex, composite objects. The erratic behaviour is very hard to pin down but the source is definitely get_class(). PHP5 objects are not very happy with this function. Reproduce code: --------------- I can say: print_r($object); print get_class($object); print_r($object); Expected result: ---------------- 1) object dump 2) Name of object 3) same object dump Actual result: -------------- 1) object dump 2) Name of object 3) object dump with probably one property changed No other code in the middle to cause this behaviour. -- Edit bug report at http://bugs.php.net/?id=26724&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26724&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26724&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26724&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26724&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26724&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26724&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26724&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26724&r=support Expected behavior: http://bugs.php.net/fix.php?id=26724&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26724&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26724&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26724&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26724&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26724&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26724&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26724&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26724&r=float
