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