-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault for special syntax #219
Comments
Other behavior : $r = new \parallel\Runtime();
$r->run(static function(){
substr('',''); // <--- added
require 'b.php';
t();
}); output : Fatal error: Uncaught TypeError: substr(): Argument #2 ($offset) must be of type int, string given in /root/b.php:3
Stack trace:
#0 /root/b.php(3): substr('', '')
#1 /root/c.php(6): t()
#2 {main}
thrown in /root/b.php on line 3 |
Fixededit b.php $r = new \parallel\Runtime();
$r->run(static function(){
opcache_invalidate('b.php'); // <--- added
require 'b.php';
t();
}); |
Hey @ziaratban, sorry for radio silence. First of all: thanks for this nice and easy reproducer! <?php
$r = new \parallel\Runtime('b.php');
$r->run(static function(){
t();
}); This fixes it at leas for me on: $ php -v
PHP 8.3.11-dev (cli) (built: Jul 23 2024 20:50:22) (ZTS)
Copyright (c) The PHP Group
Zend Engine v4.3.11-dev, Copyright (c) Zend Technologies
with Zend OPcache v8.3.11-dev, Copyright (c), by Zend Technologies |
Hi
a.php
b.php
c.php
The text was updated successfully, but these errors were encountered: