mirror of
https://github.com/php/php-src.git
synced 2026-03-29 19:52:20 +02:00
15 lines
315 B
PHP
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
|