Re: ZEND_NUM_ARGS()
| From: | nicos@php.net | Date: | Sun, 05 Jan 2003 02:45:42 +0000 |
| Subject: | Re: ZEND_NUM_ARGS() | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-93138@lists.php.net to get a copy of this message | ||
What about windows then? You find normal that filetype acceps null as an
argument? You find normal that we do a stat64 on "" ?
Regards.
M.CHAILLAN Nicolas
nicos@php.net
www.WorldAKT.com Hébergement de sites internets.
----- Original Message -----
From: "Derick Rethans" <derick@php.net>
To: <nicos@php.net>
Cc: <php-dev@lists.php.net>
Sent: Sunday, January 05, 2003 1:01 AM
Subject: Re: [PHP-DEV] ZEND_NUM_ARGS()
> On Sat, 4 Jan 2003 nicos@php.net wrote:
>
> > Hello,
> >
> > After seeing the bug #21410, I just found that
function_name(null)
> > will make ZEND_NUM_ARGS()
> > returning 1. I really think that null should be ignored or something...
>
> Of course it should not be ignored, NULL can be used as an argument
> like any other type.
>
> > Actually with filetype(null), it transforms null in a string and
try
> > to stat "null" which is a bit stupid...
>
> It doesn't stat "null", it stats the filename which was transformed to
> an empty string (strace output):
>
> stat64("", 0xbfffee90) = -1 ENOENT (No such file or
directory)
> lstat64("", 0xbfffee90) = -1 ENOENT (No such file or
directory)
>
> > Any comment?
>
> Stop wasting time by commenting on things you have little clue of.
>
> Derick
>
> --
>
> -------------------------------------------------------------------------
> Derick Rethans
> http://derickrethans.nl/
> PHP Magazine - PHP Magazine for Professionals
> http://php-mag.net/
> -------------------------------------------------------------------------
>