#48900 [Opn->Bgs]: passthru not pass stdin to the process

From: Date: Mon, 13 Jul 2009 10:48:25 +0000
Subject: #48900 [Opn->Bgs]: passthru not pass stdin to the process
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-139680@lists.php.net to get a copy of this message
ID: 48900 Updated by: jani@php.net Reported By: fherrero at noticiasdenavarra dot com -Status: Open +Status: Bogus Bug Type: Program Execution Operating System: Windows PHP Version: 5.2.10 New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. See bug #44709 and bug #41874 (fixed in 5.3+) Previous Comments: ------------------------------------------------------------------------ [2009-07-12 23:57:00] fherrero at noticiasdenavarra dot com 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 this bug report at http://bugs.php.net/?id=48900&edit=1

« previous php.bugs (#139680) next »