mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Adding case sensitivity note to include_once and require_once
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@90352 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
1d30fb07b9
commit
8be263e259
1 changed files with 33 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.59 $ -->
|
||||
<!-- $Revision: 1.60 $ -->
|
||||
<chapter id="control-structures">
|
||||
<title>Control Structures</title>
|
||||
|
||||
|
@ -1357,6 +1357,22 @@ echo $bar; // prints 1
|
|||
<function>require_once</function> was added in PHP 4.0.1pl2
|
||||
</para>
|
||||
</note>
|
||||
<note>
|
||||
<para>
|
||||
Be aware, that the behaviour of <function>require_once</function>
|
||||
amd <function>include_once</function> may not be what you expect
|
||||
on a non case sensitive operating system (such as Windows).
|
||||
<example>
|
||||
<title><function>require_once</function> is case sensitive</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
require_once("a.php"); // this will include a.php
|
||||
require_once("A.php"); // this will include a.php again on Windows!
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</note>
|
||||
&warn.no-win32-fopen-wrapper;
|
||||
<para>
|
||||
See also: <function>require</function>,
|
||||
|
@ -1395,6 +1411,22 @@ echo $bar; // prints 1
|
|||
<function>include_once</function> was added in PHP 4.0.1pl2
|
||||
</para>
|
||||
</note>
|
||||
<note>
|
||||
<para>
|
||||
Be aware, that the behaviour of <function>include_once</function>
|
||||
amd <function>require_once</function> may not be what you expect
|
||||
on a non case sensitive operating system (such as Windows).
|
||||
<example>
|
||||
<title><function>include_once</function> is case sensitive</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
include_once("a.php"); // this will include a.php
|
||||
include_once("A.php"); // this will include a.php again on Windows!
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</note>
|
||||
&warn.no-win32-fopen-wrapper;
|
||||
<para>
|
||||
See also <function>include</function>,
|
||||
|
|
Loading…
Reference in a new issue