From: [EMAIL PROTECTED]
Operating system: Win2000 german
PHP version: 4.0.4pl1
PHP Bug Type: Unknown/Other Function
Bug description: passthru() does not execute all commands in a *.bat-File
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-----------------
--
Edit Bug report at: http://bugs.php.net/?id=9892&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]