php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17431 natsort() causes PHP to crash
Submitted: 2002-05-26 01:08 UTC Modified: 2002-07-22 21:00 UTC
From: neven at saucerlike dot com Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.1.2 OS: Win98
Private report: No CVE-ID: None
 [2002-05-26 01:08 UTC] neven at saucerlike dot com
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-26 04:07 UTC] derick@php.net
I could not reproduce this. Please try the latest version from www.php.net and report back.
 [2002-07-22 21:00 UTC] sniper@php.net
assumed fixed since no feedback was given.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Dec 26 00:00:01 2025 UTC