php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25295 php_ini.c:414: 'alphasort' undeclared
Submitted: 2003-08-28 09:40 UTC Modified: 2003-09-08 10:19 UTC
From: alain dot bonnefoy at icbt dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.3 OS: QNX6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alain dot bonnefoy at icbt dot com
New email:
PHP Version: OS:

 

 [2003-08-28 09:40 UTC] alain dot bonnefoy at icbt dot com
Description:
------------
To compile php_ini.c under QNX6.2 with GCC, I had to add the following lines (at the end of php.ini):

35: #include <sys/dir.h>
36: #include <sys/types.h>

Would it be possible to fix it for future release?

Thanks,
Alain.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-29 09:30 UTC] sniper@php.net
In what file did you add those?
And what is HAVE_ALPHASORT defined in main/php_config.h ?

 [2003-09-02 01:11 UTC] alain dot bonnefoy at icbt dot com
Sorry for the mistake, I add the files <sys/dir.h> and <sys/types.h> at the end of php.h (before #endif)!

in main/php_config.h:
#define HAVE_ALPHASORT 1

regards,
Alain.
 [2003-09-02 09:26 UTC] sniper@php.net
What is HAVE_SYS_DIR_H defined in main/php_config.h ?
It's enought to include dir.h in php_scandir.h..
Just need to know it that define is there.



 [2003-09-03 01:41 UTC] alain dot bonnefoy at icbt dot com
This line was commented out, I admit that I didn't see this definition BUT, I tried #define and #undef, that doesn't change anything!

The result of 'grep -in dir.h main/*.[hc] is:

main/internal_functions_win32.c:40:#include "ext/standard/php_dir.h"
main/php_config.h:661:/* Define if you have the <ndir.h> header file.  */
main/php_config.h:662:/* #undef HAVE_NDIR_H */
main/php_config.h:715:/* Define if you have the <sys/dir.h> header file.  */
main/php_config.h:716:#undef HAVE_SYS_DIR_H
main/php_config.h:733:/* Define if you have the <sys/ndir.h> header file.  */
main/php_config.h:734:/* #undef HAVE_SYS_NDIR_H */
main/php_ini.c:33:#include "php_scandir.h"
main/php_scandir.c:28:#include "php_scandir.h"
main/php_scandir.c:41:#include "win32/readdir.h"
main/php_scandir.h:20:/* $Id: php_scandir.h,v 1.2.2.4 2003/02/19 18:45:03 sniper Exp $ */
main/php_scandir.h:22:#ifndef PHP_SCANDIR_H
main/php_scandir.h:23:#define PHP_SCANDIR_H
main/php_scandir.h:29:#include "win32/readdir.h"
main/php_scandir.h:50:#endif /* PHP_SCANDIR_H */
main/reentrancy.c:28:#include "win32/readdir.h"


As you can see, it seems that no file try to include sys/dir.h.

right?

Alain.
 [2003-09-03 10:41 UTC] sniper@php.net
Get this:
 
  http://snaps.php.net/php4-STABLE-latest.tar.gz

And replacement files:

  http://www.php.net/~jani/patches/bug25295.tar.gz

Replace the files, run configure and make.
If it fails, check again what HAVE_SYS_DIR_H is set to.
(this would be so much easier if I had access to QNX.. :)

 [2003-09-06 21:09 UTC] sniper@php.net
Did the replacement files fix this problem?

 [2003-09-08 02:08 UTC] alain dot bonnefoy at icbt dot com
Thanks,
I going to see that ASAP.

For QNX you can see www.qnx.com, it should be possible to download the os for non commercial use, it's quite light.


Alain.
 [2003-09-08 09:14 UTC] sniper@php.net
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.


 [2003-09-08 10:19 UTC] alain dot bonnefoy at icbt dot com
everything is fine now.

thanks a lot,
Regards,
Alain
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 09 16:01:29 2024 UTC