Bug #71751 [Com]: Return incorrect result

From: Date: Wed, 09 Mar 2016 08:56:35 +0000
Subject: Bug #71751 [Com]: Return incorrect result
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199690@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71751&edit=1 ID: 71751 Comment by: sasha87654321 at gmail dot com Reported by: sasha87654321 at gmail dot com Summary: Return incorrect result Status: Not a bug Type: Bug Package: Scripting Engine problem Operating System: Linux ehml2.ix-host.ru 2.6.32-57 PHP Version: Irrelevant Block user comment: N Private report: N New Comment: No. Problem is not in the preservation of keys. For example, $myarr has '40989767' value (last one) and $myarr_del hasn't. array_diff() must return this value in result, but don't. Previous Comments: ------------------------------------------------------------------------ [2016-03-09 08:01:33] requinix@php.net array_diff() preserves keys. ------------------------------------------------------------------------ [2016-03-09 07:42:50] sasha87654321 at gmail dot com Description: ------------ I found an error in the function array_diff. Test it on: - PHP Version 7.0.3 (System - Linux ehml2.ix-host.ru 2.6.32-573.8.1.el6.x86_64) - PHP Version 5.4.38 (System - Linux ehml2.ix-host.ru 2.6.32-573.8.1.el6.x86_64) - PHP Version 5.4.45 (Linux mocha3015.mochahost.com 2.6.32-531.29.2.lve1.3.11.1.el6.x86_64) Result of array_diff return few empty values. See - http://pro-photos.net/write/php_bug.php Test script: --------------- Bug info page - http://pro-photos.net/write/php_bug.php#tscript Expected result: ---------------- See - http://photos.net/write/php_bug.php#myscr Actual result: -------------- See - http://pro-photos.net/write/php_bug.php#tsr ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71751&edit=1

« previous php.bugs (#199690) next »