Bug #16212: Using natsort() on multi-dimensional arrays causes the PHP engine to segfault
| From: | patrick at anarchy dot ma dot cx | Date: | Thu, 21 Mar 2002 21:44:55 +0000 |
| Subject: | Bug #16212: Using natsort() on multi-dimensional arrays causes the PHP engine to segfault | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-3088@lists.php.net to get a copy of this message | ||
From: patrick@anarchy.ma.cx
Operating system: Mandrake Linux 8.2
PHP version: 4.1.2
PHP Bug Type: Reproducible crash
Bug description: Using natsort() on multi-dimensional arrays causes the PHP engine to segfault
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 bug report at http://bugs.php.net/?id=16212&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16212&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16212&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16212&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16212&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16212&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16212&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16212&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16212&r=submittedtwice