From:             dstarr at allofe dot net
Operating system: Suse 9
PHP version:      5.0.5
PHP Bug Type:     Scripting Engine problem
Bug description:  Zend Engine 1 Compatibility not copying objects correctly

Description:
------------
When zend.ze1_compatibility_mode is On, copying objects that have
references to other objects the object that was referenced is copied
instead of the reference itself.

The Expected Results were obtained by using PHP 4.4.0
The Actual is a result of running on 5.0.5

Reproduce code:
---------------
$a->y = &new stdClass();
print_r($a);
echo "<br/>";
$b = $a;
$a->y->z = 1;
print_r($b);


Expected result:
----------------
// Expected Output
// stdClass Object ( [y] => stdClass Object ( ) ) 
// stdClass Object ( [y] => stdClass Object ( [z] => 1 ) ) 

Actual result:
--------------
// Actual Output
// stdClass Object ( [y] => stdClass Object ( ) ) 
// stdClass Object ( [y] => stdClass Object ( ) ) 

-- 
Edit bug report at http://bugs.php.net/?id=34767&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34767&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34767&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34767&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34767&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34767&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34767&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34767&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34767&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34767&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34767&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34767&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34767&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34767&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34767&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34767&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34767&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34767&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34767&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34767&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34767&r=mysqlcfg

Reply via email to