8000 Allow throwing exception while loading parent class by nikic · Pull Request #4697 · php/php-src · GitHub
[go: up one dir, main page]

Skip to content

Allow throwing exception while loading parent class #4697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix tests
  • Loading branch information
< 10000 div class="commit-meta clearfix p-2 d-flex flex-column flex-md-row flex-md-items-center">
nikic committed Sep 12, 2019
commit 5be49849e1c36c9af26870a25849ad03bf6a2241
13 changes: 12 additions & 1 deletion ext/spl/tests/bug73423.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,15 @@ foreach (new \RecursiveIteratorIterator (new fooIterator ($foo)) as $bar) ;

?>
--EXPECTF--
Fatal error: Class 'NotExists' not found in %s(%d) : eval()'d code on line 1
Fatal error: Uncaught Error: Class 'NotExists' not found in %s:%d
Stack trace:
#0 %s(%d): eval()
#1 %s(%d): fooIterator->__destruct()
#2 {main}

Next Error: Class 'NotExists' not found in %s:%d
Stack trace:
#0 %s(%d): eval()
#1 %s(%d): fooIterator->__destruct()
#2 {main}
thrown in %s on line %d
5 changes: 4 additions & 1 deletion tests/classes/autoload_011.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ class C extends UndefBase
--EXPECTF--
In autoload: string(9) "UndefBase"

Fatal error: Class 'UndefBase' not found in %s on line %d
Fatal error: Uncaught Error: Class 'UndefBase' not found in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
8 changes: 7 additions & 1 deletion tests/classes/bug75765.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@ try {

?>
--EXPECTF--
Fatal error: Class 'B' not found in %s on line %d
bool(false)
bool(false)

Fatal error: Uncaught Error: Class 'B' not found in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
0