mirror of
https://github.com/php/php-src.git
synced 2024-12-13 11:54:45 +08:00
Added test case for bug #44827
This commit is contained in:
parent
b330450ff7
commit
d2127c143a
11
Zend/tests/bug44827.phpt
Normal file
11
Zend/tests/bug44827.phpt
Normal file
@ -0,0 +1,11 @@
|
||||
--TEST--
|
||||
Bug #44827 (define() allows :: in constant names)
|
||||
--FILE--
|
||||
<?php
|
||||
define('foo::bar', 1);
|
||||
define('::', 1);
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: Class constants cannot be defined or redefined in %sbug44827.php on line %d
|
||||
|
||||
Warning: Class constants cannot be defined or redefined in %sbug44827.php on line %d
|
Loading…
Reference in New Issue
Block a user