xref: /PHP-7.4/ext/opcache/tests/bug75729.phpt (revision 57688ad7)
1--TEST--
2Bug #75729: opcache segfault when installing Bitrix
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5<?php if (!extension_loaded('mbstring')) die('skip mbstring not loaded'); ?>
6--INI--
7opcache.enable_cli=1
8mbstring.func_overload=2
9--FILE--
10<?php
11
12var_dump(strpos("foo", "o"));
13var_dump(substr("foo", 1));
14var_dump(substr("foo", 1, 1));
15
16?>
17--EXPECT--
18Deprecated: The mbstring.func_overload directive is deprecated in Unknown on line 0
19int(1)
20string(2) "oo"
21string(1) "o"
22