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/compact.phpt
Máté Kocsis 36935e42ea Improve undefined variable error messages
Closes GH-5312
2020-03-31 13:02:32 +02:00

23 lines
374 B
PHP

--TEST--
compact()
--FILE--
<?php
$çity = "San Francisco";
$state = "CA";
$event = "SIGGRAPH";
$location_vars = array("c\\u0327ity", "state");
$result = compact("event", $location_vars);
var_dump($result);
?>
--EXPECTF--
Notice: compact(): Undefined variable $c\u0327ity in %s on line %d
array(2) {
["event"]=>
string(8) "SIGGRAPH"
["state"]=>
string(2) "CA"
}