From: wzed dot php at gmail dot com Operating system: Windows XP PHP version: 5.2CVS-2008-04-13 (snap) PHP Bug Type: Program Execution Bug description: CLI input not passed to executed programs
Description: ------------ When a program is executed via one of PHP's program-execution functions, it is unable to accept input from the command line. This prevents interactive CLI programs from actually being interactive. I believe this is a regression in PHP 5.2.2, as 5.2.1 and 4.x behave as expected. It may be related to the fix for bug #33664. Also see bug #41874. Reproduce code: --------------- <?php passthru('pause'); echo "You pressed a key, exiting now"; ?> Expected result: ---------------- C:\>php-5.2.1-Win32\php test.php Press any key to continue . . . You pressed a key, exiting now C:\> Actual result: -------------- C:\>php-5.2.2-Win32\php test.php Press any key to continue . . . ^C C:\>x Note: Nothing happens when a key (in this case "x") is pressed. The script hangs until terminated with Ctrl+C. -- Edit bug report at http://bugs.php.net/?id=44709&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44709&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44709&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44709&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44709&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44709&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44709&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44709&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44709&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44709&r=support Expected behavior: http://bugs.php.net/fix.php?id=44709&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44709&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44709&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44709&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44709&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44709&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44709&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44709&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44709&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44709&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44709&r=mysqlcfg