language/control-structures/include-once.xml
af6fdf16ab44bcf4d045407963e43c3d9dd2ff29
...
...
@@ -22,30 +22,6 @@
22
22
See the <function>include</function> documentation for information about
23
23
how this function works.
24
24
</para>
25
-
<para>
26
-
<note>
27
-
<para>
28
-
With PHP 4, <literal>_once</literal> functionality differs with case-insensitive
29
-
operating systems (like Windows) so for example:
30
-
<example>
31
-
<title><literal>include_once</literal> with a case insensitive OS in PHP 4</title>
32
-
<programlisting role="php">
33
-
<![CDATA[
34
-
<?php
35
-
include_once "a.php"; // this will include a.php
36
-
include_once "A.php"; // this will include a.php again! (PHP 4 only)
37
-
?>
38
-
]]>
39
-
</programlisting>
40
-
</example>
41
-
</para>
42
-
<para>
43
-
This behaviour changed in PHP 5, so for example with Windows the path is normalized first so that
44
-
<filename>C:\PROGRA~1\A.php</filename> is realized the same as
45
-
<filename>C:\Program Files\a.php</filename> and the file is included just once.
46
-
</para>
47
-
</note>
48
-
</para>
49
25
</sect1>
50
26

51
27
<!-- Keep this comment at the end of the file
52
28