php.net |  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
Votes:1
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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) {
 return($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))));

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-25 18:23 UTC] zeev
Fixed
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Dec 01 21:05:53 2022 UTC