nlopess Mon Jul 3 14:46:44 2006 UTC
Added files: (Branch: PHP_5_2)
/php-src/ext/pcre/tests preg_replace_callback2.phpt
Modified files:
/php-src/ext/pcre/tests match_flags3.phpt
Log:
more testing
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/tests/match_flags3.phpt?r1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/ext/pcre/tests/match_flags3.phpt
diff -u php-src/ext/pcre/tests/match_flags3.phpt:1.1.2.1
php-src/ext/pcre/tests/match_flags3.phpt:1.1.2.2
--- php-src/ext/pcre/tests/match_flags3.phpt:1.1.2.1 Mon Jul 3 13:04:45 2006
+++ php-src/ext/pcre/tests/match_flags3.phpt Mon Jul 3 14:46:44 2006
@@ -8,6 +8,9 @@
var_dump(preg_match('/\d+/', '123 456 789 012', $match, 0, -8));
var_dump($match);
+var_dump(preg_match('/\d+/', '123 456 789 012', $match, 0, -500));
+var_dump($match);
+
var_dump(preg_match_all('/\d+/', '123 456 789 012', $match, 0, -8));
var_dump($match);
@@ -22,6 +25,11 @@
[0]=>
string(3) "789"
}
+int(1)
+array(1) {
+ [0]=>
+ string(3) "123"
+}
int(2)
array(1) {
[0]=>
@@ -33,5 +41,5 @@
}
}
-Warning: preg_match: numeric named subpatterns are not allowed in
%smatch_flags3.php on line 11
+Warning: preg_match: numeric named subpatterns are not allowed in
%smatch_flags3.php on line 14
bool(false)
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/tests/preg_replace_callback2.phpt?view=markup&rev=1.1
Index: php-src/ext/pcre/tests/preg_replace_callback2.phpt
+++ php-src/ext/pcre/tests/preg_replace_callback2.phpt
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php