ID:               26724
 User updated by:  thought at phenomind dot com
 Reported By:      thought at phenomind dot com
 Status:           Open
 Bug Type:         Class/Object related
 Operating System: Windows XP
 PHP Version:      5CVS-2003-12-26 (dev)
 New Comment:

Problems also with get_object_vars()

If my script has this function anywhere, PHP5 produces erratic results.


Previous Comments:
------------------------------------------------------------------------

[2003-12-26 22:34:17] thought at phenomind dot com

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 this bug report at http://bugs.php.net/?id=26724&edit=1

Reply via email to