### Description The following code: ``` i funcs ``` Resulted in this output: ``` /php-src/sapi/phpdbg/phpdbg_info.c:448: phpdbg_do_info_funcs: Assertion `(((__ht)->u.flags & (1<<2)) != 0)' failed. Aborted (core dumped) ``` ### PHP Version PHP 8.4.0-dev ### Operating System ubuntu 22.04
Activity
cmb69 commentedon Sep 16, 2024
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
The same happens for
i classes,ndossche commentedon Sep 16, 2024
@cmb69 Looks right to me, feel free to make a PR.
[-]Core dumped in phpdbg `i funcs`[/-][+]phpdbg: Assertion failure on `i funcs`[/+]Fix phpGH-15901: phpdbg: Assertion failure on `i funcs`
Fix GH-15901: phpdbg: Assertion failure on `i funcs`
Merge branch 'PHP-8.2' into PHP-8.3
Merge branch 'PHP-8.3'