Skip to content

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

Closed
ndossche wants to merge 2 commits into
php:PHP-8.2from
ndossche:fix-12675
Closed

Fix GH-12675: MEMORY_LEAK in phpdbg_prompt.c#12679
ndossche wants to merge 2 commits into
php:PHP-8.2from
ndossche:fix-12675

Conversation

@ndossche
Copy link
Copy Markdown
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.

@ndossche ndossche 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
Copy Markdown
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

@ndossche
Copy link
Copy Markdown
Member Author

Wow that was fast, thanks :p

@iluuu1994
Copy link
Copy Markdown
Member

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

The test uses breakpoints.
@ndossche
Copy link
Copy Markdown
Member Author

Merged via 4f1103e

@ndossche ndossche 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