reference/dir/functions/getcwd.xml
aa0cb38a27858dac31214068ead6f600cd6047a2
...
...
@@ -10,7 +10,7 @@
10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
12
<methodsynopsis>
13
-
<type>string</type><methodname>getcwd</methodname>
13
+
<type class="union"><type>string</type><type>false</type></type><methodname>getcwd</methodname>
14
14
<void/>
15
15
</methodsynopsis>
16
16
<para>
...
...
@@ -18,6 +18,11 @@
18
18
</para>
19
19
</refsect1>
20
20

21
+
<refsect1 role="parameters">
22
+
&reftitle.parameters;
23
+
&no.function.parameters;
24
+
</refsect1>
25
+

21
26
<refsect1 role="returnvalues">
22
27
&reftitle.returnvalues;
23
28
<para>
...
...
@@ -64,6 +69,18 @@ echo getcwd() . "\n";
64
69
</para>
65
70
</refsect1>
66
71

72
+
<refsect1 role="notes">
73
+
<caution>
74
+
<para>
75
+
If the PHP interpreter has been built with ZTS (Zend Thread Safety) enabled,
76
+
the current working directory returned by <function>getcwd</function>
77
+
may be different from that returned by operating system interfaces.
78
+
External libraries (invoked through <link linkend="book.ffi">FFI</link>)
79
+
which depend on the current working directory will be affected.
80
+
</para>
81
+
</caution>
82
+
</refsect1>
83
+

67
84
<refsect1 role="seealso">
68
85
&reftitle.seealso;
69
86
<para>
70
87