1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 17:52:16 +01:00
Files
archived-php-src/ext/standard/tests/array/bug71220.phpt
George Peter Banyard 5fbd49f9ab Convert Errors to ValueErrors
Closes GH-4930
2019-12-05 14:22:54 +01:00

15 lines
238 B
PHP

--TEST--
Bug #71220 (Null pointer deref (segfault) in compact via ob_start)
--FILE--
<?php
ob_start("compact");
try {
ob_end_clean();
} catch (\Error $e) {
echo $e->getMessage();
}
?>
--EXPECT--
Cannot call compact() dynamically