Bug #71751 [Opn->Nab]: Return incorrect result

From: Date: Wed, 09 Mar 2016 08:01:34 +0000
Subject: Bug #71751 [Opn->Nab]: Return incorrect result
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199689@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 Updated by: requinix@php.net Reported by: sasha87654321 at gmail dot com Summary: Return incorrect result -Status: Open +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: array_diff() preserves keys. Previous Comments: ------------------------------------------------------------------------ [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 (#199689) next »