|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68670 Incorrect file handling
Submitted: 2014-12-28 22:37 UTC Modified: 2015-10-12 13:05 UTC
From: bugreports at internot dot info Assigned: tyrael (profile)
Status: Closed Package: phpdbg
PHP Version: 5.6.10RC1 OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: bugreports at internot dot info
New email:
PHP Version: OS:


 [2014-12-28 22:37 UTC] bugreports at internot dot info

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).



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-12-30 02:48 UTC]
-Status: Open +Status: Assigned -Package: *General Issues +Package: phpdbg -Assigned To: +Assigned To: krakjoe
 [2014-12-30 02:48 UTC]
Joe (or Bob), any thoughts?
 [2015-06-05 13:54 UTC]
-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
 [2015-06-05 13:54 UTC]
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

[1] <>
[2] <>
 [2015-10-12 13:05 UTC]
-Status: Assigned +Status: Closed
 [2015-10-12 13:05 UTC]
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

 For Windows:
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jun 19 19:01:32 2024 UTC