com doc/ja: Incorrect value in include. Patch provided by anonymous 992 via edit.php.net: language/control-structures/include.xml
| From: | Yoshinari Takaoka | Date: | Wed, 30 Dec 2020 15:09:34 +0000 |
| Subject: | com doc/ja: Incorrect value in include. Patch provided by anonymous 992 via edit.php.net: language/control-structures/include.xml | ||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-6009@lists.php.net to get a copy of this message | ||
Commit: bdf0a3efc9673586d2f7ba26083900e21c55941d
Author: Yoshinari Takaoka <mumumu@mumumu.org> Thu, 31 Dec 2020 00:09:34 +0900
Parents: 7a033f866406b02780fb0d4e39da52a834a3f82a
Branches: master
Link: http://git.php.net/?p=doc/ja.git;a=commitdiff;h=bdf0a3efc9673586d2f7ba26083900e21c55941d
Log:
Incorrect value in include. Patch provided by anonymous 992 via edit.php.net
Changed paths:
M language/control-structures/include.xml
Diff:
diff --git a/language/control-structures/include.xml b/language/control-structures/include.xml
index 0d43d4ab2d..07782c3232 100644
--- a/language/control-structures/include.xml
+++ b/language/control-structures/include.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 5b05e0c7e6ef2e70d8f8d7a6c4dd43c44bdd95d6 Maintainer: takagi Status: ready
-->
+<!-- EN-Revision: 4774ba9dba917de68290c5d8bede51cf040d6fcd Maintainer: takagi Status: ready
-->
<!-- Credits: mumumu -->
<sect1 xml:id="function.include" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -202,12 +202,12 @@ include 'http://www.example.com/file.php?foo=1&bar=2';
<programlisting role="php">
<![CDATA[
<?php
-// won't work, evaluated as include(('vars.php') == TRUE), i.e.
include('')
+// 動作しません。include(('vars.php') == TRUE) つまり、include('1')
と評価されます
if (include('vars.php') == TRUE) {
echo 'OK';
}
-// works
+// 動作します。
if ((include 'vars.php') == TRUE) {
echo 'OK';
}