php-src/ext/opcache/tests/jmp_elim_001.phpt
Max Semenik e9f783fcdd Migrate skip checks to --EXTENSIONS--, p3
For rationale, see #6787

Extensions migrated in part 3:
* ftp
* gmp
* iconv
* opcache
* shmop
2021-04-03 15:23:25 +02:00

19 lines
501 B
PHP

--TEST--
Edge-cases in constant conditional jump elimination
--EXTENSIONS--
opcache
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip for machines with 64-bit longs"); ?>
--FILE--
<?php
$webserver = "Apache";
$cpuArc = "x86_64";
$archName = (strstr($cpuArc, "64") || PHP_INT_SIZE === 8) ? "64" : "32";
$info = array('arch' => $archName,
'webserver' =>$webserver);
header('Content-Type: application/json');
echo json_encode($info) . "\n";
?>
--EXPECT--
{"arch":"64","webserver":"Apache"}