]> granicus.if.org Git - php/commitdiff
MFB: Fixed bug #42072 (No warning message for clearstatcache() with arguments).
authorHannes Magnusson <bjori@php.net>
Sun, 2 Sep 2007 11:53:51 +0000 (11:53 +0000)
committerHannes Magnusson <bjori@php.net>
Sun, 2 Sep 2007 11:53:51 +0000 (11:53 +0000)
ext/standard/filestat.c

index 31121727720a42ba610e07625bfae5cdbbb6c80c..3ace3c755176951340eae378fddaf3bf603de771 100644 (file)
@@ -755,6 +755,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;