Bug #69290 [NEW]: Invalid modes do not trigger errors
From: roborg at gmail dot com
Operating system: Windows
PHP version: 5.5.23
Package: Program Execution
Bug Type: Bug
Bug description:Invalid modes do not trigger errors
Description:
------------
Valid modes for pipes are "r" and "w" according to the docs.
Though a comment in the docs suggests using "a" for STDERR on Windows, I
believe this may be outdated.
Modes other than "r" and "w" (and possibly "a"?) should trigger an
error, but are silently ignored and the pipe just doesn't work properly.
Test script:
---------------
$descriptors = array(
array('pipe', 'x'),
array('pipe', 'y'),
array('pipe', 'z'),
);
$process = proc_open('ls', $descriptors, $pipes);
proc_close($process);
Expected result:
----------------
Error: proc_open(): x is not a valid descriptor mode
Actual result:
--------------
(nothing)
--
Edit bug report at https://bugs.php.net/bug.php?id=69290&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69290&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69290&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69290&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69290&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69290&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69290&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69290&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69290&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69290&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69290&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69290&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69290&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69290&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69290&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69290&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69290&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69290&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69290&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69290&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69290&r=mysqlcfg
Thread (10 messages)
- roborg at gmail dot com