/PHP-7.4/ext/hash/tests/ |
H A D | sha512.phpt | 5 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 D | sha1.phpt | 5 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 D | sha384.phpt | 5 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 D | jump04.phpt | 6 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 D | closure_044.phpt | 20 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 D | jump02.phpt | 5 $n = 1; 7 if ($n > 3) goto L2; 8 echo "$n: ok\n"; 9 $n++;
|
H A D | lsb_001.phpt | 38 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 D | mb_strwidth.phpt | 15 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 D | mb_decode_numericentity.phpt | 14 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('�', $convmap), "\n"; 19 echo mb_decode_numericentity('�', $convmap), "\n"; 20 echo mb_decode_numericentity('�', $convmap), "\n"; 21 echo mb_decode_numericentity('�', $convmap), "\n"; 22 echo mb_decode_numericentity('�', $convmap), "\n";
|
H A D | mb_detect_encoding.phpt | 20 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 D | pcre2_intmodedep.h | 109 (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 D | range.phpt | 10 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 D | key_basic.phpt | 14 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 D | assert_variation.phpt | 13 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 D | phar_stub.phpt | 24 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 D | mysqli_stmt_execute_stored_proc.phpt | 21 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 D | mysqli_class_mysqli_result_interface.phpt | 22 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 D | mysqli_autocommit_oo.phpt | 32 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 D | strlcat.c | 73 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 D | colorexact.phpt | 5 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 D | strip_tags.phpt | 6 echo "\n"; 8 echo "\n"; 10 echo "\n"; 12 echo "\n"; 14 echo "\n"; 16 echo "\n"; 18 echo "\n";
|
H A D | substr_count_variation_002.phpt | 6 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 D | pdo_oci_attr_prefetch_1.phpt | 16 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 D | dba_handler.inc | 3 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 D | dba_db4_009.phpt | 13 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";
|