From 13e47276f8279955f1b9761c10dbb18744fb5bf7 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Thu, 7 Jun 2012 23:42:44 +0000 Subject: [PATCH] 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 --- reference/dir/functions/scandir.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reference/dir/functions/scandir.xml b/reference/dir/functions/scandir.xml index 2563e10a6f..9f0131ebfc 100644 --- a/reference/dir/functions/scandir.xml +++ b/reference/dir/functions/scandir.xml @@ -84,8 +84,11 @@ 5.4.0 - sorting_order now accepts constants. Any - nonzero value caused descending order in previous versions. + sorting_order constants + were added. Any nonzero value caused descending order in previous versions. So + for all PHP versions, use 0 for ascending order, and 1 + for descending order. An option for SCANDIR_SORT_NONE behavior did not + exist prior to PHP 5.4.0.