Bug #16212 Updated: Using natsort() on multi-dimensional arrays causes the PHP engine to segfault

From: Date: Thu, 21 Mar 2002 23:08:36 +0000
Subject: Bug #16212 Updated: Using natsort() on multi-dimensional arrays causes the PHP engine to segfault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-3104@lists.php.net to get a copy of this message
ID: 16212 Updated by: mfischer@php.net Reported By: patrick@anarchy.ma.cx Status: Open Bug Type: Reproducible crash Operating System: Mandrake Linux 8.2 PHP Version: 4.1.2 New Comment: Weird, can't reproduce this at all: $ php -r 'error_reporting(E_ALL); $x = array("a",array("x","y"),"b"); natsort($x);' Command line code(1) : Notice - Array to string conversion Command line code(1) : Notice - Array to string conversion Even with 4.1.2 on another machine no esegfault, just the warnings. Previous Comments: ------------------------------------------------------------------------ [2002-03-21 16:44:54] patrick@anarchy.ma.cx The problem arises when you attempt to natsort() a multi-dimensional array, which in turn causes the engine to segault. [patrick@anarchy.ma.cx]-[~]$ echo '<? $x = array("a",array("x","y"),"b"); natsort($x); ?>' | php -q Segmentation fault This bug exists in both PHP-4.1.2 and the current PHP CVS as of 03/21/02. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16212&edit=1

« previous php.bugs (#3104) next »