Home
last modified time | relevance | path

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

12345678910>>...327

/php-src/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.phpt19 echo "- casting:\n";
20 echo $f . "\n";
21 echo strval($f) . "\n";
24 echo $g . "\n";
27 printf("%.2f\n", $f);
28 printf("%.2F\n", $f);
32 echo "- export/import:\n";
37 echo "- debugging:\n";
42 echo "- other:\n";
47 echo "C locale:\n";
[all …]
/php-src/ext/opcache/jit/ir/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-src/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-src/ext/mbstring/tests/
H A Dmb_strpos.phpt17 echo "String len: $slen\n";
22 echo "== POSITIVE OFFSET ==\n";
35 echo "== NEGATIVE OFFSET ==\n";
45 echo "== NON-EXISTENT ==\n";
48 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n";
50 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n";
64 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n";
66 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n";
79 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n";
80 $r = mb_strpos($euc_jp, "\n");
[all …]
/php-src/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-src/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-src/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 …]
/php-src/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 …]
H A Dbug79934.phpt9 eval("\$s1 = <<<HEREDOC\r\n a\r\n\r\n b\r\n HEREDOC;");
10 var_dump(addcslashes($s1, "\r\n"));
13 eval("\$s2 = <<<HEREDOC\n a\n\n b\n HEREDOC;");
14 var_dump(addcslashes($s2, "\n"));
21 eval("\$s4 = <<<HEREDOC\r a\r\n \r\n b\r HEREDOC;");
22 var_dump(addcslashes($s4, "\n\r"));
26 string(10) "a\r\n\r\nb"
27 string(6) "a\n\nb"
29 string(10) "a\r\n\r\nb"
/php-src/Zend/
H A Dzend_bitset.h34 # define ZEND_BITSET_ELM_NUM(n) ((n) >> 5) argument
35 # define ZEND_BITSET_BIT_NUM(n) ((zend_ulong)(n) & Z_UL(0x1f)) argument
37 # define ZEND_BITSET_ELM_NUM(n) ((n) >> 6) argument
38 # define ZEND_BITSET_BIT_NUM(n) ((zend_ulong)(n) & Z_UL(0x3f)) argument
40 # define ZEND_BITSET_ELM_NUM(n) ((n) / (sizeof(zend_long) * 8)) argument
41 # define ZEND_BITSET_BIT_NUM(n) ((n) % (sizeof(zend_long) * 8)) argument
69 int n;
73 n = 1;
108 int n;
111 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-src/tests/classes/
H A Dtype_hinting_004.phpt9 echo "in f1;\n";
12 echo "in f2;\n";
17 echo "{$ex->getCode()}: {$ex->getMessage()} - {$ex->getFile()}({$ex->getLine()})\n\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";
45 echo "\n\n---> Type hints with callback static method:\n";
66 echo "{$ex->getCode()}: {$ex->getMessage()} - {$ex->getFile()}({$ex->getLine()})\n\n";
[all …]
H A Dtostring_004.phpt14 echo "Try 1:\n";
18 echo $e->getMessage(), "\n";
20 printf("\n");
22 echo "\nTry 2:\n";
24 printf($obj . "\n");
26 echo $e->getMessage(), "\n";
29 echo "\n\nObject with bad __toString():\n";
37 echo "Try 1:\n";
43 printf("\n");
45 echo "\nTry 2:\n";
[all …]
/php-src/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-src/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-src/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-src/ext/pdo_odbc/tests/
H A Dautocommit_change_mode.phpt21 echo "Success\n\n";
26 echo "Success\n\n";
31 echo "Success\n\n";
36 echo "Success\n\n";
42 echo "\n";
49 echo $e->getMessage()."\n\n";
57 echo $e->getMessage()."\n\n";
68 echo "\n";
75 echo $e->getMessage()."\n\n";
83 echo $e->getMessage()."\n\n";
[all …]
/php-src/ext/pdo_firebird/tests/
H A Dautocommit_change_mode.phpt21 echo "Success\n\n";
26 echo "Success\n\n";
31 echo "Success\n\n";
36 echo "Success\n\n";
42 echo "\n";
49 echo $e->getMessage()."\n\n";
57 echo $e->getMessage()."\n\n";
68 echo "\n";
75 echo $e->getMessage()."\n\n";
83 echo $e->getMessage()."\n\n";
[all …]
/php-src/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 88 milliseconds

12345678910>>...327