Bug #68670 [Asn->Csd]: Incorrect file handling
| From: | felipe@php.net | Date: | Mon, 12 Oct 2015 13:05:10 +0000 |
| Subject: | Bug #68670 [Asn->Csd]: Incorrect file handling | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-196555@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: felipe@php.net
Reported by: bugreports at internot dot info
Summary: Incorrect file handling
-Status: Assigned
+Status: Closed
Type: Bug
Package: phpdbg
Operating System: *
PHP Version: 5.6.10RC1
Assigned To: tyrael
Block user comment: N
Private report: N
New Comment:
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2015-06-05 13:54:00] cmb@php.net
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>
------------------------------------------------------------------------
[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