cvs: php-src /ext/pcre TODO
| From: | Andrei Zmievski | Date: | Thu, 06 Apr 2006 21:23:56 +0000 |
| Subject: | cvs: php-src /ext/pcre TODO | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-37684@lists.php.net to get a copy of this message | ||
andrei Thu Apr 6 21:23:56 2006 UTC
Modified files:
/php-src/ext/pcre TODO
Log:
More stuff from Friedl..
http://cvs.php.net/viewcvs.cgi/php-src/ext/pcre/TODO?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/pcre/TODO
diff -u php-src/ext/pcre/TODO:1.2 php-src/ext/pcre/TODO:1.3
--- php-src/ext/pcre/TODO:1.2 Thu Apr 6 21:16:28 2006
+++ php-src/ext/pcre/TODO Thu Apr 6 21:23:56 2006
@@ -17,5 +17,18 @@
(Note that this would not involve the use of PCRE_NO_AUTO_CAPTURE, as
that would change the semantics of backreferences)
+- In looking at preg_grep, I think it'd be pretty easy to implement some flags:
+
+ PREG_GREP_REKEY_ALL --- all key values are rekeyed, as if return array had been
+ passed through array_values().
+
+ PREG_GREP_REKEY_NUMS --- only numeric key values are rekeyed; string key values
+ are maintained
+
+ PREG_GREP_REKEY_NONE ---- (default and current situation) keys are maintained
+
+ I can't judge the social effect of changing the default, but my intuition
+ of a grep function in PHP would be that the default is PREG_GREP_REKEY_NUMS
+ or PREG_GREP_REKEY_ALL....