jmp_elim_001.phpt 501 B

123456789101112131415161718
  1. --TEST--
  2. Edge-cases in constant conditional jump elimination
  3. --EXTENSIONS--
  4. opcache
  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);
  14. header('Content-Type: application/json');
  15. echo json_encode($info) . "\n";
  16. ?>
  17. --EXPECT--
  18. {"arch":"64","webserver":"Apache"}