Clarified that the constants were added in 5.4.0, and how to mimic asc|desc before that. Closes PHP bug #62256

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326021 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2012-06-07 23:42:44 +00:00
parent 33f6eda0cd
commit 13e47276f8

View file

@ -84,8 +84,11 @@
<row>
<entry>5.4.0</entry>
<entry>
<parameter>sorting_order</parameter> now accepts constants. Any
nonzero value caused descending order in previous versions.
<parameter>sorting_order</parameter> <link linkend="dir.constants">constants</link>
were added. Any nonzero value caused descending order in previous versions. So
for all PHP versions, use <literal>0</literal> for ascending order, and <literal>1</literal>
for descending order. An option for <constant>SCANDIR_SORT_NONE</constant> behavior did not
exist prior to PHP 5.4.0.
</entry>
</row>
</tbody>