mirror of
https://github.com/php/php-src.git
synced 2024-09-27 12:57:26 +00:00
24 lines
665 B
Plaintext
24 lines
665 B
Plaintext
|
--TEST--
|
||
|
Test clearstatcache() function: error conditions(bug#42072)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
/*
|
||
|
Prototype: void clearstatcache (void);
|
||
|
Description: clears files status cache
|
||
|
*/
|
||
|
|
||
|
echo "*** Testing clearstatcache() function: error conditions ***\n";
|
||
|
var_dump( clearstatcache("file") ); //No.of args more than expected
|
||
|
echo "*** Done ***\n";
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
*** Testing clearstatcache() function: error conditions ***
|
||
|
Warning: clearstatcache() expects 0 parameter, 1 given in %s on line %d
|
||
|
NULL
|
||
|
*** Done ***
|
||
|
--UEXPECTF--
|
||
|
*** Testing clearstatcache() function: error conditions ***
|
||
|
Warning: clearstatcache() expects 0 parameter, 1 given in %s on line %d
|
||
|
NULL
|
||
|
*** Done ***
|