xref: /PHP-7.2/ext/opcache/tests/bug76477.phpt (revision f31ba7cb)
1--TEST--
2Bug #76477 (Opcache causes empty return value)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--SKIPIF--
8<?php require_once('skipif.inc'); ?>
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