1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 15:08:16 +02:00
Files
archived-php-src/ext/opcache/tests/jit/assign_032.phpt
T
Christoph M. Becker fc94e0fc6e Fix SKIPIF conditions
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.
2019-07-01 19:47:23 +02:00

28 lines
451 B
PHP

--TEST--
JIT ASSIGN: 032
--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
$var = "intergalactic";
$var1 = "space";
$var2 = &$var1;
$var = $var2;
var_dump($var);
var_dump($var1);
var_dump($var2);
echo "Done\n";
?>
--EXPECT--
string(5) "space"
string(5) "space"
string(5) "space"
Done