Re: Additions to PHP_Compat
| From: | Lorenzo Alberton | Date: | Wed, 26 May 2004 18:24:29 +0000 |
| Subject: | Re: Additions to PHP_Compat | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-29713@lists.php.net to get a copy of this message | ||
On Wed, 26 May 2004 18:47:51 +0200, Lorenzo Alberton wrote:
> On Wed, 26 May 2004 18:09:30 +0200, Michael Wallner wrote:
>
>> Hi Stefan Neufeind, you wrote:
>>>> Could these be added to PHP_Compat?
>>>>
>>>>
>>>> if (!defined('STDIN')) {
>>>> define('STDIN', fopen('php://stdin', 'r'));
>>>> }
>
> I never tried something like that, but the definition above looks
> more like a C macro than a define...
er... please ignore. With my mind, I was out with
my bike already 8-)
Of course, the above code will assign to STDIN the *result*
of fopen(), not the function itself like in a C macro...
Sorry for the noise.
Regards,
--
Lorenzo Alberton
http://pear.php.net/user/quipo