Re: Additions to PHP_Compat
| From: | Michael Wallner | Date: | Wed, 26 May 2004 16:09:30 +0000 |
| Subject: | Re: Additions to PHP_Compat | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-29703@lists.php.net to get a copy of this message | ||
Hi Stefan Neufeind, you wrote:
> If you use it in a program that e.g. does multiple writes to STDOUT,
> am I wrong that this would open the file again and again for each of
> the output-calls, resulting in many open files and never (until
> script end) closing any of these? Or do these calls always return the
> same handler to the stdout etc. (not tested)?
I hope I got you right:
Once STDIN is defined it won't step into the if
condition any more, so php://stdin etc. is only
opened once.
Regards,
--
Michael - < mike(@)php.net >
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc