From:             d_kelsey at uk dot ibm dot com
Operating system: Windows XP
PHP version:      5.2.5
PHP Bug Type:     Reproducible crash
Bug description:  popen with modes such as "e" or "er" cause php.exe to crash

Description:
------------
trying different modes on php.exe on windows. I tried "e" and "er". Both
cause php to crash. a mode of "re" works.
This is also different from linux where it seems that only "r" or "w" are
valid modes. Anything else or more than 1 character result in a php warning
of invalid argument.

Reproduce code:
---------------
<?php
$t1 = popen("echo hello", "e");
pclose($t1);
$t2 = popen("echo hello", "re");
pclose($t2);
$t3 = popen("echo hello", "er");
pclose($t3);
?>

Expected result:
----------------
Expected output would be the same as linux.
Warning: popen(echo hello,e): Invalid argument in
/data/workspace/phpcode/popen/badpopen.php on line 2

Warning: popen(echo hello,re): Invalid argument in
/data/workspace/phpcode/popen/badpopen.php on line 4

Warning: popen(echo hello,er): Invalid argument in
/data/workspace/phpcode/popen/badpopen.php on line 6


Actual result:
--------------
Windows crashes on "e" and "er" but allows "re"

-- 
Edit bug report at http://bugs.php.net/?id=44683&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44683&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44683&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44683&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44683&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44683&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44683&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44683&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44683&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44683&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44683&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44683&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44683&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44683&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44683&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44683&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44683&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44683&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44683&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44683&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44683&r=mysqlcfg

Reply via email to