Annotation of embedaddon/php/ext/pcre/tests/pcre_anchored.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: A (PCRE_ANCHORED) modififer
3: --SKIPIF--
4: <?php
5: if (@preg_match_all('/\p{N}/', '0123456789', $dummy) === false) {
6: die("skip no support for \p support PCRE library");
7: }
8: ?>
9: --FILE--
10: <?php
11:
12: var_dump(preg_match('/\PN+/', '123abc', $m));
13: var_dump($m);
14:
15: var_dump(preg_match('/\P{N}+/A', '123abc'));
16: var_dump(preg_match('/^\P{N}+/', '123abc'));
17: var_dump(preg_match('/^\P{N}+/A', '123abc'));
18:
19: ?>
20: --EXPECT--
21: int(1)
22: array(1) {
23: [0]=>
24: string(3) "abc"
25: }
26: int(0)
27: int(0)
28: int(0)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>