diff --git a/src/CompilerBase.php b/src/CompilerBase.php index beb3484b..8939283c 100644 --- a/src/CompilerBase.php +++ b/src/CompilerBase.php @@ -3544,26 +3544,9 @@ class CompilerBase implements PropertyAccessContext break; } - /** - * If an included PHP file encounters a fatal error during execution—for example, - * incorrect function arguments—an exception will be thrown, unwinding directly from - * the Zend VM stack through the C++ stack. In the original implementation, - * there were several "undestroyed temporary objects." When the exception propagates back, - * those objects need to be destroyed. However, by that time the environment - * is already in a corrupted/inconsistent state, and attempting to destroy them causes a crash. - */ $fileName = $this->parseIdentifier($expr->expr); - return << --EXPECT-- -ArgumentCountError Error +include ArgumentCountError +require ArgumentCountError diff --git a/tests/compiler/include_require/Hello.php b/tests/compiler/include_require/Hello.php index 91224ec5..96b684de 100644 --- a/tests/compiler/include_require/Hello.php +++ b/tests/compiler/include_require/Hello.php @@ -1,3 +1,3 @@