|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2008-04-10 11:51 UTC] d_kelsey at uk dot ibm dot com
  [2008-04-10 11:58 UTC] d_kelsey at uk dot ibm dot com
  [2008-04-18 12:51 UTC] d_kelsey at uk dot ibm dot com
  [2009-01-19 17:51 UTC] d_kelsey at uk dot ibm dot com
  [2009-08-26 19:57 UTC] svn@php.net
  [2009-08-26 20:05 UTC] pajoye@php.net
  [2010-09-21 16:08 UTC] tony dot dziedzic at oracle dot com
  [2010-09-21 17:05 UTC] pajoye@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 17:00:02 2025 UTC | 
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"