#42072 [Csd->Opn]: No warning message for clearstatcache() with arguments

From: Date: Mon, 13 Aug 2007 06:24:26 +0000
Subject: #42072 [Csd->Opn]: No warning message for clearstatcache() with arguments
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-116004@lists.php.net to get a copy of this message
ID: 42072 User updated by: mahesh dot vemula at in dot ibm dot com Reported By: mahesh dot vemula at in dot ibm dot com -Status: Closed +Status: Open -Bug Type: Filesystem function related +Bug Type: *General Issues Operating System: RHEL 4, Windows Xp -PHP Version: 5CVS-2007-07-22 (CVS) +PHP Version: PHP6 New Comment: Warning message is expected for PHP6 also. Previous Comments: ------------------------------------------------------------------------ [2007-07-23 23:03:24] iliaa@php.net This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2007-07-22 18:08:22] mahesh dot vemula at in dot ibm dot com Description: ------------ PHP engine doesn’t throw the Warning message regarding “Wrong parameter count” for the function clearstatcache() with one or more arguments, as function expects zero number (void) of arguments. Environment: Operating System: Linux, Windows XP PHP Version:PHP 5.2.4-dev (cli) (built: Jul 21 2007 19:21:35) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies Configure Setup: ./configure Reproduce code: --------------- var_dump( clearstatcache("cache") ); //args > expected var_dump( clearstatcache("cache", 100) ); //args > expected var_dump( clearstatcache("cache", 100, TRUE) ); //args > expected Expected result: ---------------- PHP Warning: Wrong parameter count for clearstacache() in %s code on line %d NULL PHP Warning: Wrong parameter count for clearstacache() in %s code on line %d NULL PHP Warning: Wrong parameter count for clearstacache() in %s code on line %d NULL Actual result: -------------- NULL NULL NULL ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42072&edit=1

« previous php.bugs (#116004) next »