1
0
mirror of https://github.com/php/php-src.git synced 2026-04-04 06:32:49 +02:00
Files
archived-php-src/ext/opcache/tests/bug75729.phpt
Christoph M. Becker 57688ad7bf Add missing SKIPIFs
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.
2019-07-01 18:11:13 +02:00

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"