From: proton at fangen dot net Operating system: Windows XP Home Edition PHP version: 5CVS-2003-07-08 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: Object ID number does not increase
Description: ------------ When creating an object, each created object should have a unique (zend engine 2 internal) Object ID, right? The code below always prints "Object id #1", i.e. the objects have the same ID. Although they are instances of an empty (no methods or properties) class, I had the same problem with classes that did have methods and/or properties. Here's a short script that reproduces the problem: Reproduce code: --------------- class MyClass { } function test() { $c = new MyClass(); print $c; // Will always print "Object id #1" } test(); test(); Expected result: ---------------- Object id #1 Object id #2 Actual result: -------------- Object id #1 Object id #1 -- Edit bug report at http://bugs.php.net/?id=24546&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24546&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24546&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24546&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24546&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24546&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24546&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24546&r=support Expected behavior: http://bugs.php.net/fix.php?id=24546&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24546&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24546&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24546&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24546&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24546&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24546&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24546&r=gnused