mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
1b565f1393
Implements RFC "Deprecate and Remove Bareword (Unquoted) Strings" [https://wiki.php.net/rfc/deprecate-bareword-strings]
18 lines
312 B
PHP
18 lines
312 B
PHP
--TEST--
|
|
Bug #47572 (zval_update_constant_ex: Segmentation fault)
|
|
--FILE--
|
|
<?php
|
|
|
|
class Foo {
|
|
public static $bar = array(
|
|
FOO => "bar"
|
|
);
|
|
|
|
}
|
|
|
|
$foo = new Foo();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Use of undefined constant FOO - assumed 'FOO' (this will throw an Error in a future version of PHP) in %s on line %d
|