xref: /PHP-7.3/ext/opcache/tests/bug68644.phpt (revision a8239ff2)
1--TEST--
2Bug #68644 strlen incorrect : mbstring + func_overload=2 + UTF-8 + Opcache
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6mbstring.func_overload=2
7mbstring.internal_encoding=UTF-8
8--SKIPIF--
9<?php if (!extension_loaded('Zend OPcache') || !extension_loaded("mbstring")) die("skip"); ?>
10--FILE--
11<?php
12var_dump(strlen("中国, 北京"));
13var_dump(mb_strlen("中国, 北京"));
14?>
15--EXPECT--
16Deprecated: The mbstring.func_overload directive is deprecated in Unknown on line 0
17int(6)
18int(6)
19