[PHP-DOC] Bug #13302 Updated: different behavior of array_diff in php4.0.4pl1 and php4.0.5 From: jeroen <email protected>
Date: 09/14/01

ID: 13302
Updated by: jeroen
Reported By: bleek <email protected>
Old Summary: diffrent behavior of array_diff in php4.0.4pl1 and php4.0.5
Old Status: Open
Status: Closed
Old Bug Type: Arrays related
Bug Type: Documentation problem
Operating System: linux
PHP Version: 4.0.5
New Comment:

Documentation problem... And fixed.

I changed array_unique & array_diff, but don't know exactly what versions which behaviour has. Can someone please clarify that?

in 4.0.3pl1 & 4.0.8-dev array_diff behaves in this case like 4.0.5 (and NOT like 4.0.4pl1)

Previous Comments:
------------------------------------------------------------------------

[2001-09-14 09:41:33] bleek <email protected>

<?php
 
$a=array_diff(array("1"),array(1));
 
var_dump($a);
 
?>

X-Powered-By: PHP/4.0.4pl1
Content-type: text/html
 
array(1) {
  [0]=>
  string(1) "1"
}

X-Powered-By: PHP/4.0.5
Content-type: text/html
 
array(0) {
}

------------------------------------------------------------------------

Edit this bug report at http://bugs.php.net/?id=13302&edit=1