php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29359 php_ini.c:486: 'alphasort' undeclared
Submitted: 2004-07-23 23:15 UTC Modified: 2005-01-19 01:43 UTC
From: bonk_371 at hotmail dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.0.0 OS: QNX 6.3.0
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: bonk_371 at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-07-23 23:15 UTC] bonk_371 at hotmail dot com
Description:
------------
A bug previously reported, and fixed for php4.3.3 on QNX6 has returned.

make fails on line 486 of php_ini.c

Yes this is genuine and unreported for php5.0.0, yes it was previously reported for older versions and fixed, but it has returned (was forgotten?)

Reproduce code:
---------------
see current PHP 5.0.0 source distribution:
http://ca3.php.net/get/php-5.0.0.tar.gz/from/ca2.php.net/mirror

Expected result:
----------------
I expected the make to complete sucessfully.

Actual result:
--------------
It failed

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-23 23:46 UTC] bonk_371 at hotmail dot com
it also fails to detect iconv on QNX 6.3.0 (I just disabled it in the configure to get around it - not sure it will work...)
 [2004-07-24 06:43 UTC] bonk_371 at hotmail dot com
I implemented the user's fix for this bug posted for 4.3.3 and it worked.
 [2004-07-29 11:18 UTC] tony2001@php.net
Supply more information, please.
Error messages, your fix and other info will help much.
What does your ./configure say about alphasort (./configure ... | grep -i alpha) ?
 [2004-08-11 18:12 UTC] bonk_371 at hotmail dot com
As the title says: php_ini.c:486: 'alphasort' undeclared.

That is the error I encountered in the configure.

I also had to disable iconv in the configure to get it to work.

To avoid the undeclared alphasort error I implemented the fix posted here for 4.3.3, if you haven't been bothered to look at it here it is:

http://bugs.php.net/bug.php?id=25295

I implemented the same fix that "alain dot bonnefoy at icbt dot com" posted. I added:

#include <sys/dir.h>
#include <sys/types.h>

in php.h before the last #endif.

And it worked. Not sure what I'm missing by disabling iconv but all my php scripts are working fine now anyway.

Note: I compiled a php cgi and apache statically, as I could not be bothered to re-write apache's libtool scripts to call qcc instead of gcc. (too much work) The details are recorded here:
http://www.openqnx.com/index.php?name=PNphpBB2&file=viewtopic&t=2624
 [2005-01-19 01:43 UTC] sniper@php.net
This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 20 14:00:02 2025 UTC