mirror of
https://github.com/php/php-src.git
synced 2026-03-28 18:22:42 +01:00
Don't try to evaluate substr() and strpos() at compile-time if mbstring function overloading is enabled. I'm reusing the COMPILE_NO_BUILTIN_STRLEN for the detection of mbstring function overloading here, even if it's technically only about strlen()...
17 lines
355 B
PHP
17 lines
355 B
PHP
--TEST--
|
|
Bug #75729: opcache segfault when installing Bitrix
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded('mbstring')) die('skip mbstring not loaded'); ?>
|
|
--INI--
|
|
opcache.enable_cli=1
|
|
mbstring.func_overload=2
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(strpos("foo", "o"));
|
|
|
|
?>
|
|
--EXPECT--
|
|
Deprecated: The mbstring.func_overload directive is deprecated in Unknown on line 0
|
|
int(1)
|