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
 [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 13:01:31 2024 UTC