[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: preg_grep changed behavior by design?

2001-01-18 Thread instigator
From: [EMAIL PROTECTED] Operating system: GNU/Linux PHP version: 4.0.4pl1 PHP Bug Type: PCRE related Bug description: preg_grep changed behavior by design? "; } # This works as expected, [0] is result, [1] is whatever. $b = preg_grep( "/^foo/", $a ); echo "try to find foo a