1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 05:51:02 +02:00
Files
archived-php-src/ext/opcache/tests/jit/cmp_002.phpt
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

25 lines
386 B
PHP

--TEST--
JIT CMP: 001
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.protect_memory=1
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$a = 0;
$b = 0.0;
var_dump($a < $b ? 1 : 0);
var_dump($a > $b ? 1 : 0);
var_dump($a <= $b ? 1 : 0);
var_dump($a >= $b ? 1 : 0);
?>
--EXPECT--
int(0)
int(0)
int(1)
int(1)