com php-src: Use correct deallocator in phpdbg: sapi/phpdbg/php dbg_prompt.c
| From: | Michael Wallner | Date: | Mon, 26 Jan 2015 22:28:54 +0000 |
| Subject: | com php-src: Use correct deallocator in phpdbg: sapi/phpdbg/php dbg_prompt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84481@lists.php.net to get a copy of this message | ||
Commit: 305c03e75782fe39aaa71fc8a8983a8110b13beb
Author: Joshua Rogers <git@internot.info> Tue, 27 Jan 2015 09:28:54 +1100
Parents: 5845f2c0c116accac6bdd60a6b35ff05aa604ca5
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=305c03e75782fe39aaa71fc8a8983a8110b13beb
Log:
Use correct deallocator in phpdbg
Changed paths:
M sapi/phpdbg/phpdbg_prompt.c
Diff:
diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c
index 198020d..cb03b1a 100644
--- a/sapi/phpdbg/phpdbg_prompt.c
+++ b/sapi/phpdbg/phpdbg_prompt.c
@@ -876,7 +876,7 @@ PHPDBG_COMMAND(sh) /* {{{ */
FILE *fd = NULL;
if ((fd=VCWD_POPEN((char*)param->str, "w"))) {
/* TODO: do something perhaps ?? do we want input ?? */
- fclose(fd);
+ pclose(fd);
} else {
phpdbg_error("sh", "type=\"failure\" smd=\"%s\"",
"Failed to execute %s", param->str);
}