xref: /PHP-8.4/ext/opcache/tests/bug76477.phpt (revision e9f783fc)
1--TEST--
2Bug #76477 (Opcache causes empty return value)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--EXTENSIONS--
8opcache
9--FILE--
10<?php
11testString();
12function testString()
13{
14    $token = "ABC";
15    $lengthBytes = strlenb($token);
16    var_dump($lengthBytes == 0);
17}
18
19function strlenb() { return call_user_func_array("strlen", func_get_args()); }
20?>
21--EXPECT--
22bool(false)
23