Bug #54297 [Fbk->NoF]: different outputs of the same script

From: Date: Sun, 18 Jan 2015 04:22:20 +0000
Subject: Bug #54297 [Fbk->NoF]: different outputs of the same script
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190020@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=54297&edit=1 ID: 54297 Updated by: php-bugs@lists.php.net Reported by: valentiny510 at yahoo dot es Summary: different outputs of the same script -Status: Feedback +Status: No Feedback Type: Bug Package: Filesystem function related Operating System: win xp sp 2 PHP Version: 5.3.5 Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2015-01-10 21:01:50] danack@php.net Hi valentiny510, Did you try Carsten's suggestion of just trying it in the shell? It doesn't sound like it's an issue with PHP. ------------------------------------------------------------------------ [2011-03-18 12:45:14] carsten_sttgt at gmx dot de That's just a curios behavior of "cmd.exe" if it's executed with forward slashs (just try it in the shell). ------------------------------------------------------------------------ [2011-03-17 15:58:39] valentiny510 at yahoo dot es Description: ------------ I'm not sure it's really a bug but did not find any explanation or on the web or php page.. here I go .. I run the same script with different slashes and got 2 results Test script: --------------- $output = C:\\WINDOWS\\system32\\cmd.exe /?; echo "<pre>$output</pre>"; ............................... $output = C:/WINDOWS/system32/cmd.exe /?; echo "<pre>$output</pre>"; Expected result: ---------------- CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF] [[/S] [/C | /K] cadena] /C Ejecuta el comando especificado en cadena y luego finaliza /K Ejecuta el comando especificado en cadena pero sigue activo /S Modifica el tratamiento de cadena despu�s de /C o /K (consultar m�s abajo) /Q Deshabilita el eco /D Deshabilita le ejecuci�n de los comandos de AutoRun del registro (consultar m�s abajo) ...........................................ETC Actual result: -------------- 1 example return: CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF] [[/S] [/C | /K] cadena] /C Ejecuta el comando especificado en cadena y luego finaliza /K Ejecuta el comando especificado en cadena pero sigue activo /S Modifica el tratamiento de cadena despu�s de /C o /K (consultar m�s abajo) /Q Deshabilita el eco /D Deshabilita le ejecuci�n de los comandos de AutoRun del registro (consultar m�s abajo) ............................... 2 example return this: MKDIR [unidad:]ruta MD [unidad:]ruta Si las extensiones de comandos est�n habilitadas, MKDIR cambia as�: MKDIR crea cualquier directorio intermedio de la ruta de acceso siempre que sea necesario. Por ejemplo, si \a no existe: mkdir \a\b\c\d es lo mismo que: mkdir \a chdir \a mkdir b chdir b mkdir c chdir c mkdir d ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=54297&edit=1

« previous php.bugs (#190020) next »