20 lines
425 B
PHP
20 lines
425 B
PHP
--TEST--
|
|
Test chdir() function : error conditions - Non-existent directory
|
|
--FILE--
|
|
<?php
|
|
/*
|
|
* Pass a directory that does not exist as $directory to chdir() to test behaviour
|
|
*/
|
|
|
|
echo "*** Testing chdir() : error conditions ***\n";
|
|
|
|
$directory = __FILE__ . '/idonotexist';
|
|
|
|
var_dump(chdir($directory));
|
|
?>
|
|
--EXPECTF--
|
|
*** Testing chdir() : error conditions ***
|
|
|
|
Warning: chdir(): %s (errno %d) in %s on line %d
|
|
bool(false)
|