mirror of
https://github.com/php/php-src.git
synced 2024-10-22 08:47:29 +00:00
c93fbf629b
Added clear_realpath_cache and filename parameters to clearstatcache() (Jani, Arnaud) [DOC] clearstatcache() now defaults to not affect the realpath cache. clearstatcache() now takes two optionnal parameters, clear_realpath_cache to clear the realpath cache (defaults to false), and filename to clear only the given filename from the cache.
20 lines
546 B
PHP
20 lines
546 B
PHP
--TEST--
|
|
Test clearstatcache() function: error conditions
|
|
--FILE--
|
|
<?php
|
|
/*
|
|
Prototype: void clearstatcache ([bool clear_realpath_cache[, filename]]);
|
|
Description: clears files status cache
|
|
*/
|
|
|
|
echo "*** Testing clearstatcache() function: error conditions ***\n";
|
|
var_dump( clearstatcache(0, "/foo/bar", 1) ); //No.of args more than expected
|
|
echo "*** Done ***\n";
|
|
?>
|
|
--EXPECTF--
|
|
*** Testing clearstatcache() function: error conditions ***
|
|
|
|
Warning: clearstatcache() expects at most 2 parameters, 3 given in %s on line %d
|
|
NULL
|
|
*** Done ***
|