forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memory leak in phpdbg calling registered function
Closes phpGH-17635.
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--TEST-- | ||
registering a function and calling it leaks arguments memory | ||
--FILE-- | ||
<?php | ||
echo "Done\n"; | ||
?> | ||
--PHPDBG-- | ||
register var_dump | ||
var_dump "a" "b" | ||
register flush | ||
flush | ||
r | ||
q | ||
--EXPECTF-- | ||
[Successful compilation of %s] | ||
prompt> [Registered var_dump] | ||
prompt> string(1) "a" | ||
string(1) "b" | ||
|
||
prompt> [Registered flush] | ||
prompt> | ||
prompt> Done | ||
[Script ended normally] | ||
prompt> |