mirror of
https://github.com/php/php-src.git
synced 2025-01-25 13:14:22 +08:00
26 lines
569 B
Plaintext
26 lines
569 B
Plaintext
|
--TEST--
|
||
|
076: Unknown constants in namespace
|
||
|
--FILE--
|
||
|
<?php
|
||
|
namespace foo;
|
||
|
|
||
|
$a = array(unknown => unknown);
|
||
|
|
||
|
echo unknown;
|
||
|
echo "\n";
|
||
|
var_dump($a);
|
||
|
echo \unknown;
|
||
|
--EXPECTF--
|
||
|
Notice: Use of undefined constant unknown - assumed 'unknown' in %sns_076.php on line %d
|
||
|
|
||
|
Notice: Use of undefined constant unknown - assumed 'unknown' in %sns_076.php on line %d
|
||
|
|
||
|
Notice: Use of undefined constant unknown - assumed 'unknown' in %sns_076.php on line %d
|
||
|
unknown
|
||
|
array(1) {
|
||
|
["unknown"]=>
|
||
|
%s(7) "unknown"
|
||
|
}
|
||
|
|
||
|
Fatal error: Undefined constant 'unknown' in %sns_076.php on line %d
|