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 [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. ----- Original Message ----- From: "Derick Rethans" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, January 05, 2003 1:01 AM Subject: Re: [PHP-DEV] ZEND_NUM_ARGS() > On Sat, 4 Jan 2003 [EMAIL PROTECTED] 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/ > ------------------------------------------------------------------------- > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php