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/* Prototype  : bool chdir(string $directory)
12 * Description: Change the current directory
13 * Source code: ext/standard/dir.c
14 */
15
16/*
17 * Pass a directory that does not exist as $directory to chdir() to test behaviour
18 */
19
20echo "*** Testing chdir() : error conditions ***\n";
21
22$directory = __FILE__ . '/私はガラスを食べられますidonotexist';
23
24var_dump(chdir($directory));
25?>
26===DONE===
27--EXPECTF--
28*** Testing chdir() : error conditions ***
29
30Warning: chdir(): %s (errno %d) in %s on line %d
31bool(false)
32===DONE===
33