Bug #68670 [Asn]: Incorrect file handling

From: Date: Fri, 05 Jun 2015 13:54:01 +0000
Subject: Bug #68670 [Asn]: Incorrect file handling
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193144@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68670&edit=1 ID: 68670 Updated by: cmb@php.net Reported by: bugreports at internot dot info Summary: Incorrect file handling Status: Assigned Type: Bug Package: phpdbg -Operating System: Linux Ubuntu 14.04 +Operating System: * -PHP Version: master-Git-2014-12-28 (Git) +PHP Version: 5.6.10RC1 -Assigned To: krakjoe +Assigned To: tyrael Block user comment: N Private report: N New Comment: This issue has already been fixed in master[1], but the fix has not been released yet[2]. Ferenc, can you please have a look at it. [1] <https://github.com/php/php-src/commit/305c03e75782fe39aaa71fc8a8983a8110b13beb> [2] <https://github.com/php/php-src/blob/php-5.6.10RC1/sapi/phpdbg/phpdbg_prompt.c#L839-L841> Previous Comments: ------------------------------------------------------------------------ [2014-12-30 02:48:23] aharvey@php.net Joe (or Bob), any thoughts? ------------------------------------------------------------------------ [2014-12-28 22:37:45] bugreports at internot dot info Description: ------------ Hi, In /sapi/phpdbg/phpdbg_prompt.c: 877 if ((fd=VCWD_POPEN((char*)param->str, "w"))) { uses popen(), but it is freed using fclose(): 879 fclose(fd); It should be using pclose(fd). Thanks ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68670&edit=1

« previous php.bugs (#193144) next »