#40191 [Opn->Csd]: use of array_unique triggers segfault

From: Date: Mon, 22 Jan 2007 08:17:27 +0000
Subject: #40191 [Opn->Csd]: use of array_unique triggers segfault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-107860@lists.php.net to get a copy of this message
ID: 40191 Updated by: tony2001@php.net Reported By: sammy- at gmx dot net -Status: Open +Status: Closed Bug Type: Arrays related Operating System: Debian PHP Version: 5.2.0 New Comment: 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 http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2007-01-22 07:49:04] sammy- at gmx dot net Description: ------------ when using array_unique to unify an ArrayObject, PHP runs into a segfault. Reproduce code: --------------- <?php $arrObj = new ArrayObject(); $arrObj->append('foo'); $arrObj->append('bar'); $arrObj->append('foo'); $arr = array_unique($arrObj); ?> Expected result: ---------------- array ( [0] => 'foo', [1] => 'bar' ) or Error Actual result: -------------- Segfault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40191&edit=1

« previous php.bugs (#107860) next »