ID:               22021
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Compile Failure
 Operating System: Solaris 2.7
 PHP Version:      4CVS-2003-02-02 (stable)
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2003-02-02 16:56:49] [EMAIL PROTECTED]

The HAVE_DIRENT_H and PHP_WIN32 define blocks are reversed in
php_scandir.h, included below.  As shown, GCC compilation will fail at
line 15, blocking the compilation of php_scandir.c.  This is because
HAVE_DIRENT_H is not defined at the shown line 3, therefore dirent.h
does not include.  It is the php_config.h include which contains the
HAVE_DIRENT_H define.

#include <sys/types.h>

#ifdef HAVE_DIRENT_H
#include <dirent.h>
#endif

#ifdef PHP_WIN32
#include "config.w32.h"
#include "win32/readdir.h"
#else
#include "php_config.h"
#endif

#ifndef HAVE_ALPHASORT
int alphasort(const struct dirent **a, const struct dirent **b);
#endif

#ifndef HAVE_SCANDIR
int scandir(const char *dirname,
            struct dirent **namelist[],
            int (*selector)(const struct dirent *entry),
            int (*compare)(const struct dirent **a,const struct dirent **b)
);
#endif


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22021&edit=1

Reply via email to