reference/dir/functions/chdir.xml
dec1f8445ab2af7fbafef012fb7907ab2cd349b5
...
...
@@ -82,7 +82,18 @@ echo getcwd() . "\n";
82
82

83
83
<refsect1 role="notes">
84
84
&reftitle.notes;
85
-
&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>
86
97
</refsect1>
87
98

88
99
<refsect1 role="seealso">
89
100