mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
f95679885f
It compared against the wrong variable. Fixed this by getting rid of lc_name entirely and use equals_literal_ci instead.
17 lines
166 B
PHP
17 lines
166 B
PHP
--TEST--
|
|
Closure::__invoke() is case insensitive
|
|
--FILE--
|
|
<?php
|
|
|
|
$inc = function(&$n) {
|
|
$n++;
|
|
};
|
|
|
|
$n = 1;
|
|
$inc->__INVOKE($n);
|
|
var_dump($n);
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(2)
|