]> granicus.if.org Git - php/commitdiff
More stuff from Friedl..
authorAndrei Zmievski <andrei@php.net>
Thu, 6 Apr 2006 21:23:56 +0000 (21:23 +0000)
committerAndrei Zmievski <andrei@php.net>
Thu, 6 Apr 2006 21:23:56 +0000 (21:23 +0000)
ext/pcre/TODO

index 1c596c0459f2e59e2692dcdc461a21425d8320ca..164cf0e3d4f0a4a623c29ece7ea7f32b73195a2c 100644 (file)
   (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....