com doc/zh: sync to en: Fix #80712: getcwd(): return type includes false: reference/dir/functions/getcwd.xml
| From: | Bole Chen | Date: | Mon, 08 Feb 2021 08:21:13 +0000 |
| Subject: | com doc/zh: sync to en: Fix #80712: getcwd(): return type includes false: reference/dir/functions/getcwd.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-5965@lists.php.net to get a copy of this message | ||
Commit: 623f02474fa6b24cd6ae120438284a68632057d6
Author: Bole Chen <avenger@php.net> Mon, 8 Feb 2021 16:21:13 +0800
Parents: d13c02543d352249b5b62bf38e3f6d70cc32ae66
Branches: master
Link: http://git.php.net/?p=doc/zh.git;a=commitdiff;h=623f02474fa6b24cd6ae120438284a68632057d6
Log:
sync to en: Fix #80712: getcwd(): return type includes false
Bugs:
https://bugs.php.net/80712
Changed paths:
M reference/dir/functions/getcwd.xml
Diff:
diff --git a/reference/dir/functions/getcwd.xml b/reference/dir/functions/getcwd.xml
index c50d9be7..adadb3e4 100755
--- a/reference/dir/functions/getcwd.xml
+++ b/reference/dir/functions/getcwd.xml
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
+<!-- splitted from ../en/functions/dir.xml, last change in rev 1.7 -->
<!-- $Author$ -->
-<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: dallas Status: ready
-->
+<!-- EN-Revision: 6f540a4bf2b3c2e2271022d0a31efa1a3036677c Maintainer: dallas Status: ready
-->
<refentry xml:id="function.getcwd" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>getcwd</refname>
@@ -11,7 +12,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>string</type><methodname>getcwd</methodname>
+ <type
class="union"><type>string</type><type>false</type></type><methodname>getcwd</methodname>
<void/>
</methodsynopsis>
<para>
@@ -30,6 +31,16 @@
</para>
</refsect1>
+ <refsect1 role="notes">
+ <caution>
+ <para>
+ 如果在编译 PHP 时启用了 ZTS(Zend Thread Safety)选项,则
<function>getcwd</function>
+
函数返回的当前工作目录可能与操作系统接口返回的目录不同。依赖于当前工作目录的外部库(通过
+ <link linkend="book.ffi">FFI</link> 调用)将受到影响。
+ </para>
+ </caution>
+ </refsect1>
+
<refsect1 role="examples">
&reftitle.examples;
<para>