mirror of
https://github.com/php/php-src.git
synced 2026-04-28 18:53:33 +02:00
fc94e0fc6e
The SKIPIF sections are executed in the directory where run-tests.php is located; therefore a relative path like `../skipif.inc` won't work as desired.
22 lines
334 B
PHP
22 lines
334 B
PHP
--TEST--
|
|
JIT ASSIGN: 034
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.file_update_protection=0
|
|
opcache.jit_buffer_size=1M
|
|
opcache.protect_memory=1
|
|
;opcache.jit_debug=257
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
function bar() {
|
|
$a = strlen("a");
|
|
$a++;
|
|
return $a;
|
|
}
|
|
var_dump(bar());
|
|
--EXPECT--
|
|
int(2)
|