mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
28 lines
623 B
PHP
28 lines
623 B
PHP
--TEST--
|
|
Test of fileowner() function: error conditions
|
|
--FILE--
|
|
<?php
|
|
|
|
echo "*** Testing fileowner(): error conditions ***\n";
|
|
/* Non-existing file or dir */
|
|
var_dump( fileowner("/no/such/file/dir") );
|
|
|
|
/* Invalid arguments */
|
|
var_dump( fileowner("string") );
|
|
var_dump( fileowner(100) );
|
|
|
|
echo "\n*** Done ***\n";
|
|
?>
|
|
--EXPECTF--
|
|
*** Testing fileowner(): error conditions ***
|
|
|
|
Warning: fileowner(): stat failed for /no/such/file/dir in %s on line %d
|
|
bool(false)
|
|
|
|
Warning: fileowner(): stat failed for string in %s on line %d
|
|
bool(false)
|
|
|
|
Warning: fileowner(): stat failed for 100 in %s on line %d
|
|
bool(false)
|
|
|
|
*** Done ***
|