You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
485 B

  1. --TEST--
  2. GH-19669: assertion failure zend_jit_trace_type_to_info_ex
  3. --CREDITS--
  4. YuanchengJiang
  5. --SKIPIF--
  6. <?php
  7. if (PHP_INT_SIZE !== 8) {
  8. die('skip output depends PHP_INT_SIZE=8');
  9. }
  10. ?>
  11. --FILE--
  12. <?php
  13. function test() {
  14. $a = PHP_INT_MIN;
  15. $b = 0;
  16. while ($b++ < 2) {
  17. $a = (int) ($a-- + $a - $b);
  18. }
  19. return $a;
  20. }
  21. var_dump(test());
  22. ?>
  23. --EXPECTF--
  24. Warning: The float -1.8446744073709552E+19 is not representable as an int, cast occurred in %s on line %d
  25. int(-3)