reference/dir/functions/getcwd.xml
62126c55f1c6ed444043e7272c4f9e233818a44b
...
...
@@ -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,19 @@ echo getcwd() . "\n";
64
69
</para>
65
70
</refsect1>
66
71

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

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