Home
last modified time | relevance | path

Searched refs:n (Results 51 – 75 of 7610) sorted by relevance

12345678910>>...305

/PHP-7.1/ext/standard/tests/strings/
H A Dadd-and-stripcslashes.phpt5 echo addcslashes("", "")."\n";
6 echo addcslashes("", "burp")."\n";
7 echo addcslashes("kaboemkara!", "")."\n";
8 echo addcslashes("foobarbaz", 'bar')."\n";
9 echo addcslashes('foo[ ]', 'A..z')."\n";
10 echo @addcslashes("zoo['.']", 'z..A')."\n";
11 echo addcslashes('abcdefghijklmnopqrstuvwxyz', "a\145..\160z")."\n";
12 echo "\n\r" == stripcslashes('\n\r'),"\n";
13 echo stripcslashes('\065\x64')."\n";
14 echo stripcslashes('')."\n";
[all …]
H A Dbug53021.phpt6 echo "double quotes variations:", "\n";
7 echo html_entity_decode(""", ENT_NOQUOTES, 'UTF-8'), "\n";
8 echo html_entity_decode(""", ENT_NOQUOTES, 'UTF-8'), "\n";
9 echo html_entity_decode(""", ENT_QUOTES, 'UTF-8'), "\n";
10 echo html_entity_decode(""", ENT_QUOTES, 'UTF-8'), "\n";
11 echo html_entity_decode(""", ENT_COMPAT, 'UTF-8'), "\n";
12 echo html_entity_decode(""", ENT_COMPAT, 'UTF-8'), "\n";
13 echo html_entity_decode("""), "\n";
14 echo html_entity_decode("""), "\n";
16 echo "\nsingle quotes variations:", "\n";
[all …]
H A Dhtml_entity_decode2.phpt6 echo "*** HTML 4.01 implicit (shouldn't decode) ***\n";
7 echo html_entity_decode("'", ENT_QUOTES, "UTF-8"), "\n";
9 echo "*** HTML 4.01 (shouldn't decode) ***\n";
10 echo html_entity_decode("'", ENT_QUOTES | ENT_HTML401, "UTF-8"), "\n";
12 echo "*** HTML 5 ***\n";
13 echo html_entity_decode("'", ENT_QUOTES | ENT_HTML5, "UTF-8"), "\n";
15 echo "*** XHTML 1.0 ***\n";
16 echo html_entity_decode("'", ENT_QUOTES | ENT_XHTML, "UTF-8"), "\n";
18 echo "*** XML 1.0 ***\n";
19 echo html_entity_decode("'", ENT_QUOTES | ENT_XML1, "UTF-8"), "\n";
[all …]
/PHP-7.1/ext/mbstring/libmbfl/filters/
H A Dmbfilter_base64.c86 int n; in mbfl_filt_conv_base64enc() local
89 if (n == 0) { in mbfl_filt_conv_base64enc()
99 if (n > 72) { in mbfl_filt_conv_base64enc()
151 int n; in mbfl_filt_conv_base64dec() local
157 n = 0; in mbfl_filt_conv_base64dec()
159 n = c - 65; in mbfl_filt_conv_base64dec()
161 n = c - 71; in mbfl_filt_conv_base64dec()
163 n = c + 4; in mbfl_filt_conv_base64dec()
165 n = 62; in mbfl_filt_conv_base64dec()
167 n = 63; in mbfl_filt_conv_base64dec()
[all …]
H A Dmbfilter_byte4.c95 int n; in mbfl_filt_conv_byte4be_wchar() local
100 filter->cache = n; in mbfl_filt_conv_byte4be_wchar()
104 filter->cache |= n; in mbfl_filt_conv_byte4be_wchar()
107 n = (c & 0xff) << 8; in mbfl_filt_conv_byte4be_wchar()
108 filter->cache |= n; in mbfl_filt_conv_byte4be_wchar()
128 int n; in mbfl_filt_conv_byte4le_wchar() local
132 n = (c & 0xff); in mbfl_filt_conv_byte4le_wchar()
133 filter->cache = n; in mbfl_filt_conv_byte4le_wchar()
136 n = (c & 0xff) << 8; in mbfl_filt_conv_byte4le_wchar()
137 filter->cache |= n; in mbfl_filt_conv_byte4le_wchar()
[all …]
/PHP-7.1/ext/date/tests/
H A Dbug33414-2.phpt5 print "TZ=Pacific/Rarotonga - wrong day.\n";
11 print "wanted=Tuesday 00:00:00\n\n";
19 print "wanted=Tuesday 00:00:00\n\n";
27 print "wanted=Monday 00:00:00\n\n";
35 print "wanted=Monday 00:00:00\n\n";
43 print "wanted=Monday 00:00:00\n\n";
45 print "TZ=America/Managua - wrong day.\n";
51 print "wanted=Tuesday 00:00:00\n\n";
59 print "wanted=Wednesday 00:00:00\n\n";
67 print "wanted=Saturday 00:00:00\n\n";
[all …]
H A DDateInterval_format.phpt20 echo $interval->format('Y=%Y') . "\n";
21 echo $interval->format('M=%M') . "\n";
22 echo $interval->format('D=%D') . "\n";
23 echo $interval->format('H=%H') . "\n";
24 echo $interval->format('I=%I') . "\n";
25 echo $interval->format('S=%S') . "\n";
26 echo $interval->format('R=%R') . "\n";
28 echo $interval->format('y=%y') . "\n";
29 echo $interval->format('m=%m') . "\n";
36 echo "\n";
[all …]
/PHP-7.1/tests/classes/
H A Dtype_hinting_004.phpt14 echo "in f1;\n";
17 echo "in f2;\n";
22 echo "{$ex->getCode()}: {$ex->getMessage()} - {$ex->getFile()}({$ex->getLine()})\n\n";
27 echo "{$ex->getCode()}: {$ex->getMessage()} - {$ex->getFile()}({$ex->getLine()})\n\n";
32 echo "{$ex->getCode()}: {$ex->getMessage()} - {$ex->getFile()}({$ex->getLine()})\n\n";
37 echo "{$ex->getCode()}: {$ex->getMessage()} - {$ex->getFile()}({$ex->getLine()})\n\n";
42 echo "{$ex->getCode()}: {$ex->getMessage()} - {$ex->getFile()}({$ex->getLine()})\n\n";
47 echo "{$ex->getCode()}: {$ex->getMessage()} - {$ex->getFile()}({$ex->getLine()})\n\n";
50 echo "\n\n---> Type hints with callback static method:\n";
71 echo "{$ex->getCode()}: {$ex->getMessage()} - {$ex->getFile()}({$ex->getLine()})\n\n";
[all …]
/PHP-7.1/ext/interbase/tests/
H A D003.phpt58 echo " CHAR fail:\n";
59 echo " in: $v_char\n";
63 echo " DATE fail\n";
64 echo " in: $v_date\n";
99 echo " DOUBLE fail\n";
104 echo " FLOAT fail\n";
105 echo " in: $v_float\n";
109 echo " INTEGER fail\n";
114 echo " SMALLINT fail\n";
120 echo " VARCHAR fail:\n";
[all …]
/PHP-7.1/ext/pcre/tests/
H A Dpcre.constants.phpt6 echo "PCRE constants test\n";
8 echo "PREG_PATTERN_ORDER= ", PREG_PATTERN_ORDER, "\n";
9 echo "PREG_OFFSET_CAPTURE= ", PREG_OFFSET_CAPTURE, "\n";
10 echo "PREG_SPLIT_NO_EMPTY= ", PREG_SPLIT_NO_EMPTY, "\n";
11 echo "PREG_SPLIT_DELIM_CAPTURE= ", PREG_SPLIT_DELIM_CAPTURE, "\n";
12 echo "PREG_SPLIT_OFFSET_CAPTURE= ", PREG_SPLIT_OFFSET_CAPTURE, "\n";
13 echo "PREG_GREP_INVERT= ", PREG_GREP_INVERT, "\n";
14 echo "PREG_NO_ERROR= ", PREG_NO_ERROR, "\n";
15 echo "PREG_INTERNAL_ERROR= ", PREG_INTERNAL_ERROR, "\n";
16 echo "PREG_BACKTRACK_LIMIT_ERROR= ", PREG_BACKTRACK_LIMIT_ERROR, "\n";
[all …]
/PHP-7.1/ext/mbstring/tests/
H A Dmb_strlen.phpt23 echo "== ASCII ==\n";
25 print strlen($ascii) . "\n";
28 echo "== EUC-JP ==\n";
34 echo "== SJIS ==\n";
38 print strlen($sjis) . "\n";
42 echo "== JIS ==\n";
46 print strlen($jis) . "\n";
50 echo "== UTF-8 ==\n";
62 echo $r."\n";
66 echo $r."\n";
[all …]
H A Dmb_strimwidth.phpt17 print "String width: ".mb_strwidth($euc_jp,'EUC-JP')."\n";
19 print "1: ". mb_strimwidth($euc_jp, 0, 15,'...','EUC-JP') . "\n";
20 print "2: ". mb_strimwidth($euc_jp, 0, 100,'...','EUC-JP') . "\n";
21 print "3: ". mb_strimwidth($euc_jp, 15, 100,'...','EUC-JP') . "\n";
22 print "4: ". mb_strimwidth($euc_jp, -30, 5,'...','EUC-JP') . "\n";
23 print "5: ". mb_strimwidth($euc_jp, 38, 5,'...','EUC-JP') . "\n";
24 print "6: ". mb_strimwidth($euc_jp, 38, -25,'...','EUC-JP') . "\n";
28 ($str === FALSE) ? print "10 OK\n" : print "NG: $str\n";
31 ($str === FALSE) ? print "11 OK\n" : print "NG: $str\n";
34 ($str === FALSE) ? print "12 OK\n" : print "NG: $str\n";
[all …]
/PHP-7.1/ext/standard/tests/general_functions/
H A Ddebug_zval_dump_v.phpt41 echo "\n-- Value of \$first_var: --\n";
47 echo "\n-- Value of \$ref_first_var --\n";
49 echo "\n-- Value of \$first_var --\n";
56 echo "\n-- Value of \$ref_first_var --\n";
58 echo "\n-- Value of \$first_var --\n";
65 echo "\n-- Value of \$var_1: (before referencing) --\n";
67 echo "\n-- Value of \$var_2: (referencing var_1) --\n";
69 echo "\n-- Value of \$var_3: (referencing var_2) --\n";
76 echo "\n-- Value of \$var_2: --\n";
78 echo "\n-- Value of \$var_3: --\n";
[all …]
H A Disset_basic1.phpt11 echo "*** Testing isset() : basic functionality ***\n";
18 $n = NULL;
22 echo "Integer test: " . (isset($i) ? "YES": "NO") . "\n";
23 echo "Float test: " . (isset($f) ? "YES": "NO") . "\n";
24 echo "String test: " . (isset($s) ? "YES": "NO") . "\n";
25 echo "Array test: " . (isset($a) ? "YES": "NO") . "\n";
27 echo "Null test: " . (isset($n) ? "YES": "NO") . "\n";
31 echo "\n\nUnset the variables\n\n";
32 unset($i, $f, $s, $a, $b, $n, $obj, $res);
35 echo "Float test: " . (isset($f) ? "YES": "NO") . "\n";
[all …]
H A D001.phpt10 echo("passed\n");
12 echo("failed!\n");
18 echo("passed\n");
20 echo("failed!\n");
26 echo("passed\n");
28 echo("failed!\n");
34 echo("passed\n");
36 echo("failed!\n");
42 echo("passed\n");
44 echo("failed!\n");
[all …]
/PHP-7.1/ext/zip/tests/
H A Doo_properties.phpt21 printf("zip->status (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->status, empty($zip->status), isse…
22 printf("zip->numFiles (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->numFiles, empty($zip->numFiles)…
23 printf("zip->bogus (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->bogus, empty($zip->bogus), isset($…
28 printf("zip->status (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->status, empty($zip->status), isse…
29 printf("zip->numFiles (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->numFiles, empty($zip->numFiles)…
30 printf("zip->filename (%d):\n\tempty(): %d\n\tisset(): %d\n", strlen($zip->filename), empty($zip->f…
31 printf("zip->comment (%d):\n\tempty(): %d\n\tisset(): %d\n", strlen($zip->comment), empty($zip->com…
/PHP-7.1/ext/spl/tests/
H A Drecursive_tree_iterator_setpostfix.phpt30 echo "----\n";
32 echo "\n\n";
34 echo "----\n";
37 echo "\n\n";
39 echo "----\n";
41 echo "[$k] => $v\n";
44 echo "----\n";
47 echo "\n\n";
49 echo "----\n";
51 echo "[$k] => $v\n";
/PHP-7.1/Zend/
H A Dbench.php106 $r = Ack(3,$n);
112 function ary($n) { argument
119 $last = $n-1;
125 function ary2($n) { argument
152 $last = $n-1;
158 function ary3($n) { argument
168 $last = $n-1;
175 return(($n < 2) ? 1 : fibo_r($n - 2) + fibo_r($n - 1));
179 $r = fibo_r($n);
220 $ir = $n;
[all …]
H A Dzend_bitset.h29 # define ZEND_BITSET_ELM_NUM(n) ((n) >> 5) argument
30 # define ZEND_BITSET_BIT_NUM(n) ((zend_ulong)(n) & Z_UL(0x1f)) argument
32 # define ZEND_BITSET_ELM_NUM(n) ((n) >> 6) argument
33 # define ZEND_BITSET_BIT_NUM(n) ((zend_ulong)(n) & Z_UL(0x3f)) argument
35 # define ZEND_BITSET_ELM_NUM(n) ((n) / (sizeof(zend_long) * 8)) argument
36 # define ZEND_BITSET_BIT_NUM(n) ((n) % (sizeof(zend_long) * 8)) argument
64 int n;
68 n = 1;
76 return n - (num & 1);
94 set[ZEND_BITSET_ELM_NUM(n)] |= Z_UL(1) << ZEND_BITSET_BIT_NUM(n);
[all …]
/PHP-7.1/ext/gmp/tests/
H A Dgmp_gcd.phpt16 $n = gmp_init("8127346234");
18 $n = gmp_init("8127346234");
19 var_dump(gmp_strval(gmp_gcd("7623456735",$n)));
20 $n = gmp_init("8127346234");
21 var_dump(gmp_strval(gmp_gcd($n,$n)));
22 $n = gmp_init("8127346234");
23 var_dump(gmp_strval(gmp_gcd($n,0)));
24 var_dump(gmp_gcd($n,$n,1));
25 var_dump(gmp_gcd($n,array(),1));
26 var_dump(gmp_gcd(array(),$n,1));
[all …]
/PHP-7.1/ext/standard/tests/array/
H A Darray_rand_variation6.phpt21 \n
31 hello\tworld\nhello\nworld\n
54 echo "\n-- with default parameters --\n";
57 echo "\n-- with num_req = 1 --\n";
60 echo "\n-- with num_req = 3 --\n";
63 echo "\n-- with num_req = 6 --\n";
73 string\([0-9]*\) "[a-z \n \t \0 0-9 ]*"
76 string\([0-9]*\) "[a-z \n \t \0 0-9 ]*"
81 string\([0-9]*\) "[a-z \n \t \0 0-9 ]*"
83 string\([0-9]*\) "[a-z \n \t \0 0-9 ]*"
[all …]
/PHP-7.1/tests/lang/
H A Dexecution_order.phpt18 echo "\r\n";
25 echo "\r\n";
32 echo "\r\n";
39 echo "\r\n";
44 echo "\r\n";
51 echo "\r\n";
64 echo "\r\n";
69 echo "\r\n";
77 echo "\r\n";
83 echo "\r\n";
[all …]
/PHP-7.1/ext/standard/tests/file/
H A D001-win32-mb.phpt19 echo "$fname exists\n";
21 echo "$fname does not exist\n";
26 echo "$fname exists\n";
28 echo "$fname does not exist\n";
31 echo "$fname is a symlink\n";
33 echo "$fname is not a symlink\n";
36 echo "$fname exists\n";
38 echo "$fname does not exist\n";
51 echo "$fname is writeable\n";
56 echo "$fname is readable\n";
[all …]
/PHP-7.1/tests/strings/
H A D001.phpt16 echo("failed 1\n");
18 echo("failed 2\n");
20 echo("failed 3\n");
22 echo("failed 4\n");
24 echo("passed\n");
32 echo("failed 1\n");
34 echo("failed 2\n");
36 echo("passed\n");
49 echo("passed\n");
56 echo("passed\n");
[all …]
/PHP-7.1/ext/calendar/tests/
H A Djdtojewish.phpt8 var_dump(jdtojewish(gregoriantojd(10,28,2002))."\r\n".
9 jdtojewish(gregoriantojd(10,28,2002),true)."\r\n".
10 jdtojewish(gregoriantojd(10,28,2002),true, CAL_JEWISH_ADD_ALAFIM_GERESH)."\r\n".
11 jdtojewish(gregoriantojd(10,28,2002),true, CAL_JEWISH_ADD_ALAFIM)."\r\n".
12 …ojewish(gregoriantojd(10,28,2002),true, CAL_JEWISH_ADD_ALAFIM_GERESH+CAL_JEWISH_ADD_ALAFIM)."\r\n".
13 jdtojewish(gregoriantojd(10,28,2002),true, CAL_JEWISH_ADD_GERESHAYIM)."\r\n".
14 jdtojewish(gregoriantojd(10,8,2002),true, CAL_JEWISH_ADD_GERESHAYIM)."\r\n".
15 …wish(gregoriantojd(10,8,2002),true, CAL_JEWISH_ADD_GERESHAYIM+CAL_JEWISH_ADD_ALAFIM_GERESH)."\r\n".
16 jdtojewish(gregoriantojd(10,8,2002),true, CAL_JEWISH_ADD_GERESHAYIM+CAL_JEWISH_ADD_ALAFIM)."\r\n".
17 …8,2002),true, CAL_JEWISH_ADD_GERESHAYIM+CAL_JEWISH_ADD_ALAFIM+CAL_JEWISH_ADD_ALAFIM_GERESH)."\r\n".
[all …]

Completed in 65 milliseconds

12345678910>>...305