From: svens94 at yahoo dot de Operating system: Debian 6.0.5 PHP version: Irrelevant Package: Arrays related Bug Type: Bug Bug description:comparison error
Description: ------------ --- >From manual page: http://www.php.net/function.array-uintersect#refsect1- function.array-uintersect-description --- array_uintersect (and other intersect-functions with callback) maybe link wrong.. the callback get some data a second time or nothing or it gets 2 from the same array Test script: --------------- function compTest($first, $second) { echo "<br> first:".$first." second: ".$second; if($first == $second) return 0; return 1; } array_uintersect(range(1,3),range(1,3),"comptest"); <hr> array_uintersect(range(1,2),range(4,5),"comptest"); Expected result: ---------------- 1->1 1->2 1->3 and so on... _____ 1->4 1->5 2->4 2->5 Actual result: -------------- first:2 second: 1 first:3 second: 2 first:2 second: 1 first:3 second: 2 first:1 second: 1 first:1 second: 2 first:2 second: 2 first:2 second: 3 first:3 second: 3 ________ first:2 second: 1 first:5 second: 4 first:1 second: 4 first:1 second: 5 -- Edit bug report at https://bugs.php.net/bug.php?id=63029&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63029&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63029&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63029&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63029&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=63029&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=63029&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63029&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63029&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63029&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63029&r=support Expected behavior: https://bugs.php.net/fix.php?id=63029&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63029&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63029&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63029&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63029&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63029&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63029&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63029&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63029&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63029&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63029&r=mysqlcfg
