From 5cdae5bdbb1847c4d6e512c62d0ef7e7e1e9c608 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 23 Jul 2007 23:03:09 +0000 Subject: [PATCH] Fixed bug #42072 (No warning message for clearstatcache() with arguments). --- NEWS | 2 ++ ext/standard/filestat.c | 4 ++++ 2 files changed, 6 insertions(+) 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; -- 2.50.1