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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-25 18:23 UTC] zeev
Fixed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 03:01:28 2024 UTC