Edit report at http://bugs.php.net/bug.php?id=47643&edit=1
ID: 47643
Comment by: jaromir dot dolecek at skype dot net
Reported by: viper7 at viper-7 dot com
Summary: array_diff() takes over 3000 times longer than php
5.2.4
Status: Closed
Type: Bug
Package: Performance problem
Operating System: *
PHP Version: 5.*, 6CVS (2009-04-13)
Assigned To: felipe
Block user comment: N
Private report: N
New Comment:
Looking at the fix, the same problem seems to be possible to happen with
DIFF_ASSOC option.
Previous Comments:
------------------------------------------------------------------------
[2010-11-11 22:25:36] [email protected]
Automatic comment from SVN on behalf of felipe
Revision: http://svn.php.net/viewvc/?view=revision&revision=305279
Log: - Fixed bug #47643 (array_diff() takes over 3000 times longer than
php 5.2.4)
------------------------------------------------------------------------
[2010-11-01 18:18:32] [email protected]
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2010-11-01 18:16:49] [email protected]
Automatic comment from SVN on behalf of felipe
Revision: http://svn.php.net/viewvc/?view=revision&revision=305011
Log: - Fixed bug #47643 (array_diff() takes over 3000 times longer than
php 5.2.4)
------------------------------------------------------------------------
[2010-08-04 05:21:29] lonnyk at gmail dot com
I feel as though the actual bug here is the fix that caused this issue.
If you
revert the fix and typecast the variables passed into the custom compare
function
as (string) then this works fine. This is in line with other non-user
defined
comparison functions, they compare as === and not ==
------------------------------------------------------------------------
[2010-04-16 22:20:37] sylvain at jamendo dot com
I would also appreciate a patch, this issue made our servers crash after
a php 5.3
upgrade :-/
thanks!
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=47643
--
Edit this bug report at http://bugs.php.net/bug.php?id=47643&edit=1