Home
last modified time | relevance | path

Searched refs:n (Results 251 – 275 of 8951) sorted by relevance

1...<<11121314151617181920>>...359

/PHP-7.4/ext/hash/tests/
H A Dsha512.phpt5 echo hash('sha512', '') . "\n";
6 echo hash('sha512', 'a') . "\n";
7 echo hash('sha512', '012345678901234567890123456789012345678901234567890123456789') . "\n";
10 echo hash('sha512', 'abc') . "\n";
11 …jdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu') . "\n";
12 echo hash('sha512', str_repeat('a', 1000000)) . "\n";
H A Dsha1.phpt5 echo hash('sha1', '') . "\n";
6 echo hash('sha1', 'a') . "\n";
7 echo hash('sha1', '012345678901234567890123456789012345678901234567890123456789') . "\n";
10 echo hash('sha1', 'abc') . "\n";
11 echo hash('sha1', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n";
12 echo hash('sha1', str_repeat('a', 1000000)) . "\n";
H A Dsha384.phpt5 echo hash('sha384', '') . "\n";
6 echo hash('sha384', 'a') . "\n";
7 echo hash('sha384', '012345678901234567890123456789012345678901234567890123456789') . "\n";
10 echo hash('sha384', 'abc') . "\n";
11 …jdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu') . "\n";
12 echo hash('sha384', str_repeat('a', 1000000)) . "\n";
/PHP-7.4/Zend/tests/
H A Djump04.phpt6 echo "1: ok\n";
8 echo "4: ok\n";
10 echo "2: ok\n";
12 echo "3: ok\n";
15 echo "bug\n";
17 echo "bug\n";
H A Dclosure_044.phpt20 echo "Before binding", "\n";
21 $nonstaticUnscoped(); echo "\n";
22 $nonstaticScoped(); echo "\n";
24 echo "After binding, null scope, no instance", "\n";
25 $d = $nonstaticUnscoped->bindTo(null, null); $d(); echo "\n";
26 $d = $nonstaticScoped->bindTo(null, null); $d(); echo "\n";
28 echo "After binding, null scope, with instance", "\n";
32 echo "After binding, with scope, no instance", "\n";
34 $d = $nonstaticScoped->bindTo(null, 'A'); $d(); echo "\n";
36 echo "After binding, with scope, with instance", "\n";
[all …]
H A Djump02.phpt5 $n = 1;
7 if ($n > 3) goto L2;
8 echo "$n: ok\n";
9 $n++;
H A Dlsb_001.phpt38 echo TestClass::testStaticVar() . "\n";
39 echo TestClass::testClassConst() . "\n";
40 echo TestClass::testStaticFunction() . "\n";
42 echo ChildClass1::testStaticVar() . "\n";
43 echo ChildClass1::testClassConst() . "\n";
44 echo ChildClass1::testStaticFunction() . "\n";
46 echo ChildClass2::testStaticVar() . "\n";
47 echo ChildClass2::testClassConst() . "\n";
48 echo ChildClass2::testStaticFunction() . "\n";
/PHP-7.4/ext/mbstring/tests/
H A Dmb_strwidth.phpt15 print "1: ". mb_strwidth($euc_jp, 'EUC-JP') . "\n";
18 print "2: ". mb_strwidth($euc_jp, 'EUC-JP') . "\n";
19 print "3: ". mb_strwidth($euc_jp, 'EUC-JP') . "\n";
21 print "4: ". mb_strwidth($euc_jp, 'EUC-JP') . "\n";
24 ($str === "") ? print "5 OK\n" : print "NG: $str\n";
27 ($str !== "") ? print "6 OK: $str\n" : print "NG: $str\n";
H A Dmb_decode_numericentity.phpt14 echo mb_decode_numericentity($str1, $convmap, "UTF-8")."\n";
15 echo mb_decode_numericentity($str2, $convmap, "UTF-8")."\n";
16 echo mb_decode_numericentity($str3, $convmap, "UTF-8")."\n";
18 echo mb_decode_numericentity('&#1000000000', $convmap), "\n";
19 echo mb_decode_numericentity('&#9000000000', $convmap), "\n";
20 echo mb_decode_numericentity('&#10000000000', $convmap), "\n";
21 echo mb_decode_numericentity('&#100000000000', $convmap), "\n";
22 echo mb_decode_numericentity('&#000000000000', $convmap), "\n";
H A Dmb_detect_encoding.phpt20 echo "== BASIC TEST ==\n";
23 print("SJIS: $s\n");
27 print("JIS: $s\n");
31 print("EUC-JP: $s\n");
35 print("EUC-JP: $s\n");
47 print("JIS: $s\n");
51 print("EUC-JP: $s\n");
55 print("SJIS: $s\n");
66 print("JIS: $s\n");
70 print("EUC-JP: $s\n");
[all …]
/PHP-7.4/ext/pcre/pcre2lib/
H A Dpcre2_intmodedep.h109 (unsigned int)(((a)[n] << 8) | (a)[(n)+1])
118 (unsigned int)(((a)[n] << 16) | ((a)[(n)+1] << 8) | (a)[(n)+2])
128 (unsigned int)(((a)[n] << 24) | ((a)[(n)+1] << 16) | ((a)[(n)+2] << 8) | (a)[(n)+3])
146 (a[n])
156 (unsigned int)(((a)[n] << 16) | (a)[(n)+1])
172 (a[n])
194 #define GET2(a,n) (unsigned int)(((a)[n] << 8) | (a)[(n)+1]) argument
195 #define PUT2(a,n,d) a[n] = (d) >> 8, a[(n)+1] = (d) & 255 argument
199 #define GET2(a,n) a[n] argument
200 #define PUT2(a,n,d) a[n] = d argument
[all …]
/PHP-7.4/ext/standard/tests/array/
H A Drange.phpt10 echo "\n-- Integers as Low and High --\n";
13 echo "\n-- An array of elements from high to low --\n";
16 echo "\n-- Numeric Strings as Low and High --\n";
19 echo "\n-- An array of elements from high to low --\n";
22 echo "\n-- Chars as Low and High --\n";
25 echo "\n-- An array of elements from high to low --\n";
28 echo "\n-- Low and High are equal --\n";
32 echo "\n-- floats as Low and High --\n";
39 echo "\n-- Passing step with Low and High --\n";
46 echo "\n-- Testing basic string with step --\n";
[all …]
H A Dkey_basic.phpt14 echo "*** Testing key() : basic functionality ***\n";
17 echo "\n-- Initial Position: --\n";
20 echo "\n-- Next Position: --\n";
24 echo "\n-- End Position: --\n";
28 echo "\n-- Past end of the array --\n";
/PHP-7.4/ext/standard/tests/assert/
H A Dassert_variation.phpt13 echo "f1 called\n";
17 echo "f2 called\n";
21 echo "f3 called\n";
34 echo"\n";
41 echo"\n";
48 echo"\n";
56 echo"\n";
61 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n\n";
63 echo"\n";
69 echo "ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n\n";
[all …]
/PHP-7.4/ext/phar/tests/
H A Dphar_stub.phpt24 echo fread($fp, strlen($file)) . "\n";
32 echo fread($fp, strlen($file)) . "\n";
47 echo fread($fp, strlen($file)) . "\n";
53 echo file_get_contents($fname2) . "\n";
62 echo fread($fp, strlen($file)) . "\n";
71 echo fread($fp, strlen($file)) . "\n";
86 <?php echo "first stub\n"; __HALT_COMPILER(); ?>
87 <?php echo "second stub\n"; __HALT_COMPILER(); ?>
88 <?php echo "third stub\n"; __HALT_COMPILER(); ?>
90 <?php echo "third stub\n"; __HALT_COMPILER(); ?>
[all …]
/PHP-7.4/ext/mysqli/tests/
H A Dmysqli_stmt_execute_stored_proc.phpt21 printf("[009] [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
47 printf("[017] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
50 printf("[018] Results seem wrong, got %s, [%d] %s\n",
65 printf("[019] [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
88 printf("[026] Results seem wrong, got %s, [%d] %s\n",
102 printf("[028] [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
125 printf("[034] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
128 printf("[035] Results seem wrong, got %s, [%d] %s\n",
140 printf("[037] [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
170 printf("[045] Results seem wrong, got %s, [%d] %s\n",
[all …]
H A Dmysqli_class_mysqli_result_interface.phpt22 printf("Parent class:\n");
25 printf("\nMethods:\n");
66 printf("ok\n");
69 printf("\nClass variables:\n");
73 printf("%s\n", $var);
75 printf("\nObject variables:\n");
78 printf("%s\n", $var);
80 printf("\nMagic, magic properties:\n");
105 printf("mysqli_result->type = '%s'/%s\n",
109 printf("\nAccess to undefined properties:\n");
[all …]
H A Dmysqli_autocommit_oo.phpt32 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error);
35 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error);
40 printf("[005] Cannot turn off autocommit\n");
46 printf("[007] [%d] %s\n", $mysqli->errno, $mysqli->error);
50 printf("[008] Cannot turn on autocommit\n");
53 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error);
60 printf("[011] [%d] %s\n", $mysqli->errno, $mysqli->error);
63 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error);
66 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error);
75 printf("[015] [%d] %s\n", $mysqli->errno, $mysqli->error);
[all …]
/PHP-7.4/main/
H A Dstrlcat.c73 size_t n = siz; local
77 while (n-- != 0 && *dst != '\0')
80 n = siz - dlen;
82 if (n-- == 0)
85 if (n != 0) {
87 n--;
/PHP-7.4/ext/gd/tests/
H A Dcolorexact.phpt5 if (!function_exists('imagecolorexact')) die("skip gd extension not available\n");
14 printf("%X\n", $c);
15 printf("%X\n", $c2);
24 echo imagecolorexact($im, 255,0,255) . "\n";
25 echo imagecolorexact($im, 255,200,0) . "\n";
26 echo imagecolorexactalpha($im, 255,200,0,100) . "\n";
30 echo imagecolorexact($im, 12,12,12) . "\n";
/PHP-7.4/ext/standard/tests/strings/
H A Dstrip_tags.phpt6 echo "\n";
8 echo "\n";
10 echo "\n";
12 echo "\n";
14 echo "\n";
16 echo "\n";
18 echo "\n";
H A Dsubstr_count_variation_002.phpt6 echo "\n*** Testing possible variations ***\n";
7 echo "\n-- complex strings containing other than 7-bit chars --\n";
13 echo "\n-- heredoc string --\n";
27 echo "\n-- heredoc null string --\n";
34 echo "Done\n";
/PHP-7.4/ext/pdo_oci/tests/
H A Dpdo_oci_attr_prefetch_1.phpt16 echo "Test connect\n";
20 echo $dbh->getAttribute(PDO::ATTR_PREFETCH), "\n";
26 echo $r[0] . "\n";
29 echo "Test set 102\n";
31 echo $dbh->getAttribute(PDO::ATTR_PREFETCH), "\n";
37 echo $r[0] . "\n";
40 echo "Test set -1: (Uses 0)\n";
48 echo $r[0] . "\n";
51 echo "Test set PHP_INT_MAX: (Uses default)\n";
59 echo $r[0] . "\n";
[all …]
/PHP-7.4/ext/dba/tests/
H A Ddba_handler.inc3 echo "database handler: $handler\n";
18 echo "Error reopening database\n";
31 echo "\n";
32 echo dba_fetch("key2", $db_file)."\n";
35 echo dba_fetch("key2", $db_file)."\n";
39 echo "Error creating database\n";
46 echo "Read during write: allowed\n";
50 echo '"key number 6" written' . "\n";
65 die("Error reopening database\n");
79 echo "Error reading database\n";
[all …]
H A Ddba_db4_009.phpt13 echo "database handler: $handler\n";
16 if (($db_file=dba_open($db_file, "n", $handler))!==FALSE) {
17 echo "database file created\n";
19 echo "$db_file does not exist\n";
21 if (($db_file1=dba_open($db_file1, "n", $handler))!==FALSE) {
22 echo "database file created\n";
24 echo "$db_file does not exist\n";
26 if (($db_file2=dba_open($db_file2, "n", $handler))!==FALSE) {
27 echo "database file created\n";
29 echo "$db_file does not exist\n";

Completed in 112 milliseconds

1...<<11121314151617181920>>...359