bug78973.phpt 315 B

123456789101112131415161718
  1. --TEST--
  2. Bug #78973: Destructor during CV freeing causes segfault if opline never saved
  3. --INI--
  4. opcache.optimization_level=0
  5. --FILE--
  6. <?php
  7. function test($x) {
  8. }
  9. test(new class {
  10. public function __destruct() {
  11. debug_print_backtrace();
  12. }
  13. });
  14. ?>
  15. --EXPECTF--
  16. #0 %s(%d): class@anonymous->__destruct()