You are here: Re: Missing STDOUT, STDERR with CLI « PHP Programming Language « IT news, forums, messages
Re: Missing STDOUT, STDERR with CLI

Posted by ljb on 11/13/07 23:15

nc@iname.com wrote:
> On Nov 12, 4:46 pm, ljb <lba...@pobox.com.delete.th.is> wrote:
>>
>> Using the PHP CLI executable, if the script to run is fed
>> to PHP via standard input, then it seems PHP does not define
>> any of the standard stream constants STDIN, STDOUT, and STDERR.
>> While I can understand not defining STDIN, since that's where
>> the script is, I think not defining STDOUT and STDERR is a bug.
>> Any comments before I open a bug report?
>
> Are you sure you're using CLI interpreter, not CGI one? What does
> php_sapi_name() return?

Yes, thanks, I'm using CLI. I only have Apache SAPI and CLI built, no CGI,
and php_sapi_name() returns 'cli'.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация