Bug #60102 [Fbk->Csd]: Incorrect behaviour when throwing an exception from __wakeup/autloading.

From: Date: Fri, 06 Dec 2013 09:52:16 +0000
Subject: Bug #60102 [Fbk->Csd]: Incorrect behaviour when throwing an exception from __wakeup/autloading.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183177@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60102&edit=1 ID: 60102 Updated by: mike@php.net Reported by: arjen at react dot com Summary: Incorrect behaviour when throwing an exception from __wakeup/autloading. -Status: Feedback +Status: Closed Type: Bug Package: *General Issues Operating System: CentOS 5.6 PHP Version: 5.3.8 -Assigned To: +Assigned To: mike Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2013-12-06 09:45:11] arjen at react dot com There was a concrete testcase hosted at above url, however it got deleted cause this issue is more than two years old... Reimplemented it at http://3v4l.org/s0cXP However since 5.4.14 it seems fixed, guess by https://bugs.php.net/bug.php?id=63914 ------------------------------------------------------------------------ [2013-12-06 07:31:48] mike@php.net 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 the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2011-10-20 12:00:42] arjen at react dot com Testscript available @ http://home.react.com/~arjen/testcase.tar.gz Because of multiple files. ------------------------------------------------------------------------ [2011-10-20 11:57:20] arjen at react dot com Description: ------------ When unserializing an object Wakeup with an member b object which throws an exception in __wakeup, the autoloading of member e of type e extends d fails. The thrown exception is also non-catchable. Expected result: ---------------- loading Wakeup loaded Wakeup: 1 loading B loaded B: 1 loading E loading D loaded D: 1 loading E: 1 fail Actual result: -------------- loading Wakeup loaded Wakeup: 1 loading B loaded B: 1 loading E loading D loaded D: 1 Fatal error: Uncaught exception 'Exception' in testcase/B.php on line 5 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60102&edit=1

« previous php.bugs (#183177) next »