mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Remove PHP4-specific content
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341080 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
88df56ddeb
commit
7385e38407
1 changed files with 2 additions and 27 deletions
|
@ -104,6 +104,7 @@
|
|||
echo dirname("/etc/passwd") . PHP_EOL;
|
||||
echo dirname("/etc/") . PHP_EOL;
|
||||
echo dirname(".") . PHP_EOL;
|
||||
echo dirname("C:\\") . PHP_EOL;
|
||||
echo dirname("/usr/local/lib", 2);
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@ -113,6 +114,7 @@ echo dirname("/usr/local/lib", 2);
|
|||
/etc
|
||||
/ (or \ on Windows)
|
||||
.
|
||||
C:\
|
||||
/usr
|
||||
]]>
|
||||
</screen>
|
||||
|
@ -136,33 +138,6 @@ echo dirname("/usr/local/lib", 2);
|
|||
be set using the <function>setlocale</function> function.
|
||||
</para>
|
||||
</note>
|
||||
<note>
|
||||
<para>
|
||||
Since PHP 4.3.0, you will often get a slash or a dot back from
|
||||
<function>dirname</function> in situations where the older
|
||||
functionality would have given you the empty string.
|
||||
</para>
|
||||
</note>
|
||||
<para>
|
||||
Check the following change example:
|
||||
<informalexample>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
//before PHP 4.3.0
|
||||
dirname('c:/'); // returned '.'
|
||||
|
||||
//after PHP 4.3.0
|
||||
dirname('c:/x'); // returns 'c:\'
|
||||
dirname('c:/Temp/x'); // returns 'c:/Temp'
|
||||
dirname('/x'); // returns '\'
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
|
|
Loading…
Reference in a new issue