]> granicus.if.org Git - php/commitdiff
scandir -> php_scandir, alphasort -> php_alphasort
authorfoobar <sniper@php.net>
Wed, 19 Feb 2003 09:27:29 +0000 (09:27 +0000)
committerfoobar <sniper@php.net>
Wed, 19 Feb 2003 09:27:29 +0000 (09:27 +0000)
ext/standard/dir.c

index b274fed410681042cacb6531945087e477710a0c..6ed208372c7ce31562a329981d53d2318f51b716 100644 (file)
 #include "fopen_wrappers.h"
 #include "file.h"
 #include "php_dir.h"
+#include "php_scandir.h"
 
 #ifdef HAVE_DIRENT_H
-# include <dirent.h>
+#include <dirent.h>
 #endif
 
 #if HAVE_UNISTD_H
@@ -39,9 +40,6 @@
 #include "win32/readdir.h"
 #endif
 
-#if !HAVE_ALPHASORT || !HAVE_SCANDIR
-#include "php_scandir.h"
-#endif
 
 #ifdef HAVE_GLOB
 #ifndef PHP_WIN32
@@ -466,9 +464,9 @@ PHP_FUNCTION(scandir)
        }
 
        if (!flags) {
-               n = scandir(path, &namelist, 0, alphasort);
+               n = php_scandir(path, &namelist, 0, php_alphasort);
        } else {
-               n = scandir(path, &namelist, 0, php_alphasortr);
+               n = php_scandir(path, &namelist, 0, php_alphasortr);
        }
 
        if (n < 0) {