Skip to content

Fix GH-12675: MEMORY_LEAK in phpdbg_prompt.c #12679

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 2 commits into from

Conversation

nielsdos
Copy link
Member

Have to use file_put_contents() instead of --FILE-- because we have to actually load it using the exec command, and have to make multiple files, and note that we can only load files relative from the current directory, so we can't rely on files being in the sapi/phpdbg/tests folder.

@nielsdos nielsdos linked an issue Nov 15, 2023 that may be closed by this pull request
Have to use file_put_contents() instead of --FILE-- because we have to
actually load it using the exec command, *and* have to make multiple
files, and note that we can only load files relative from the current
directory, so we can't rely on files being in the sapi/phpdbg/tests
folder.
Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nielsdos
Copy link
Member Author

Wow that was fast, thanks :p

@iluuu1994
Copy link
Member

I looked at the code quickly when the issue came in and thought of the same fix. :P

The test uses breakpoints.
@nielsdos
Copy link
Member Author

Merged via 4f1103e

@nielsdos nielsdos closed this Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MEMORY_LEAK in phpdbg_prompt.c
2 participants