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 this is not your bug, you can add a comment by following this link.
If this is your bug, but 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

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 06:01:30 2024 UTC