bjori           Sun Sep  2 11:53:51 2007 UTC

  Modified files:              
    /php-src/ext/standard       filestat.c 
  Log:
  MFB: Fixed bug #42072 (No warning message for clearstatcache() with 
arguments).
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/filestat.c?r1=1.162&r2=1.163&diff_format=u
Index: php-src/ext/standard/filestat.c
diff -u php-src/ext/standard/filestat.c:1.162 
php-src/ext/standard/filestat.c:1.163
--- php-src/ext/standard/filestat.c:1.162       Sat Jul 14 08:38:19 2007
+++ php-src/ext/standard/filestat.c     Sun Sep  2 11:53:51 2007
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: filestat.c,v 1.162 2007/07/14 08:38:19 tony2001 Exp $ */
+/* $Id: filestat.c,v 1.163 2007/09/02 11:53:51 bjori Exp $ */
 
 #include "php.h"
 #include "fopen_wrappers.h"
@@ -755,6 +755,10 @@
    Clear file stat cache */
 PHP_FUNCTION(clearstatcache)
 {
+       if (ZEND_NUM_ARGS()) {
+               WRONG_PARAM_COUNT;
+       }
+
        if (BG(CurrentStatFile)) {
                efree(BG(CurrentStatFile));
                BG(CurrentStatFile) = NULL;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to