PHP 4.0 Bug #5410 Updated: system() and related functions don't produce output anymore

From: Date: Fri, 28 Jul 2000 12:19:03 +0000
Subject: PHP 4.0 Bug #5410 Updated: system() and related functions don't produce output anymore
Groups: php.dev 
Request: Send a blank email to php-dev+get-26708@lists.php.net to get a copy of this message
ID: 5410 Updated by: waldschrott Reported By: whole@gmx.net Status: Feedback Bug Type: Misbehaving function Assigned To: Comments: user feedback: BD> so doesn´t BD> system('dir'); BD> work for you? Nope. Neither do exec() or passthru() return any output. I tried it on WIN NT 4.0/IIS 4 and on W2K/IIS 5, in both cases PHP is running as CGI. BD> I´m on Win2k and it works, you just need to output the returned value. $test_out=system("dir"); echo $testout; - nothing. And actually, as far as I dig it, system() returns AND outputs automatically at least the last line of the commands' output. (give it a try under unix: system("ls -la"); prints out the whole directory content in one line. What is going wrong then? It worked perfectly from 3.0.12 to 3.0.16! BD> If I want to supress it I turn ob_buffering on... I tried EVERYTHING that has to do with buffering. No chance. BD> watch you php.ini if it´s turned on, if it is, turn it off and try again... Did that more than once. BD> for debuggin scripts you should turn implicit_flush=on, then you´ll get every result printed Not even then. No output. How come it works for your system? Something MUST be different... let's find it out, if you like! In our Intranet apps I work a lot with system(), but I would like to use the new features of Ver 4 as well... Full Bug description available at: http://bugs.php.net/?id=5410

« previous php.dev (#26708) next »