Bug #18217 Updated: natcasesort() crashes

From: Date: Wed, 24 Jul 2002 13:51:05 +0000
Subject: Bug #18217 Updated: natcasesort() crashes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15046@lists.php.net to get a copy of this message
ID: 18217 Updated by: peter@panvox.net Reported By: mail@dbCF.de Status: Bogus Bug Type: Reproducible crash Operating System: Windows 98 PHP Version: 4.2.1 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2002-07-08 02:00:55] mail@dbCF.de Okay, it crashes, but the line "$pages=natcasesort($pages);" was really stupid... ------------------------------------------------------------------------ [2002-07-08 01:43:56] mail@dbCF.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" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18217&edit=1

« previous php.bugs (#15046) next »