|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #104 unsupported use of sort causes core dump
Submitted: 1998-02-25 17:40 UTC Modified: 1998-02-25 18:23 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: chrism at FOUR dot net Assigned:
Status: Closed Package: Other
PHP Version: 3.0b5 OS: FreeBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: chrism at FOUR dot net
New email:
PHP Version: OS:


 [1998-02-25 17:40 UTC] chrism at FOUR dot net
When you incorrectly use the sort() function, PHP barfs
and dumps core.

function a($array) {
$testarray = array("this", "is", "a", "test");

$newarray = sort(a($testarray));
echo count($newarray)."\n";

Should handle the error situation better or permit sort()
to be used in this way. :)  $x = a(b(c(sort($d))));


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-25 18:23 UTC] zeev
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 01:01:30 2024 UTC