From 305c03e75782fe39aaa71fc8a8983a8110b13beb Mon Sep 17 00:00:00 2001 From: Joshua Rogers Date: Tue, 27 Jan 2015 09:28:54 +1100 Subject: Use correct deallocator in phpdbg --- sapi/phpdbg/phpdbg_prompt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sapi/phpdbg/phpdbg_prompt.c') diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c index 198020d365..cb03b1a287 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); } -- cgit v1.2.1