-
Notifications
You must be signed in to change notification settings - Fork 7.8k
phpdbg: Assertion failure on i funcs
#15901
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
Labels
Comments
Indeed, that happens when no userland function has been defined, in which case the following loop is invalid: php-src/sapi/phpdbg/phpdbg_info.c Line 448 in c65e042
That loop may be guarded with if (HT_IS_PACKED(&functions)) { The same happens for |
@cmb69 Looks right to me, feel free to make a PR. |
i funcs
i funcs
cmb69
added a commit
to cmb69/php-src
that referenced
this issue
Sep 16, 2024
New hash tables are not automatically packed, so we must not treat them as such. Therefore we guard the foreach appropriately.
cmb69
added a commit
that referenced
this issue
Sep 18, 2024
* PHP-8.2: Fix GH-15901: phpdbg: Assertion failure on `i funcs`
cmb69
added a commit
that referenced
this issue
Sep 18, 2024
* PHP-8.3: Fix GH-15901: phpdbg: Assertion failure on `i funcs`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: