8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code:
<?php function foo($vars) { foreach ($vars as $i => $v1) { foreach ($vars as $j => $v2) { try { $reflection = new ReflectionFunction('strripos'); $result[$randomFunction][] = $reflection->invokeArgs($vars); } catch (\Throwable $e) { } } } } try { new ReflectionProperty(); } catch (TypeError $re) { } $fusion = $re; function apply_dumb($item, $key) {}; array_walk_recursive($fusion, 'apply_dumb'); $vars = [$re,$re,$re]; foo($vars);
Resulted in this output:
/php-src/Zend/zend_exceptions.c:630: void zim_Exception_getTraceAsString(zend_execute_data *, zval *): Assertion `zval_get_type(&(*(trace))) == 7' failed. Aborted (core dumped)
PHP 8.4.0-dev
ubuntu 22.04
The text was updated successfully, but these errors were encountered:
Minimal reproduction:
<?php $re = new TypeError(); function apply_dumb($item, $key) {}; array_walk_recursive($re, 'apply_dumb'); strripos( '', $re, 0 );
produces
root@3acd01cef279:/usr/src/php# php /var/www/html/test.php php: /usr/src/php/Zend/zend_exceptions.c:630: zim_Exception_getTraceAsString: Assertion `zval_get_type(&(*(trace))) == 7' failed. Aborted
Sorry, something went wrong.
getTraceAsString() assumes that $re->trace is an array because of its type hint. However it may also be a reference to an array.
getTraceAsString()
$re->trace
c2115a4
arnaud-lb
No branches or pull requests
Description
The following code:
Resulted in this output:
PHP Version
PHP 8.4.0-dev
Operating System
ubuntu 22.04
The text was updated successfully, but these errors were encountered: