|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40191 use of array_unique triggers segfault
Submitted: 2007-01-22 07:49 UTC Modified: 2007-01-22 08:17 UTC
From: sammy- at gmx dot net Assigned:
Status: Closed Package: Arrays related
PHP Version: 5.2.0 OS: Debian
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.
Bug Type:
From: sammy- at gmx dot net
New email:
PHP Version: OS:


 [2007-01-22 07:49 UTC] sammy- at gmx dot net
when using array_unique to unify an ArrayObject, PHP runs into a segfault.

Reproduce code:
$arrObj = new ArrayObject();

$arr = array_unique($arrObj);

Expected result:
array (
  [0] => 'foo',
  [1] => 'bar'

or Error

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-22 08:17 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Sep 27 15:01:25 2023 UTC