noval_001.phpt 628 B

1234567891011121314151617181920212223242526272829303132333435
  1. --TEST--
  2. JIT NOVAL: 001 (bug in zend_jit_compute_false_dependencies())
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.file_update_protection=0
  7. opcache.jit_buffer_size=1M
  8. opcache.protect_memory=1
  9. ;opcache.jit_debug=257
  10. --EXTENSIONS--
  11. opcache
  12. --FILE--
  13. <?php
  14. class Foo {
  15. const X = false;
  16. static function bar() {
  17. $count = 0;
  18. if (self::X) {
  19. $count = intval(9223372036854775807);
  20. }
  21. if (self::X) {
  22. $count = 2;
  23. }
  24. if ($count != 0) {
  25. return "bug";
  26. }
  27. return "ok";
  28. }
  29. }
  30. var_dump(Foo::bar());
  31. ?>
  32. --EXPECT--
  33. string(2) "ok"