php-src/ext/standard/tests/array/bug40191.phpt
Steph Fox 833f4150a1 - killed off UEXPECT
- could someone please fix var_export2.phpt? NUL is corrupted, can't fix here
2008-05-26 23:36:10 +00:00

26 lines
426 B
PHP

--TEST--
Bug #40191 (use of array_unique() with objects triggers segfault)
--SKIPIF--
<?php if (!extension_loaded('spl')) die("skip SPL is not available"); ?>
--FILE--
<?php
$arrObj = new ArrayObject();
$arrObj->append('foo');
$arrObj->append('bar');
$arrObj->append('foo');
$arr = array_unique($arrObj);
var_dump($arr);
echo "Done\n";
?>
--EXPECTF--
array(2) {
[0]=>
unicode(3) "foo"
[1]=>
unicode(3) "bar"
}
Done