|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [1998-06-04 01:33 UTC] rasmus
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 23:00:01 2025 UTC | 
Pclose docs says it returns true if successful, false otherwise. In reality it returns the exit status. Reproduce with: echo "/bin/true=", pclose(popen("/bin/true", "w")), "\n"; echo "/bin/false=", pclose(popen("/bin/false", "w")), "\n"; This produces: /bin/true=0 /bin/false=65280 Documentation says that both should return a true value (non-zero).