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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

History

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