ID: 28533 Updated by: [EMAIL PROTECTED] Reported By: dayal at capital-merchant dot com -Status: Open +Status: Feedback Bug Type: Class/Object related Operating System: Windows XP PHP Version: 4.3.5 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2004-07-06 17:09:15] dayal at capital-merchant dot com You can access the scripts @ http://198.92.233.203/temp/CustomerTest.php Please respond if you need anything else.. Thanks Dayal ------------------------------------------------------------------------ [2004-07-05 11:29:20] [EMAIL PROTECTED] Please provide a self-contained script with which we can reproduce your problem. ------------------------------------------------------------------------ [2004-05-26 19:58:36] dayal at capital-merchant dot com I haved used the latest CVS snapshot but the problem still persists... Please advise ------------------------------------------------------------------------ [2004-05-26 19:25:47] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2004-05-26 17:37:10] dayal at capital-merchant dot com Description: ------------ I have a php class Customer which has and Object variable 'Address'. The class 'Address' in turn has an object variable 'Zip'. Customer Address Zip In the file 'CustomerTest.php' - I am creating a new Zip object and assigning this zip object to a new Address object which in turn is assigned to a new Customer object. Now I am printing the instance variables of the Zip object (two String values). After this I am assigning a new Zip object to the above 'Address object' and again printing the instance variables of the Zip object to the screen. As expected these values differ from the above print command. Now I am assigning the Customer object to SESSION. Now on a different php page using the Customer object stored in session, if I print the instance variables of zip object, I get the OLD VALUES but not the new ones which I have modified. I reproduced the same code using servlets which functioned properly as expected unlike php. Please look into this. Reproduce code: --------------- http://198.92.233.203/temp/CustomerTest.php Expected result: ---------------- Zip1: 333 Zip2: 444 Actual result: -------------- Zip1: 123 Zip2: 345 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28533&edit=1