Home
last modified time | relevance | path

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

12345678910>>...297

/PHP-8.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 Dlocale_independent_float_to_string.phpt20 echo "- casting:\n";
21 echo $f . "\n";
22 echo strval($f) . "\n";
25 echo $g . "\n";
28 printf("%.2f\n", $f);
29 printf("%.2F\n", $f);
33 echo "- export/import:\n";
38 echo "- debugging:\n";
43 echo "- other:\n";
48 echo "C locale:\n";
[all …]
/PHP-8.1/ext/opcache/jit/dynasm/
H A Ddasm_arm.lua91 assert(n >= 0 and n <= 0xffffffff and n % 1 == 0, "word out of range")
127 assert(n >= 0 and n <= 0xffffffff and n % 1 == 0, "word out of range")
654 if n >= -255 and n <= 255 then
656 if n < 0 then n = -n; up = 0 end
660 if n >= -4095 and n <= 4095 then
661 if n >= 0 then return n+0x00800000 end
799 if n >= -1020 and n <= 1020 and n%4 == 0 then
800 return d + (n >= 0 and n/4+0x00800000 or -n/4)
858 n = n + 1
884 n = n + 1
[all …]
/PHP-8.1/ext/standard/tests/general_functions/
H A Disset_basic1.phpt7 echo "*** Testing isset() : basic functionality ***\n";
14 $n = NULL;
18 echo "Integer test: " . (isset($i) ? "YES": "NO") . "\n";
19 echo "Float test: " . (isset($f) ? "YES": "NO") . "\n";
20 echo "String test: " . (isset($s) ? "YES": "NO") . "\n";
21 echo "Array test: " . (isset($a) ? "YES": "NO") . "\n";
23 echo "Null test: " . (isset($n) ? "YES": "NO") . "\n";
27 echo "\n\nUnset the variables\n\n";
28 unset($i, $f, $s, $a, $b, $n, $obj, $res);
31 echo "Float test: " . (isset($f) ? "YES": "NO") . "\n";
[all …]
H A Ddebug_zval_dump_v.phpt36 echo "\n-- Value of \$first_var: --\n";
42 echo "\n-- Value of \$ref_first_var --\n";
44 echo "\n-- Value of \$first_var --\n";
51 echo "\n-- Value of \$ref_first_var --\n";
53 echo "\n-- Value of \$first_var --\n";
60 echo "\n-- Value of \$var_1: (before referencing) --\n";
62 echo "\n-- Value of \$var_2: (referencing var_1) --\n";
64 echo "\n-- Value of \$var_3: (referencing var_2) --\n";
71 echo "\n-- Value of \$var_2: --\n";
73 echo "\n-- Value of \$var_3: --\n";
[all …]
H A Dget_debug_type_basic.phpt24 echo get_debug_type(new ClassInGlobal()) . "\n";
26 echo get_debug_type(new class {}) . "\n";
31 echo get_debug_type("foo") . "\n";
32 echo get_debug_type(false) . "\n";
33 echo get_debug_type(true) . "\n";
34 echo get_debug_type(1) . "\n";
35 echo get_debug_type(1.1) . "\n";
36 echo get_debug_type([]) . "\n";
37 echo get_debug_type(null) . "\n";
38 echo get_debug_type($fp) . "\n";
[all …]
/PHP-8.1/ext/dom/tests/
H A Ddom_create_element.phpt12 print "valid\n";
21 print "valid\n";
30 print "valid\n";
39 print "valid\n";
48 print "valid\n";
57 print "valid\n";
66 print "valid\n";
75 print "valid\n";
84 print "valid\n";
93 print "valid\n";
[all …]
/PHP-8.1/ext/mbstring/libmbfl/filters/
H A Dmbfilter_base64.c87 int n; in mbfl_filt_conv_base64enc() local
90 if (n == 0) { in mbfl_filt_conv_base64enc()
100 if (n > 72) { in mbfl_filt_conv_base64enc()
152 int n; in mbfl_filt_conv_base64dec() local
158 n = 0; in mbfl_filt_conv_base64dec()
160 n = c - 65; in mbfl_filt_conv_base64dec()
162 n = c - 71; in mbfl_filt_conv_base64dec()
164 n = c + 4; in mbfl_filt_conv_base64dec()
166 n = 62; in mbfl_filt_conv_base64dec()
168 n = 63; in mbfl_filt_conv_base64dec()
[all …]
/PHP-8.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-8.1/ext/date/tests/
H A DDateInterval_format.phpt18 echo $interval->format('Y=%Y') . "\n";
19 echo $interval->format('M=%M') . "\n";
20 echo $interval->format('D=%D') . "\n";
21 echo $interval->format('H=%H') . "\n";
22 echo $interval->format('I=%I') . "\n";
23 echo $interval->format('S=%S') . "\n";
24 echo $interval->format('R=%R') . "\n";
26 echo $interval->format('y=%y') . "\n";
27 echo $interval->format('m=%m') . "\n";
34 echo "\n";
[all …]
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 …]
/PHP-8.1/ext/standard/tests/array/
H A Darray_rand_variation6.phpt16 \n
26 hello\tworld\nhello\nworld\n
49 echo "\n-- with default parameters --\n";
52 echo "\n-- with num_req = 1 --\n";
55 echo "\n-- with num_req = 3 --\n";
58 echo "\n-- with num_req = 6 --\n";
68 string\([0-9]*\) "[a-z \n \t \0 0-9 ]*"
71 string\([0-9]*\) "[a-z \n \t \0 0-9 ]*"
76 string\([0-9]*\) "[a-z \n \t \0 0-9 ]*"
78 string\([0-9]*\) "[a-z \n \t \0 0-9 ]*"
[all …]
H A Darray_map_object1.phpt21 return $n * $n;
34 echo "\n-- simple class with private variable and method --\n";
39 return $var + $n;
44 echo "\n-- simple class with protected variable and method --\n";
54 echo "\n-- class without members --\n";
60 echo "\n-- abstract class --\n";
77 echo "\n-- class with final method --\n";
87 echo "\n-- class with static members --\n";
92 return ($n * $n);
95 return ($n * $n * $n);
[all …]
H A Drange_errors.phpt8 echo "\n*** Testing error conditions ***\n";
10 echo "\n-- Testing ( (low < high) && (step = 0) ) --\n";
14 echo $e->getMessage(), "\n";
20 echo $e->getMessage(), "\n";
23 echo "\n\n-- Testing ( (low > high) && (step = 0) ) --\n";
36 echo "\n\n-- Testing ( (low < high) && (high-low < step) ) --\n";
43 echo "\n\n-- Testing ( (low > high) && (low-high < step) ) --\n";
50 echo "\n\n-- Testing ( (low < high) && (high-low < step) ) for characters --\n";
57 echo "\n\n-- Testing ( (low > high) && (low-high < step) ) for characters --\n";
64 echo "\n-- Testing other conditions --\n";
[all …]
/PHP-8.1/Zend/tests/
H A Dbug31098.phpt19 echo isset($simpleString->wrong)?"bug\n":"ok\n";
21 echo isset($simpleString["wrong"])?"bug\n":"ok\n";
25 echo isset($simpleString[-20])?"bug\n":"ok\n";
26 echo isset($simpleString[0])?"ok\n":"bug\n";
27 echo isset($simpleString["0"])?"ok\n":"bug\n";
28 echo isset($simpleString["16"])?"ok\n":"bug\n";
29 echo isset($simpleString["17"])?"bug\n":"ok\n";
30 echo $simpleString->wrong === null?"ok\n":"bug\n";
32 echo $simpleString["wrong"] === "B"?"ok\n":"bug\n";
36 echo $simpleString["0"] === "B"?"ok\n":"bug\n";
[all …]
/PHP-8.1/Zend/
H A Dzend_bitset.h27 # define ZEND_BITSET_ELM_NUM(n) ((n) >> 5) argument
28 # define ZEND_BITSET_BIT_NUM(n) ((zend_ulong)(n) & Z_UL(0x1f)) argument
30 # define ZEND_BITSET_ELM_NUM(n) ((n) >> 6) argument
31 # define ZEND_BITSET_BIT_NUM(n) ((zend_ulong)(n) & Z_UL(0x3f)) argument
33 # define ZEND_BITSET_ELM_NUM(n) ((n) / (sizeof(zend_long) * 8)) argument
34 # define ZEND_BITSET_BIT_NUM(n) ((n) % (sizeof(zend_long) * 8)) argument
62 int n;
66 n = 1;
101 int n;
104 n = 64;
[all …]
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 …]
/PHP-8.1/ext/mbstring/tests/
H A Dmb_strcut.phpt26 print "== EUC-JP ==\n";
32 ($str === "") ? print "OK\n" : print "No good\n";
35 ($str !== "") ? print "OK\n" : print "No good\n";
37 print "== UTF-8 ==\n";
38 print MBStringChars(mb_strcut($utf8, 0, 0, 'UTF-8'), 'UTF-8') . "\n";
39 print MBStringChars(mb_strcut($utf8, 0, 1, 'UTF-8'), 'UTF-8') . "\n";
40 print MBStringChars(mb_strcut($utf8, 0, 2, 'UTF-8'), 'UTF-8') . "\n";
41 print MBStringChars(mb_strcut($utf8, 0, 3, 'UTF-8'), 'UTF-8') . "\n";
42 print MBStringChars(mb_strcut($utf8, 0, 4, 'UTF-8'), 'UTF-8') . "\n";
43 print MBStringChars(mb_strcut($utf8, 0, 5, 'UTF-8'), 'UTF-8') . "\n";
[all …]
H A Dmb_decode_numericentity.phpt11 echo mb_decode_numericentity($str1, $convmap, "UTF-8")."\n";
12 echo mb_decode_numericentity($str2, $convmap, "UTF-8")."\n";
13 echo mb_decode_numericentity($str3, $convmap, "UTF-8")."\n";
15 echo mb_decode_numericentity('&#1000000000', $convmap), "\n";
16 echo mb_decode_numericentity('&#9000000000', $convmap), "\n";
17 echo mb_decode_numericentity('&#10000000000', $convmap), "\n";
18 echo mb_decode_numericentity('&#100000000000', $convmap), "\n";
21 echo mb_decode_numericentity('&#00000000000', $convmap), "\n";
22 echo mb_decode_numericentity('&#0000000000', $convmap), "\n";
23 echo mb_decode_numericentity('&#000000000', $convmap), "\n";
[all …]
/PHP-8.1/ext/libxml/tests/
H A Dbug51903.phpt14 "data://text/plain,HTTP/1.1 200 OK\r\n"
15 . "Content-Type: text/xml; charset=ISO-8859-1\r\n\r\n"
16 . "<?xml version=\"1.0\"?>\n"
17 . "<root>\xE4\xF6\xFC</root>\n",
19 . "Content-Type: text/xml; charset=ISO-8859-1; foo=bar\r\n\r\n"
20 . "<?xml version=\"1.0\"?>\n"
21 . "<root>\xE4\xF6\xFC</root>\n",
23 . "Content-Type: text/xml; charset=\"ISO-8859-1\" ; foo=bar\r\n\r\n"
24 . "<?xml version=\"1.0\"?>\n"
25 . "<root>\xE4\xF6\xFC</root>\n",
[all …]
/PHP-8.1/ext/hash/tests/
H A Dhash_file_basic1.phpt6 echo "*** Testing hash_file() : basic functionality ***\n";
28 echo "crc32: " . hash_file('crc32', $file) . "\n";
29 echo "gost: " . hash_file('gost', $file). "\n";
31 echo "md2: " . hash_file('md2', $file). "\n";
32 echo "md4: " . hash_file('md4', $file). "\n";
33 echo "md5: " . hash_file('md5', $file). "\n";
38 echo "sha1: " . hash_file('sha1', $file). "\n";
39 echo "sha256: " . hash_file('sha256', $file). "\n";
40 echo "sha384: " . hash_file('sha384', $file). "\n";
41 echo "sha512: " . hash_file('sha512', $file). "\n";
[all …]
/PHP-8.1/sapi/fpm/tests/
H A Dstatus.inc110 echo "BODY:\n";
112 echo "PATTERN:\n";
140 "<body>\n<table>\n";
141 $footer = "\n</table>\n</body></html>";
163 "<%s>%s</%s>\n",
164 "<\?xml version=\"1.0\" \?>\n<status>\n",
165 "\n</status>",
211 "phpfpm_up 1\n" .
245 "# EOF)\n";
249 echo "BODY:\n";
[all …]
/PHP-8.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-8.1/ext/zip/tests/
H A Doo_properties.phpt18 printf("zip->status (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->status, empty($zip->status), isse…
19 printf("zip->numFiles (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->numFiles, empty($zip->numFiles)…
20 printf("zip->bogus (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->bogus, empty($zip->bogus), isset($…
25 printf("zip->status (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->status, empty($zip->status), isse…
26 printf("zip->numFiles (%d):\n\tempty(): %d\n\tisset(): %d\n", $zip->numFiles, empty($zip->numFiles)…
27 printf("zip->filename (%d):\n\tempty(): %d\n\tisset(): %d\n", strlen($zip->filename), empty($zip->f…
28 printf("zip->comment (%d):\n\tempty(): %d\n\tisset(): %d\n", strlen($zip->comment), empty($zip->com…

Completed in 42 milliseconds

12345678910>>...297