mirror of
https://github.com/php/php-src.git
synced 2026-04-04 06:32:49 +02:00
All these tests are meant to run with OPcache available, and some will even fail inevitably without it, so we add OPcache as SKIPIF requirement.
22 lines
480 B
PHP
22 lines
480 B
PHP
--TEST--
|
|
Bug #75729: opcache segfault when installing Bitrix
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
<?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"));
|
|
var_dump(substr("foo", 1));
|
|
var_dump(substr("foo", 1, 1));
|
|
|
|
?>
|
|
--EXPECT--
|
|
Deprecated: The mbstring.func_overload directive is deprecated in Unknown on line 0
|
|
int(1)
|
|
string(2) "oo"
|
|
string(1) "o"
|