Bug #13302 Updated: different behavior of array_diff in php4.0.4pl1 and php4.0.5

From: Date: Fri, 14 Sep 2001 23:11:16 +0000
Subject: Bug #13302 Updated: different behavior of array_diff in php4.0.4pl1 and php4.0.5
References: 1  Groups: php.dev php.doc 
Request: Send a blank email to php-dev+get-65969@lists.php.net to get a copy of this message
ID: 13302 Updated by: jeroen Reported By: bleek@jobpilot.de 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@jobpilot.de <?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

« previous php.dev (#65969) next »