php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18217 natcasesort() crashes
Submitted: 2002-07-08 01:43 UTC Modified: 2002-07-08 02:00 UTC
From: mail at dbCF dot de Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.2.1 OS: Windows 98
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mail at dbCF dot de
New email:
PHP Version: OS:

 

 [2002-07-08 01:43 UTC] mail at dbCF dot de
I've an array:
-------------------------------
$i=-1;
$i++; $pages[$i]=array("0158","RW 18 und 8","http://members.surfeu.de/rw18u8/","rw18und8.jpg","236","178");
$i++; $pages[$i]=array("0157","Steve's World","http://www.assiy2k.de/steve.htm","stevesworld.jpg","273","197");
$i++; $pages[$i]=array("0156","Mauricios Homepage","http://home.arcor.de/mauricio/","mauricio.jpg","427","251");
$i++; $pages[$i]=array("0155","***action concept***","http://www.actionconcept.com/html/fs_start_ja.htm","actionconcept.jpg","377","186");
$i++; $pages[$i]=array("0154","www.arsch.de - der grund f?r die erfindung des internets","http://www.arsch.de/intro3.htm","arsch.gif","326","110");
$i++; $pages[$i]=array("0153","SMS-Bilder kostenlos...","http://hartjes.cc/","hartjes.gif","409","186");
...and so on...
-------------------------------

The function natcasesort ("$pages=natcasesort($pages);") makes my PHP-engine crash.
The browser shows me:
"Notice: Array to string conversion in [...]\inetpub\flashhasser\files\showlinks.php on line 45"

Windows also shows me the following box with this message:
"PHP verursachte einen Fehler durch eine ung?ltige Seite
in Modul KERNEL32.DLL bei 015f:bff7a115.
Register:
EAX=011c5aa8 CS=015f EIP=bff7a115 EFLGS=00010212
EBX=023c0e70 SS=0167 ESP=0063f794 EBP=0063f7c8
ECX=00100000 DS=0167 ESI=011e0308 FS=64a7
EDX=011c5aa8 ES=0167 EDI=011e0b68 GS=0000
Bytes bei CS:EIP:
8b 03 a8 01 74 25 25 fc ff ff 0f 8b 53 08 03 f8 
Stapelwerte:
0063f7c8 011e0310 01170000 011e0884 bff7b30e 01170000 011e0308 011e0b68 00000200 00760120 011e0330 00000005 011e0308 00000000 1008d95b 01170000"

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-08 02:00 UTC] mail at dbCF dot de
Okay, it crashes, but the line "$pages=natcasesort($pages);" was really stupid...
 [2002-07-24 09:51 UTC] peter at panvox dot net
For me it causes Apache 2 to shut down.  
The error log shows the following:

[Wed Jul 24 09:37:01 2002] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Wed Jul 24 09:37:02 2002] [notice] Parent: Created child process 2680
[Wed Jul 24 09:37:02 2002] [notice] Child 2680: Child process is running
[Wed Jul 24 09:37:03 2002] [notice] Child 2680: Acquired the start mutex.
[Wed Jul 24 09:37:03 2002] [notice] Child 2680: Starting 250 worker threads.

Platform:
Win-XP ( home )
PHP 4.2.1
Apache 2
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 10:01:33 2025 UTC