parent
a365474674
commit
30ef9352a2
4 changed files with 40 additions and 4 deletions
@ -0,0 +1,15 @@ |
||||
--TEST-- |
||||
Constant with the same name (case-insensitive) resolve independently |
||||
--FILE-- |
||||
<?php |
||||
const a = 123; |
||||
const A = 456; |
||||
|
||||
function main(): void |
||||
{ |
||||
var_dump(a, A); |
||||
} |
||||
?> |
||||
--EXPECT-- |
||||
int(123) |
||||
int(456) |
||||
@ -0,0 +1,15 @@ |
||||
--TEST-- |
||||
Constant and variable with the same name (case-insensitive) resolve independently |
||||
--FILE-- |
||||
<?php |
||||
const a = 123; |
||||
|
||||
function main(): void |
||||
{ |
||||
$a = 456; |
||||
var_dump(a, $a); |
||||
} |
||||
?> |
||||
--EXPECT-- |
||||
int(123) |
||||
int(456) |
||||
Loading…
Reference in new issue