mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
e9f783fcdd
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
19 lines
501 B
PHP
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"}
|