reference/dir/functions/chdir.xml
dec1f8445ab2af7fbafef012fb7907ab2cd349b5
...
...
@@ -42,6 +42,13 @@
42
42
</para>
43
43
</refsect1>
44
44

45
+
<refsect1 role="errors">
46
+
&reftitle.errors;
47
+
<para>
48
+
Throws an error of level <constant>E_WARNING</constant> on failure.
49
+
</para>
50
+
</refsect1>
51
+
45
52
<refsect1 role="examples">
46
53
&reftitle.examples;
47
54
<para>
...
...
@@ -75,7 +82,18 @@ echo getcwd() . "\n";
75
82

76
83
<refsect1 role="notes">
77
84
&reftitle.notes;
78
-
&note.sm.uidcheck.dir;
85
+
<caution>
86
+
<para>
87
+
If the PHP interpreter has been built with ZTS (Zend Thread Safety) enabled,
88
+
any changes to the current directory made through <function>chdir</function>
89
+
will be invisible to the operating system. All built-in PHP functions will
90
+
still respect the change in current directory; but external library
91
+
functions called using <link linkend="book.ffi">FFI</link> will not. You
92
+
can tell whether your copy of PHP was built with ZTS enabled using
93
+
<command>php -i</command> or the built-in constant
94
+
<constant>PHP_ZTS</constant>.
95
+
</para>
96
+
</caution>
79
97
</refsect1>
80
98

81
99
<refsect1 role="seealso">
82
100