php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60102 Incorrect behaviour when throwing an exception from __wakeup/autloading.
Submitted: 2011-10-20 11:57 UTC Modified: 2013-12-06 09:52 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: arjen at react dot com Assigned: mike (profile)
Status: Closed Package: *General Issues
PHP Version: 5.3.8 OS: CentOS 5.6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: arjen at react dot com
New email:
PHP Version: OS:

 

 [2011-10-20 11:57 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-10-20 12:00 UTC] arjen at react dot com
Testscript available @ http://home.react.com/~arjen/testcase.tar.gz
Because of multiple files.
 [2013-12-06 07:31 UTC] mike@php.net
-Status: Open +Status: Feedback
 [2013-12-06 07:31 UTC] 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.


 [2013-12-06 09:45 UTC] 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 09:52 UTC] mike@php.net
-Status: Feedback +Status: Closed -Assigned To: +Assigned To: mike
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 01:01:28 2025 UTC