[php-maint] Bug#513916: php5: php <= 5.2.0-8+etch13 (debian etch): PHP Bug #40191: use of array_unique triggers segfault. http://bugs.php.net/bug.php?id=40191

Dino Ciuffetti dino at tuxweb.it
Mon Feb 2 12:59:06 UTC 2009


Package: php5
Version: 5.2.0-8+etch13
Severity: normal


This is PHP bug number #40191, fixed in major versions:
http://bugs.php.net/bug.php?id=40191

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

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-xen
Locale: LANG=it_IT at euro, LC_CTYPE=it_IT at euro (charmap=ISO-8859-15)

Versions of packages php5 depends on:
ii  php5-cgi                  5.2.0-8+etch13 server-side, HTML-embedded scripti
ii  php5-common               5.2.0-8+etch13 Common files for packages built fr

php5 recommends no packages.

-- no debconf information





More information about the pkg-php-maint mailing list