mirror of
https://github.com/php/php-src.git
synced 2025-01-07 11:34:09 +08:00
e9f783fcdd
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
23 lines
405 B
PHP
23 lines
405 B
PHP
--TEST--
|
|
Bug #76477 (Opcache causes empty return value)
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.optimization_level=-1
|
|
--EXTENSIONS--
|
|
opcache
|
|
--FILE--
|
|
<?php
|
|
testString();
|
|
function testString()
|
|
{
|
|
$token = "ABC";
|
|
$lengthBytes = strlenb($token);
|
|
var_dump($lengthBytes == 0);
|
|
}
|
|
|
|
function strlenb() { return call_user_func_array("strlen", func_get_args()); }
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|