From:             reiersol at online dot no
Operating system: RedHat 9.0
PHP version:      5CVS-2004-02-02 (dev)
PHP Bug Type:     Zend Engine 2 problem
Bug description:  Serialization replaces PHP 5 object references with PHP 4-style 
"references"

Description:
------------
This bug is actually the "fixed" version of bug #25975. I'm deliberately
reporting it as a new bug, since the history of bug #25975 seems to be
causing confusion.

The bug fix is not satisfactory, since the objects still do not behave the
same way before and after serialization. I believe this has serious
consequences for using objects in session-based applications.

By uncommenting the two commented lines in the code, you can run the test
without serialization. This produces the "expected result".

Reproduce code:
---------------
http://home.online.no/~reiersol/referencetest.html

Expected result:
----------------
TestCase ReferenceTest->testChangeObject() passed
TestCase ReferenceTest->testReplaceObject() passed


Actual result:
--------------
TestCase ReferenceTest->testChangeObject() passed
TestCase ReferenceTest->testReplaceObject() failed: expected true, actual
false


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

Reply via email to