Re: [PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-24 Thread Marten Lehmann
Hello, dan...@daniel-laptop:~$ php test.php /dev/null Error 1 Error 2 dan...@daniel-laptop:~$ ./src/php-5.2.12/sapi/cli/php test.php /dev/null Error 1 Error 2 well, using php-cli instead of php-cgi, this finally worked: ? fwrite(STDERR, test\n); fclose(STDERR); ? But why doesn't it work

Re: [PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-24 Thread Daniel Egeberg
On Wed, Mar 24, 2010 at 14:12, Marten Lehmann lehm...@cnm.de wrote: Hello, dan...@daniel-laptop:~$ php test.php  /dev/null Error 1 Error 2 dan...@daniel-laptop:~$ ./src/php-5.2.12/sapi/cli/php test.php  /dev/null Error 1 Error 2 well, using php-cli instead of php-cgi, this finally

Re: [PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-24 Thread Jan G.B.
2010/3/24 Marten Lehmann lehm...@cnm.de Hello, dan...@daniel-laptop:~$ php test.php /dev/null Error 1 Error 2 dan...@daniel-laptop:~$ ./src/php-5.2.12/sapi/cli/php test.php /dev/null Error 1 Error 2 well, using php-cli instead of php-cgi, this finally worked: ? fwrite(STDERR,

[PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-23 Thread Marten Lehmann
Hello, I found different code examples like this, which use the file handle STDERR just like this: ?php fwrite(STDERR, hello\n); ? Also, the PHP documentation of input/output streams (http://php.net/manual/de/wrappers.php.php) says: It is recommended that you simply use the constants

Re: [PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-23 Thread Jan G.B.
2010/3/23 Marten Lehmann lehm...@cnm.de Hello, I found different code examples like this, which use the file handle STDERR just like this: ?php fwrite(STDERR, hello\n); ? Also, the PHP documentation of input/output streams ( http://php.net/manual/de/wrappers.php.php) says: It is

Re: [PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-23 Thread Daniel Egeberg
On Tue, Mar 23, 2010 at 11:47, Marten Lehmann lehm...@cnm.de wrote: Hello, I found different code examples like this, which use the file handle STDERR just like this: ?php fwrite(STDERR, hello\n); ? Also, the PHP documentation of input/output streams

Re: [PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-23 Thread Jan G.B.
2010/3/23 Daniel Egeberg degeb...@php.net On Tue, Mar 23, 2010 at 11:47, Marten Lehmann lehm...@cnm.de wrote: Hello, I found different code examples like this, which use the file handle STDERR just like this: ?php fwrite(STDERR, hello\n); ? Also, the PHP documentation of

Re: [PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-23 Thread Daniel Egeberg
On Tue, Mar 23, 2010 at 15:50, Jan G.B. ro0ot.w...@googlemail.com wrote: 2010/3/23 Daniel Egeberg degeb...@php.net On Tue, Mar 23, 2010 at 11:47, Marten Lehmann lehm...@cnm.de wrote: Hello, I found different code examples like this, which use the file handle STDERR just like this: