From: Operating system: win xp sp 2 PHP version: 5.3.5 Package: Filesystem function related Bug Type: Bug Bug description:different outputs of the same script
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 bug report at http://bugs.php.net/bug.php?id=54297&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54297&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54297&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54297&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54297&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54297&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54297&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54297&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54297&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54297&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54297&r=support Expected behavior: http://bugs.php.net/fix.php?id=54297&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54297&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54297&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54297&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54297&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54297&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54297&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54297&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54297&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54297&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54297&r=mysqlcfg