xref: /PHP-7.2/ext/opcache/tests/jmp_elim_001.phpt (revision 2235da59)
1--TEST--
2Edge-cases in constant conditional jump elimination
3--SKIPIF--
4<?php if (PHP_INT_SIZE != 8) die("skip for machines with 64-bit longs"); ?>
5<?php if (!extension_loaded("json")) print "skip"; ?>
6<?php require_once('skipif.inc'); ?>
7--FILE--
8<?php
9$webserver = "Apache";
10$cpuArc = "x86_64";
11$archName = (strstr($cpuArc, "64") || PHP_INT_SIZE === 8) ? "64" : "32";
12$info = array('arch' => $archName,
13              'webserver' =>$webserver);
14header('Content-Type: application/json');
15echo json_encode($info) . "\n";
16--EXPECT--
17{"arch":"64","webserver":"Apache"}
18