1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 19:52:20 +02:00
Files
archived-php-src/ext/standard/tests/array/extract_error_variation1.phpt
2019-08-28 23:15:01 +02:00

15 lines
315 B
PHP

--TEST--
Test extract() function - error condition - Invalid prefix.
--FILE--
<?php
$a = ["1" => "one", "2" => "two", "3" => "three", "4" => "four", "5" => "five"];
try {
extract($a, EXTR_PREFIX_ALL, '85bogus');
} catch (\Error $e) {
echo $e->getMessage();
}
?>
--EXPECT--
Prefix is not a valid identifier