php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #14621 popen() never returns false
Submitted: 2001-12-20 09:51 UTC Modified: 2002-02-09 18:44 UTC
From: petr at dousa dot cz Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.1.0 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: petr at dousa dot cz
New email:
PHP Version: OS:

 

 [2001-12-20 09:51 UTC] petr at dousa dot cz
popen() doesn't return false on non-existent file. Bug#9043 says that it is intentional, but probably it's not the expected behavior and should be noted in the manual.

if (popen("/i/dont/exist","r")) echo "OK";

results in "OK" (and no warning is issued).

Also applies to exec(), system() and backtick operator.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-09 18:44 UTC] torben@php.net
This bug has been fixed in CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 17:01:34 2024 UTC