From:             [EMAIL PROTECTED]
Operating system: Win98
PHP version:      4.1.2
PHP Bug Type:     Reproducible crash
Bug description:  natsort() causes PHP to crash

Incredibly enough, PHP seems to crash on my system when I try running a
script containing the following lines:

$images = array (
'08icon.gif',
'amy1.jpg',
'alphabet.gif',
'alisa.jpg',
'ACME10.jpg');

natsort($images);

This is what's reported:

APACHE caused an invalid page fault in
module PHP4TS.DLL at 017f:00e1afc5.
Registers:
EAX=00e1afc0 CS=017f EIP=00e1afc5 EFLGS=00010206
EBX=0578a4c8 SS=0187 ESP=01eef9a0 EBP=78001d42
ECX=28206770 DS=0187 ESI=28206770 FS=6b27
EDX=0070d998 ES=0187 EDI=0578aad0 GS=0000
Bytes at CS:EIP:
8b 06 66 ff 48 0a 8b 06 66 8b 48 0a 66 85 c9 75 
Stack dump:
31342078 00e189f7 28206770 05784e18 05784fb4 78001d42 05784b7c 00e15b4e
0578a4c8 05784e24 00e1afdc 05784fb4 0578aa58 00e189f7 05784e24 05784bb8

If i change the line to a regular sort(), no error appears. Strange.
-- 
Edit bug report at http://bugs.php.net/?id=17431&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17431&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17431&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17431&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17431&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17431&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17431&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17431&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17431&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17431&r=globals

Reply via email to