2007-08-13 11:50:47 +00:00
|
|
|
--TEST--
|
2007-11-02 12:57:52 +00:00
|
|
|
Test clearstatcache() function: error conditions
|
2007-08-13 11:50:47 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
/*
|
2008-08-07 09:24:04 +00:00
|
|
|
Prototype: void clearstatcache ([bool clear_realpath_cache[, filename]]);
|
2007-08-13 11:50:47 +00:00
|
|
|
Description: clears files status cache
|
|
|
|
*/
|
|
|
|
|
|
|
|
echo "*** Testing clearstatcache() function: error conditions ***\n";
|
2008-08-07 09:24:04 +00:00
|
|
|
var_dump( clearstatcache(0, "/foo/bar", 1) ); //No.of args more than expected
|
2007-08-13 11:50:47 +00:00
|
|
|
echo "*** Done ***\n";
|
|
|
|
?>
|
|
|
|
--EXPECTF--
|
|
|
|
*** Testing clearstatcache() function: error conditions ***
|
2007-11-02 12:57:52 +00:00
|
|
|
|
2008-08-07 09:24:04 +00:00
|
|
|
Warning: clearstatcache() expects at most 2 parameters, 3 given in %s on line %d
|
2007-08-13 11:50:47 +00:00
|
|
|
NULL
|
|
|
|
*** Done ***
|