1--TEST-- 2Test chdir() function : error conditions - Non-existent directory 3--SKIPIF-- 4<?php 5if (substr(PHP_OS, 0, 3) != 'WIN') { 6 die("skip Valid only on Windows"); 7} 8?> 9--FILE-- 10<?php 11/* 12 * Pass a directory that does not exist as $directory to chdir() to test behaviour 13 */ 14 15echo "*** Testing chdir() : error conditions ***\n"; 16 17$directory = __FILE__ . '/私はガラスを食べられますidonotexist'; 18 19var_dump(chdir($directory)); 20?> 21--EXPECTF-- 22*** Testing chdir() : error conditions *** 23 24Warning: chdir(): %s (errno %d) in %s on line %d 25bool(false) 26