[PHP-DEV] PHP 4.0 Bug #8794 Updated: preg_grep changed behavior by design?

2001-03-08 Thread stas
ID: 8794 Updated by: stas Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: PCRE related Assigned To: Comments: Manual says that the behaviour of preg_grep is exaclty what it is. You can use each() or foreach() to go through the array, count() is not sacred in any way (a

[PHP-DEV] PHP 4.0 Bug #8794 Updated: preg_grep changed behavior by design?

2001-01-19 Thread instigator
ID: 8794 User Update by: [EMAIL PROTECTED] Old-Status: Closed Status: Open Bug Type: PCRE related Description: preg_grep changed behavior by design? The behavior is inconsistent with expectations and breaks code. In the example given count() returns 1, so loops attempting to access found eleme

[PHP-DEV] PHP 4.0 Bug #8794 Updated: preg_grep changed behavior by design?

2001-01-19 Thread andrei
ID: 8794 Updated by: andrei Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: PCRE related Assigned To: Comments: Yes, preg_grep() was always supposed to return the results with their original keys but it wasn't until the behavior was fixed a little while ago. Previous