PHP 4.0 Bug #9892 Updated: passthru() does not execute all commands in a *.bat-File
| From: | sniper@php.net | Date: | Mon, 26 Mar 2001 20:54:06 +0000 |
| Subject: | PHP 4.0 Bug #9892 Updated: passthru() does not execute all commands in a *.bat-File | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49988@lists.php.net to get a copy of this message | ||
ID: 9892
Updated by: sniper
Reported By: b.rotondi@gmx.ch
Old-Status: Duplicate
Status: Closed
Bug Type: Unknown/Other Function
Assigned To:
Comments:
Previous Comments:
---------------------------------------------------------------------------
[2001-03-21 05:12:39] b.rotondi@gmx.ch
Hello
Congratulation for you new Site-Layout. I like it! More white, more light :)
I think you already know this bug: passthru() does not execute all commands in a *.bat-File (and
does not execute all commands included directly like
$PassThru = "C:\_\bladeenc.exe -q -quiet C:\_\sound.wav C:\_\sound.mp3";
System($PassThru);
Exec($PassThru);
PassThru($PassThru);
).
I used passthru already with success on my Win2000-Platform with php 4.04 and MS Information Server
(both german, no Service-Packages). But bladeenc.exe and mp3enc31.exe cannot be executed
(mp3enc31 hangs).
Thanks for any help, suggestion, infos.
- Or do you need further Details about the bug?
------------test.php-----------------
<html>
<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<script language="php">
$PassThru = "C:\_\bladeenc.exe -q -quiet C:\_\sound.wav C:\_\sound.mp3";
$PassThru = "C:\_\enc.bat";
// $PassThru = "C:\Mp3.exe -br 32000 -if C:\1253.wav -of C:\1253.mp3";
echo $PassThru;
System($PassThru);
Exec($PassThru);
PassThru($PassThru);
phpinfo();
</script>
</body>
</html>
------------test.php-----------------
------------enc.bat-----------------
dir c: > c:_dir1
attrib -a c:_dir1
bladeenc.exe -q -quiet c:_sound.wav c:_sound.mp3
dir c: > c:_dir2
------------enc.bat-----------------
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9892&edit=2