summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/extract_error_variation1.phpt
blob: ec3078a0b9713a4c093fb0f0da9a830ec236fcfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--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