#48900 [NEW]: passthru not pass stdin to the process

From: Date: Sun, 12 Jul 2009 23:57:00 +0000
Subject: #48900 [NEW]: passthru not pass stdin to the process
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-139666@lists.php.net to get a copy of this message
From: fherrero at noticiasdenavarra dot com Operating system: Windows PHP version: 5.2.10 PHP Bug Type: Program Execution Bug description: passthru not pass stdin to the process Description: ------------ Windows XP/2003/2008/Vista PHP => 5.2.4 (5.2.4, 5.2.5, 5.2.6, 5.2.9, 5.2.10 and 5.3.0 tested) When execute passthru('pause') in cmd windows whith php-cli, 'pause' is executed but php not pass stdin to 'pause': the script is paused forever. Whith PHP 5.2.0 its works fine. Cuando se ejecuta passthru('pause') en una ventana de comandos con php-cli, la pausa se produce pero php no pasa la entrada estándar al proceso: el script se queda eternamente en pausa. Reproduce code: --------------- <?php echo 'Vamos a pausar el script, para reanudarlo pulse una tecla', "\n"; echo 'Script is paused, press a key for continue', "\n"; passthru('pause'); echo 'Seguimos el script', "\n"; echo 'Script is continued'; ?> Expected result: ---------------- Vamos a pausar el script, para reanudarlo pulse una tecla Script is paused, press a key for continue Presione una tecla para continuar . . . ['Press any key to continue' echoed by pause command, script is paused until key is pressed] Seguimos el script Script is continued [ Actual result: -------------- Vamos a pausar el script, para reanudarlo pulse una tecla Script is paused, press a key for continue Presione una tecla para continuar . . . ['Press any key to continue' echoed by pause command, script is paused forever] -- Edit bug report at http://bugs.php.net/?id=48900&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48900&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48900&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48900&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48900&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48900&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48900&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48900&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48900&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48900&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48900&r=support Expected behavior: http://bugs.php.net/fix.php?id=48900&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48900&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48900&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48900&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48900&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48900&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48900&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48900&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48900&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48900&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48900&r=mysqlcfg

« previous php.bugs (#139666) next »