Home
last modified time | relevance | path

Searched refs:n (Results 1 – 25 of 4934) sorted by relevance

12345678910>>...198

/php-src/ext/tokenizer/tests/
H A D001.phpt11 echo token_name(T_INCLUDE), "\n";
13 echo token_name(T_EVAL), "\n";
14 echo token_name(T_REQUIRE), "\n";
19 echo token_name(T_PRINT), "\n";
39 echo token_name(T_SL), "\n";
40 echo token_name(T_SR), "\n";
41 echo token_name(T_INC), "\n";
42 echo token_name(T_DEC), "\n";
52 echo token_name(T_IF), "\n";
129 echo token_name(-1), "\n";
[all …]
/php-src/Zend/tests/
H A Dcompound_assign_with_numeric_strings.phpt6 $n = "65";
7 $n <<= $n;
10 $n = "-1";
12 $n <<= $n;
18 $n = "65";
19 $n >>= $n;
22 $n = "-1";
24 $n >>= $n;
30 $n = "0";
32 $n %= $n;
[all …]
H A Dgc_038.phpt14 echo "+=\t$n\n";
25 echo "-=\t$n\n";
36 echo "*=\t$n\n";
47 echo "/=\t$n\n";
58 echo "%=\t$n\n";
69 echo "<<=\t$n\n";
80 echo ">>=\t$n\n";
91 echo "|=\t$n\n";
102 echo "&=\t$n\n";
113 echo "^=\t$n\n";
[all …]
/php-src/ext/standard/tests/strings/
H A Dsprintf_star.phpt11 printf("%.*f\n", 10, $f);
12 printf("%.*G\n", 10, $f);
13 printf("%.*g\n", -1, $fx);
14 printf("%.*G\n", -1, $fx);
15 printf("%.*h\n", -1, $fx);
18 echo "\n";
20 printf("%*f\n", 10, $f);
21 printf("%*G\n", 10, $f);
23 echo "\n";
28 echo "\n";
[all …]
H A Dcrc32_variation4.phpt14 echo "*** Testing crc32() : with different heredoc strings ***\n";
21 \n
32 hello\tworld\nhello\nworld\n
60 /n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n
78 echo "\n-- Iteration $count --\n";
H A Dcrc32_variation2.phpt14 echo "*** Testing crc32() : with different strings in single quotes ***\n";
38 '\nhello world\n',
39 '\n\thelloworld',
40 'hel\tlo\n world',
55 /n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n'
62 echo "\n-- Iteration $count --\n";
H A Dcrc32_variation3.phpt14 echo "*** Testing crc32() : with different strings in double quotes ***\n";
40 "\nhello world\n",
41 "\n\thelloworld",
42 "hel\tlo\n world",
57 /n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n"
64 echo "\n-- Iteration $count --\n";
H A Dsubstr_replace.phpt8 echo "\n";
13 echo "\n";
18 echo "\n";
23 echo "\n";
28 echo "\n";
29 echo "\n";
30 echo "\n";
39 echo "\n";
42 echo "\n";
44 echo "\n";
[all …]
H A Dprintf.phpt56 echo "\n\n*** Output for float type ***\n";
75 echo "\n\n*** Output for integer type ***\n";
93 echo "\n\n*** Output for binary type ***\n";
105 echo "\n\n*** Output for char type ***\n";
116 echo "\n\n*** Output for scientific type ***\n";
127 echo "\n\n*** Output for unsigned integer type ***\n";
138 echo "\n\n*** Output for octal type ***\n";
149 echo "\n\n*** Output for hexadecimal type ***\n";
160 echo "\n\n*** Output for string type ***\n";
179 echo "\n\n*** Output for '%g' type ***\n";
[all …]
H A Dprintf_64bit.phpt56 echo "\n\n*** Output for float type ***\n";
75 echo "\n\n*** Output for integer type ***\n";
93 echo "\n\n*** Output for binary type ***\n";
105 echo "\n\n*** Output for char type ***\n";
116 echo "\n\n*** Output for scientific type ***\n";
127 echo "\n\n*** Output for unsigned integer type ***\n";
138 echo "\n\n*** Output for octal type ***\n";
149 echo "\n\n*** Output for hexadecimal type ***\n";
160 echo "\n\n*** Output for string type ***\n";
179 echo "\n\n*** Output for '%g' type ***\n";
[all …]
H A Dbug26973.phpt6 printf("%+05d\n", 200);
7 printf("%+05d\n", -200);
8 printf("%+05f\n", 200);
9 printf("%+05f\n", -200);
10 printf("%+05u\n", 200);
11 printf("%+05u\n", -200);
12 echo "---\n";
13 printf("%05d\n", 200);
14 printf("%05d\n", -200);
15 printf("%05f\n", 200);
[all …]
/php-src/ext/standard/tests/general_functions/
H A D003.phpt18 echo "\n";
23 $n=0;
25 $n += test_me("equal" , 0, "12345", "12345");
26 $n += test_me("1st empty" , 3, "", "xzy");
27 $n += test_me("2nd empty" , 3, "xzy", "");
28 $n += test_me("both empty" , 0, "", "");
48 $n += test_me("bug #16473", 2, "a", "bc");
49 $n += test_me("bug #16473", 2, "xa", "xbc");
50 $n += test_me("bug #16473", 2, "xax", "xbcx");
51 $n += test_me("bug #16473", 2, "ax", "bcx");
[all …]
/php-src/ext/gmp/tests/
H A Dgmp_testbit.phpt8 $n = gmp_init(0);
20 $n = gmp_init(-1);
28 $n = gmp_init("1000000");
30 gmp_setbit($n, 1);
32 var_dump(gmp_strval($n));
34 gmp_setbit($n, 5);
36 var_dump(gmp_strval($n));
40 gmp_setbit($n, 5);
42 var_dump(gmp_strval($n));
44 gmp_clrbit($n, 5);
[all …]
H A Dgmp_setbit.phpt8 $n = gmp_init(-1);
9 gmp_setbit($n, 10, -1);
10 var_dump(gmp_strval($n));
12 $n = gmp_init(5);
20 $n = gmp_init(5);
21 gmp_setbit($n, 2, 0);
24 $n = gmp_init(5);
25 gmp_setbit($n, 1, 1);
29 gmp_setbit($n, 23, 1);
35 gmp_setbit($n, 3);
[all …]
H A Dgmp_clrbit.phpt8 $n = gmp_init(0);
9 gmp_clrbit($n, 0);
10 var_dump(gmp_strval($n));
12 $n = gmp_init(-1);
14 gmp_clrbit($n, -1);
29 gmp_clrbit($n, 3);
33 gmp_clrbit($n, 3);
34 gmp_clrbit($n, 5);
35 gmp_clrbit($n, 20);
38 $n = array();
[all …]
/php-src/ext/dom/tests/modern/spec/
H A Dbug81468.phpt14 echo ($xml = $dom->saveXML()), "\n";
17 $xpath->registerNamespace('n', 'some:namespace');
18 echo "/n:foo/bar -> ", count($xpath->query('/n:foo/bar')), "\n";
19 echo "/n:foo/n:bar -> ", count($xpath->query('/n:foo/n:bar')), "\n";
24 echo ($xml = $dom->saveXML()), "\n";
28 echo "/n:foo/bar -> ", count($xpath->query('/n:foo/bar')), "\n";
29 echo "/n:foo/n:bar -> ", count($xpath->query('/n:foo/n:bar')), "\n";
35 /n:foo/bar -> 1
36 /n:foo/n:bar -> 0
39 /n:foo/bar -> 1
[all …]
/php-src/Zend/
H A Dmicro_bench.php6 function simpleucall($n) { argument
7 for ($i = 0; $i < $n; $i++)
11 function simpleudcall($n) { argument
12 for ($i = 0; $i < $n; $i++)
19 function simpleicall($n) { argument
20 for ($i = 0; $i < $n; $i++)
119 function call($n) { argument
205 function issetor($n) { argument
212 function issetor2($n) { argument
219 function ternary($n) { argument
[all …]
/php-src/ext/opcache/jit/ir/dynasm/
H A Ddasm_arm64.h190 if (n & 1) { n = ~n; inv = 1; } in dasm_imm13()
191 a = n & (unsigned long long)-(long long)n; in dasm_imm13()
255 n = (ins & 2047) - 10; pl = D->lglabels + n; in dasm_put()
285 while (n > 0) { int *pb = DASM_POS2PTR(D, n); n = *pb; *pb = pos; in dasm_put()
310 CK(dasm_imm13(n, n) != -1, RANGE_I); in dasm_put()
369 while (n > 0) { int *pb = DASM_POS2PTR(D, n); n = *pb; *pb = -idx; } in dasm_link()
465 CK_REL((n & 3) == 0 && ((n+0x08000000) >> 28) == 0, n); in dasm_encode()
468 CK_REL((n & 3) == 0 && ((n+0x00100000) >> 21) == 0, n); in dasm_encode()
471 CK_REL(((n+0x00100000) >> 21) == 0, n); in dasm_encode()
476 CK_REL((n & 3) == 0 && ((n+0x00008000) >> 16) == 0, n); in dasm_encode()
[all …]
/php-src/ext/simplexml/tests/
H A Dbug55098.phpt20 test($nodes, "asXml", fn ($n) => $n->asXml());
21 test($nodes, "attributes", fn ($n) => $n->attributes());
22 test($nodes, "children", fn ($n) => $n->children());
23 test($nodes, "getNamespaces", fn ($n) => $n->getNamespaces());
24 test($nodes, "xpath", fn ($n) => $n->xpath("/root/a/b"));
25 test($nodes, "var_dump", fn ($n) => var_dump($n));
31 (bool) $n->outer;
32 (bool) $n;
33 isset($n->outer);
35 unset($n->outer);
[all …]
/php-src/ext/standard/tests/math/
H A Dbug25694.phpt7 echo "round 0.045 = " . round(0.045, 2) . "\n";
8 echo "number format 0.045 = " . number_format(0.045, 2) . "\n\n";
9 echo "round 0.055 = " . round(0.055, 2) . "\n";
10 echo "number format 0.055 = " . number_format(0.055, 2) . "\n\n";
11 echo "round 5.045 = " . round(5.045, 2) . "\n";
12 echo "number format 5.045 = " . number_format(5.045, 2) . "\n\n";
13 echo "round 5.055 = " . round(5.055, 2) . "\n";
14 echo "number format 5.055 = " . number_format(5.055, 2) . "\n\n";
15 echo "round 3.025 = " . round(3.025, 2) . "\n";
16 echo "number format 3.025 = " . number_format(3.025, 2) . "\n\n";
[all …]
H A Dbug24142.phpt5 echo "round(0.005, 2)\n";
7 echo "\n";
9 echo "round(0.015, 2)\n";
11 echo "\n";
13 echo "round(0.025, 2)\n";
15 echo "\n";
19 echo "\n";
23 echo "\n";
27 echo "\n";
31 echo "\n";
[all …]
/php-src/ext/hash/tests/
H A Dcrc32.phpt5 echo "crc32\n";
6 echo hash('crc32', ''), "\n";
7 echo hash('crc32', 'a'), "\n";
8 echo hash('crc32', 'abc'), "\n";
28 echo "crc32b\n";
29 echo hash('crc32b', ''), "\n";
30 echo hash('crc32b', 'a'), "\n";
31 echo hash('crc32b', 'abc'), "\n";
51 echo "crc32c\n";
52 echo hash('crc32c', ''), "\n";
[all …]
/php-src/ext/mbstring/tests/
H A Dmb_strcut.phpt31 print "== EUC-JP ==\n";
37 ($str === "") ? print "OK\n" : print "No good\n";
40 ($str !== "") ? print "OK\n" : print "No good\n";
42 print "== UTF-8 ==\n";
55 print "== UTF-16 ==\n";
64 print "== UTF-16LE ==\n";
75 print "== UTF-32BE ==\n";
151 print "== JIS ==\n";
205 print "== UTF-7 ==\n";
253 print "== UHC ==\n";
[all …]
H A Dmb_strlen.phpt19 echo "== ASCII ==\n";
21 print strlen($ascii) . "\n";
23 echo "== EUC-JP ==\n";
26 print strlen($euc_jp) . "\n";
28 echo "== SJIS ==\n";
32 print strlen($sjis) . "\n";
38 echo "== CP932 ==\n";
45 echo "== MacJapanese ==\n";
49 echo "== SJIS-2004 ==\n";
65 echo "== JIS ==\n";
[all …]
H A Dmb_stripos.phpt47 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
49 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
51 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
53 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
55 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n";
68 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n";
70 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n";
84 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n";
86 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n";
99 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n";
[all …]

Completed in 87 milliseconds

12345678910>>...198