bug72347.phpt 244 B

1234567891011121314151617
  1. --TEST--
  2. Bug #72347 (VERIFY_RETURN type casts visible in finally)
  3. --FILE--
  4. <?php
  5. function test() : int {
  6. $d = 1.5;
  7. try {
  8. return $d;
  9. } finally {
  10. var_dump($d);
  11. }
  12. }
  13. var_dump(test());
  14. ?>
  15. --EXPECT--
  16. float(1.5)
  17. int(1)