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

From: Date: Fri, 06 Dec 2013 07:31:48 +0000
Subject: Bug #60102 [Opn->Fbk]: Incorrect behaviour when throwing an exception from __wakeup/autloading.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183168@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: Open +Status: Feedback Type: Bug Package: *General Issues Operating System: CentOS 5.6 PHP Version: 5.3.8 Block user comment: N Private report: N 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 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. Previous Comments: ------------------------------------------------------------------------ [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 (#183168) next »