From: Ilia Alshanetsky Date: Mon, 23 Jul 2007 23:03:09 +0000 (+0000) Subject: Fixed bug #42072 (No warning message for clearstatcache() with arguments). X-Git-Tag: php-5.2.4RC1~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5cdae5bdbb1847c4d6e512c62d0ef7e7e1e9c608;p=php Fixed bug #42072 (No warning message for clearstatcache() with arguments). --- diff --git a/NEWS b/NEWS index 8541ae4f10..c552481e64 100644 --- a/NEWS +++ b/NEWS @@ -59,6 +59,8 @@ PHP NEWS - Fixed PECL bug #11216 (crash in ZipArchive::addEmptyDir when a directory already exists). (Pierre) +- Fixed bug #42072 (No warning message for clearstatcache() with arguments). + (Ilia) - Fixed bug #42071 (ini scanner allows using NULL as option name). (Jani) - Fixed bug #42019 (configure option --with-adabas=DIR does not work). (Jani) - Fixed bug #42015 (ldap_rename(): server error "DSA is unwilling to perform"). diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index db25b9df65..0340f86afc 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -702,6 +702,10 @@ PHP_FUNCTION(touch) Clear file stat cache */ PHP_FUNCTION(clearstatcache) { + if (ZEND_NUM_ARGS()) { + WRONG_PARAM_COUNT; + } + if (BG(CurrentStatFile)) { efree(BG(CurrentStatFile)); BG(CurrentStatFile) = NULL;