Skip to content

Commit 1552740

Browse files
committed
Fix test
1 parent a6bc811 commit 1552740

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

Zend/tests/bug71221.phpt

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@
22
Bug #71221 (Null pointer deref (segfault) in get_defined_vars via ob_start)
33
--FILE--
44
<?php
5-
ob_start("get_defined_vars");
6-
try {
7-
ob_end_clean();
8-
} catch (\Error $e) {
9-
echo $e->getMessage();
10-
}
11-
?>
12-
13-
OKAY
5+
register_shutdown_function("get_defined_vars");
146
--EXPECT--
15-
Cannot call get_defined_vars() dynamically
16-
OKAY
7+
Fatal error: Uncaught Error: Cannot call get_defined_vars() dynamically in [no active file]:0
8+
Stack trace:
9+
#0 [internal function]: get_defined_vars()
10+
#1 {main}
11+
thrown in [no active file] on line 0

0 commit comments

Comments
 (0)