diff options
| author | foobar <sniper@php.net> | 2003-02-19 09:28:37 +0000 |
|---|---|---|
| committer | foobar <sniper@php.net> | 2003-02-19 09:28:37 +0000 |
| commit | fd631013d96c35d565e6edc34e861b2d896b07d7 (patch) | |
| tree | e004b8cc4e3ada724a65fb4fb5f60137c689dd0c /main/php_ini.c | |
| parent | fe2506a5ff7be617ff73cc96248086fdb9644687 (diff) | |
| download | php-git-fd631013d96c35d565e6edc34e861b2d896b07d7.tar.gz | |
MFH: prevent conflicts with other libraries (e.g. libc-client)
Diffstat (limited to 'main/php_ini.c')
| -rw-r--r-- | main/php_ini.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/main/php_ini.c b/main/php_ini.c index 8b1b7d1c1b..84751b3a68 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -30,11 +30,10 @@ #include "zend_highlight.h" #include "SAPI.h" #include "php_main.h" +#include "php_scandir.h" -#if !HAVE_SCANDIR || !HAVE_ALPHASORT - #include "php_scandir.h" -#else - #include <dirent.h> +#if HAVE_SCANDIR && HAVE_ALPHASORT && HAVE_DIRENT_H +#include <dirent.h> #endif #ifndef S_ISREG @@ -404,7 +403,7 @@ int php_init_config() struct dirent **namelist; int ndir, i; - if ((ndir = scandir(PHP_CONFIG_FILE_SCAN_DIR, &namelist, 0, alphasort)) > 0) { + if ((ndir = php_scandir(PHP_CONFIG_FILE_SCAN_DIR, &namelist, 0, php_alphasort)) > 0) { for (i = 0; i < ndir; i++) { /* check for a .ini extension */ if (!(p = strrchr(namelist[i]->d_name, '.')) || (p && strcmp(p, ".ini"))) { |
