Re: ZEND_NUM_ARGS()
| From: | Derick Rethans | Date: | Sun, 05 Jan 2003 00:01:55 +0000 |
| Subject: | Re: ZEND_NUM_ARGS() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-93133@lists.php.net to get a copy of this message | ||
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/
-------------------------------------------------------------------------