php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9892 passthru() does not execute all commands in a *.bat-File
Submitted: 2001-03-21 05:12 UTC Modified: 2001-03-26 15:54 UTC
From: b dot rotondi at gmx dot ch Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0.3 OS: Win2000 german
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: b dot rotondi at gmx dot ch
New email:
PHP Version: OS:

 

 [2001-03-21 05:12 UTC] b dot rotondi at gmx dot 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-----------------

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-26 07:06 UTC] b dot rotondi at gmx dot ch
-> Solved in 4.0.4pl1
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC