Bug #54297 [Opn->Fbk]: different outputs of the same script
| From: | danack@php.net | Date: | Sat, 10 Jan 2015 21:01:50 +0000 |
| Subject: | Bug #54297 [Opn->Fbk]: different outputs of the same script | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-189869@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: danack@php.net
Reported by: valentiny510 at yahoo dot es
Summary: different outputs of the same script
-Status: Open
+Status: Feedback
Type: Bug
Package: Filesystem function related
Operating System: win xp sp 2
PHP Version: 5.3.5
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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