From: mahesh dot vemula at in dot ibm dot com
Operating system: RHEL 4, Windows Xp
PHP version: 5CVS-2007-07-22 (CVS)
PHP Bug Type: Performance problem
Bug description: No warning message for clearstatcache() with arguments
Description:
------------
PHP engine doesnt 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 bug report at http://bugs.php.net/?id=42072&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42072&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42072&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42072&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42072&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42072&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42072&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42072&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42072&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42072&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42072&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42072&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42072&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42072&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42072&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42072&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42072&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42072&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42072&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42072&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42072&r=mysqlcfg