Bug #17257 Updated: Sort functions broken on 64bit platform
| From: | sniper@php.net | Date: | Mon, 24 Jun 2002 07:53:47 +0000 |
| Subject: | Bug #17257 Updated: Sort functions broken on 64bit platform | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-11872@lists.php.net to get a copy of this message | ||
ID: 17257
Updated by: sniper@php.net
Reported By: mlong@mlong.org
Status: Closed
Bug Type: Scripting Engine problem
Operating System: Compaq Tru64 5.1
PHP Version: 4.2.1
New Comment:
The releases always have these bison/flex generated files
in them so you won't get those compile errors.
Previous Comments:
------------------------------------------------------------------------
[2002-06-21 17:48:24] mfischer@php.net
I think it's best to open a new report about your compile problems so
someone who can help finds it easier; just copy over all the relevant
information.
Closing this bug due user request.
------------------------------------------------------------------------
[2002-06-21 17:33:09] mlong@mlong.org
I took zend_qsort.h and zend_qsort.c from the latest build and put it
into 4.2.0 and compiled it and that did indeed fix the problem.
An example ksort:
BEFORE p pineapples
BEFORE a apples
BEFORE o oranges
BEFORE b bananas
BEFORE g grapes
AFTER a apples
AFTER b bananas
AFTER g grapes
AFTER o oranges
AFTER p pineapples
So it looks like this bug can be closed. I do hope the compile problems
are looked at before the next release but since every prior released
(4.1.1, 4.2.0, etc.) has compiled without incident I have faith that
will be taken care of.
Thanks for help...much appreciated.
------------------------------------------------------------------------
[2002-06-21 16:20:28] venaas@php.net
The sort problem might be due to a bug in zend_qsort.
If you want to test this without fixing the build, you
could try to replace zend_qsort() with qsort() in the
relevant places, or test with the new zend_qsort() (it
was changed and hopefully fixed May 10, v1.5).
------------------------------------------------------------------------
[2002-06-21 16:05:17] mlong@mlong.org
Ok I installed GNU bison.
I now get this error when doing a make on latest php:
cc -Imain/ -I/web/php4-200206210000/main/ -DPHP_ATOM_INC
-I/web/php4-2002062100
00/include -I/web/php4-200206210000/main -I/web/php4-200206210000
-I/web/php4-20
0206210000/Zend -I/web/php4-200206210000/ext/xml/expat
-I/web/php4-200206210000
/TSRM -g -c /web/php4-200206210000/main/memory_streams.c -o
main/memory_streams
.o && echo > main/memory_streams.lo
cc -Imain/ -I/web/php4-200206210000/main/ -DPHP_ATOM_INC
-I/web/php4-2002062100
00/include -I/web/php4-200206210000/main -I/web/php4-200206210000
-I/web/php4-20
0206210000/Zend -I/web/php4-200206210000/ext/xml/expat
-I/web/php4-200206210000
/TSRM -g -c /web/php4-200206210000/main/user_streams.c -o
main/user_streams.o
&& echo > main/user_streams.lo
Make: Don't know how to make /zend_language_parser.c. Stop.
------------------------------------------------------------------------
[2002-06-21 15:38:21] mfischer@php.net
Well, I think it won't bring us anywhere unless you try the GNU tools
and see if it works.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/17257
--
Edit this bug report at http://bugs.php.net/?id=17257&edit=1