xref: /php-src/ext/opcache/tests/jmp_elim_001.phpt (revision e9f783fc)
1--TEST--
2Edge-cases in constant conditional jump elimination
3--EXTENSIONS--
4opcache
5--SKIPIF--
6<?php if (PHP_INT_SIZE != 8) die("skip for machines with 64-bit longs"); ?>
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?>
17--EXPECT--
18{"arch":"64","webserver":"Apache"}
19