Edit report at http://bugs.php.net/bug.php?id=47643&edit=1

 ID:                 47643
 Updated by:         [email protected]
 Reported by:        viper7 at viper-7 dot com
 Summary:            array_diff() takes over 3000 times longer than php
                     5.2.4
-Status:             Assigned
+Status:             Closed
 Type:               Bug
 Package:            Performance problem
 Operating System:   *
 PHP Version:        5.*, 6CVS (2009-04-13)
 Assigned To:        felipe
 Block user comment: N

 New Comment:

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.




Previous Comments:
------------------------------------------------------------------------
[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!

------------------------------------------------------------------------
[2010-02-17 20:53:53] maarten at talkin dot nl

Why dont you only reset ptr if (behavior & DIFF_ASSOC) ?

------------------------------------------------------------------------
[2010-01-17 12:09:15] emiel dot bruijntjes at copernica dot com

This bug is now open for 10 months. Are you still working on this?

------------------------------------------------------------------------


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

Reply via email to