diff options
| author | Adam Harvey <aharvey@php.net> | 2010-11-26 09:52:28 +0000 |
|---|---|---|
| committer | Adam Harvey <aharvey@php.net> | 2010-11-26 09:52:28 +0000 |
| commit | 9a1568c1134535179366b105d7ae8578bc6bfda4 (patch) | |
| tree | 49941c1315af7742eb336d952b2fa061d2189682 /ext/standard/php_dir.h | |
| parent | 4574844c52cdb4cf2d6c6f35925b2171f2d1887b (diff) | |
| download | php-git-9a1568c1134535179366b105d7ae8578bc6bfda4.tar.gz | |
Implemented FR #53407 (make scandir()'s directory sorting optional).
Diffstat (limited to 'ext/standard/php_dir.h')
| -rw-r--r-- | ext/standard/php_dir.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/standard/php_dir.h b/ext/standard/php_dir.h index 157480d328..63b7a9b860 100644 --- a/ext/standard/php_dir.h +++ b/ext/standard/php_dir.h @@ -37,4 +37,8 @@ PHP_FUNCTION(getdir); PHP_FUNCTION(glob); PHP_FUNCTION(scandir); +#define PHP_SCANDIR_SORT_ASCENDING 0 +#define PHP_SCANDIR_SORT_DESCENDING 1 +#define PHP_SCANDIR_SORT_NONE 2 + #endif /* PHP_DIR_H */ |
