]> granicus.if.org Git - php/commitdiff
Fixed bug #42072 (No warning message for clearstatcache() with arguments).
authorIlia Alshanetsky <iliaa@php.net>
Mon, 23 Jul 2007 23:03:09 +0000 (23:03 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 23 Jul 2007 23:03:09 +0000 (23:03 +0000)
NEWS
ext/standard/filestat.c

diff --git a/NEWS b/NEWS
index 8541ae4f10359ee5e18d288bc3a8a312bb56c7bf..c552481e643d7416d6d6c1d2e985ca6ca39bbad3 100644 (file)
--- 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").
index db25b9df6545f9b3b80d571fa75065ab29a9da5c..0340f86afced9badc258c9df3e322f0d8ab51e16 100644 (file)
@@ -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;