temporary_cleaning_006.phpt 291 B

123456789101112131415161718
  1. --TEST--
  2. Exception after separation during indirect write to fcall result
  3. --FILE--
  4. <?php
  5. function throwing() { throw new Exception; }
  6. function getArray($x) { return [$x]; }
  7. try {
  8. getArray(0)[throwing()] = 1;
  9. } catch (Exception $e) {
  10. echo "Exception\n";
  11. }
  12. ?>
  13. --EXPECT--
  14. Exception