Bug #17449 Updated: sort() does not work
| From: | mfischer@php.net | Date: | Fri, 07 Jun 2002 19:22:39 +0000 |
| Subject: | Bug #17449 Updated: sort() does not work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-9792@lists.php.net to get a copy of this message | ||
ID: 17449
Updated by: mfischer@php.net
Reported By: nohn@php.net
-Status: Feedback
+Status: Closed
Bug Type: Arrays related
Operating System: Digital UNIX V4.0G (Rev. 1530)
PHP Version: 4.2.1
Previous Comments:
------------------------------------------------------------------------
[2002-06-07 15:03:05] michael.mauch@gmx.de
Thanks, I didn't know that.
With php4-200206070600, sort() works again, so this bug is solved:
bash-2.01$ ./php
Unaligned access pid=24680 <php> va=0x14005d27c pc=0x1201ad760
ra=0x1201ad754 inst=0xb4010000
<?php
$a = array(9,7,3,5);
sort($a);
print_r($a);
?>
X-Powered-By: PHP/4.3.0-dev
Content-type: text/html
Array
(
[0] => 3
[1] => 5
[2] => 7
[3] => 9
)
I had some problems compiling it on Tru64, though, and the "unaligned
access" doesn't look especially pretty, too.
I will open a new bug report for these (if nobody else did).
Thank you for your help!
------------------------------------------------------------------------
[2002-06-07 12:48:50] mfischer@php.net
STABLE != HEAD, you have to try the non-STABLE snapshot.
------------------------------------------------------------------------
[2002-06-07 11:57:04] michael.mauch@gmx.de
Still does not sort with php4-STABLE-200206070600.
bash-2.01$ php
<?php
$a = array(9,7,3,5);
sort($a);
print_r($a);
?>
X-Powered-By: PHP/4.2.2-dev
Content-type: text/html
Array
(
[0] => 9
[1] => 7
[2] => 3
[3] => 5
)
------------------------------------------------------------------------
[2002-05-28 06:55:19] michael.mauch@gmx.de
php4-200205280000.tar.gz doesn't compile here:
% configure --prefix=/Team/local
[...]
gcc -Imain/ -I/Team/local/src/php4-200205280000/main/ -DPHP_ATOM_INC
-I/Team/local/src/php4-200205280000/include
-I/Team/local/src/php4-200205280000/main
-I/Team/local/src/php4-200205280000
-I/Team/local/src/php4-200205280000/Zend
-I/Team/local/src/php4-200205280000/ext/xml/expat
-I/Team/local/src/php4-200205280000/TSRM -g -O2 -c
/Team/local/src/php4-200205280000/main/user_streams.c -o
main/user_streams.o && echo > main/user_streams.lo
In file included from
/usr/local/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/include/stdarg.h:36,
from
/Team/local/src/php4-200205280000/Zend/zend.h:59,
from /Team/local/src/php4-200205280000/main/php.h:34,
from
/Team/local/src/php4-200205280000/main/user_streams.c:22:
/usr/local/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/include/va-alpha.h:36:
warning: redefinition of `va_list'
/usr/local/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/include/va_list.h:7:
warning: `va_list' previously declared here
Make: Don't know how to make /zend_language_parser.c. Stop.
Zend/zend_language_parser.c exists, but the Makefile searches for
/zend_language_parser.c and several other files in /.
------------------------------------------------------------------------
[2002-05-27 17:28:23] mfischer@php.net
This may be related to a casting problem which is supposed to be fixed
in HEAD, please try this version (snapshots are available at
snaps.php.net), thx.
------------------------------------------------------------------------
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/17449
--
Edit this bug report at http://bugs.php.net/?id=17449&edit=1