Skip to content

gdbinit: use ____print_str to print htable keys instead of printf #6577

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

Closed
wants to merge 1 commit into from
Closed

gdbinit: use ____print_str to print htable keys instead of printf #6577

wants to merge 1 commit into from

Conversation

dktapps
Copy link
Contributor

@dktapps dktapps commented Jan 4, 2021

I noticed this problem while dumping the contents of EG(function_table), where keys for closures start with a null byte. printf interprets this as a zero-length string and emits nothing.
This allows keys containing null bytes to be rendered properly in readable form.

I noticed this problem while dumping the contents of EG(function_table), where keys for closures start with a null byte. printf interprets this as a zero-length string and emits nothing.
This allows the key to be rendered properly in readable form.
@php-pulls php-pulls closed this in 6b631f0 Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants