Bug #17257 Updated: Sort functions broken on 64bit platform

From: Date: Fri, 21 Jun 2002 21:33:10 +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-11752@lists.php.net to get a copy of this message
ID: 17257 Updated by: mlong@mlong.org Reported By: mlong@mlong.org Status: Feedback Bug Type: Scripting Engine problem Operating System: Compaq Tru64 5.1 PHP Version: 4.2.1 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2002-06-21 15:34:42] mlong@mlong.org [root@wtpdev php4-200206210000]# yacc --version usage: yacc -svdlt [-b prefix] [-p sym_prefix] [-P path] [-N num] file Gotta love Compaq. I am hesitant to do that because in the past PHP has always compiled on native Tru64 machines without the need to install any third party software. I know Tru64 market share is doing down the drain but there are still a lot of machines out there. ------------------------------------------------------------------------ [2002-06-21 15:14:01] mfischer@php.net It's $ yacc --version GNU Bison version 1.28 on linux here. Maybe you should consider installing the GNU version of that tool for use compiling PHP, I'm not aware of NON-GNU yacc's are even supported. ------------------------------------------------------------------------ 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

« previous php.bugs (#11752) next »