/PHP-7.0/ext/mbstring/tests/ |
H A D | mb_detect_order.phpt | 16 ($r === TRUE) ? print "OK_AUTO\n" : print "NG_AUTO\n"; 17 print implode(', ', mb_detect_order()) . "\n"; 22 ($r === TRUE) ? print "OK_STR\n" : print "NG_STR\n"; 23 print implode(', ', mb_detect_order()) . "\n"; 32 ($r === TRUE) ? print "OK_ARRAY\n" : print "NG_ARRAY\n"; 33 print implode(', ', mb_detect_order()) . "\n"; 36 print "== INVALID PARAMETER ==\n"; 39 ($r === FALSE) ? print "OK_BAD_STR\n" : print "NG_BAD_STR\n"; 40 print implode(', ', mb_detect_order()) . "\n"; 44 ($r === FALSE) ? print "OK_BAD_ARRAY\n" : print "NG_BAD_ARRAY\n"; [all …]
|
H A D | mb_str_functions_opt-parameter.phpt | 7 echo mb_strpos('abb', 'b', null, 'UTF-8') . "\n"; 8 echo mb_strrpos('abb', 'b', null, 'UTF-8') . "\n"; 9 echo mb_stripos('abb', 'B', null, 'UTF-8') . "\n"; 10 echo mb_strripos('abb', 'B', null, 'UTF-8') . "\n"; 11 echo mb_strstr('foobarbaz', 'ba', null, 'UTF-8') . "\n"; 12 echo mb_strrchr('foobarbaz', 'ba', null, 'UTF-8') . "\n"; 13 echo mb_stristr('foobarbaz', 'BA', null, 'UTF-8') . "\n"; 14 echo mb_strrichr('foobarbaz', 'BA', null, 'UTF-8') . "\n"; 15 echo mb_substr('foobarbaz', 6, null, 'UTF-8') . "\n"; 16 echo mb_strcut('foobarbaz', 6, null, 'UTF-8') . "\n"; [all …]
|
/PHP-7.0/ext/standard/tests/file/ |
H A D | 001.phpt | 16 echo "test.file exists\n"; 18 echo "test.file does not exist\n"; 23 echo "test.file exists\n"; 25 echo "test.file does not exist\n"; 30 echo "test.link exists\n"; 32 echo "test.link does not exist\n"; 35 echo "test.file is a symlink\n"; 40 echo "test.link is a symlink\n"; 45 echo "test.file exists\n"; 73 echo "test.file is readable\n"; [all …]
|
H A D | 001-win32.phpt | 16 echo "test.file exists\n"; 18 echo "test.file does not exist\n"; 23 echo "test.file exists\n"; 25 echo "test.file does not exist\n"; 28 echo "test.file is a symlink\n"; 33 echo "test.file exists\n"; 35 echo "test.file does not exist\n"; 48 echo "test.file is writeable\n"; 53 echo "test.file is readable\n"; 63 echo "../file is a directory\n"; [all …]
|
/PHP-7.0/ext/standard/tests/math/ |
H A D | lcg_value_basic.phpt | 6 echo "MATHS test script started\n"; 9 echo "\n lcg_value tests...\n"; 19 echo "FAILED\n"; 21 echo "PASSED\n"; 24 echo "\n lcg_value error cases..spurious args get ignored\n"; 28 echo "FAILED\n"; 30 echo "PASSED\n"; 35 echo "FAILED\n"; 37 echo "PASSED\n"; 40 echo "MATHS test script completed\n";
|
/PHP-7.0/ext/standard/tests/strings/ |
H A D | bug53021.phpt | 6 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"; 14 echo "\nsingle quotes variations:", "\n"; 15 echo html_entity_decode("'", ENT_NOQUOTES, 'UTF-8'), "\n"; 16 echo html_entity_decode("'", ENT_QUOTES, 'UTF-8'), "\n"; [all …]
|
H A D | nl2br_variation3.phpt | 14 echo "*** Testing nl2br() : usage variations ***\n"; 15 //heredoc string containing new line chars(\n, \r and combinations of \r & \n) and new lines 17 \n 19 \r\n 20 \nnn\n\n\nn 22 \n\r\n\r\r\n\nr\rn 28 This is \tes\t for \n \new lines 29 like \n \r\n \r \n\r and etc 50 n<br /> 63 n"
|
H A D | printf_basic3.phpt | 27 echo "\n-- Calling printf() with no arguments--\n"; 29 echo "\n"; 32 echo "\n-- Calling printf() with one arguments--\n"; 34 echo "\n"; 37 echo "\n"; 40 echo "\n-- Calling printf() with two arguments--\n"; 42 echo "\n"; 45 echo "\n"; 48 echo "\n-- Calling printf() with three arguments--\n"; 50 echo "\n"; [all …]
|
H A D | print_basic.phpt | 14 echo "\n-- Iteration 1 --\n"; 17 echo "\n-- Iteration 2 --\n"; 20 echo "\n-- Iteration 3 --\n"; 25 echo "\n-- Iteration 4 --\n"; 28 echo "\n-- Iteration 5 --\n"; 35 echo "\n-- Iteration 6 --\n"; 41 echo "\n-- Iteration 7 --\n"; 45 echo "\n-- Iteration 8 --\n"; 49 echo "\n-- Iteration 9 --\n"; 52 echo "\n-- Iteration 10 --\n"; [all …]
|
/PHP-7.0/ext/spl/tests/ |
H A D | heap_001.phpt | 11 echo "Exception: ".$e->getMessage()."\n"; 21 echo $h->count()."\n"; 22 echo $h->extract()."\n"; 23 echo $h->extract()."\n"; 24 echo $h->extract()."\n"; 25 echo $h->extract()."\n"; 26 echo $h->extract()."\n"; 27 echo $h->count()."\n"; 29 echo "--\n"; 36 echo $h->extract()."\n"; [all …]
|
/PHP-7.0/ext/date/tests/ |
H A D | bug33415-2.phpt | 13 print "wanted=Wednesday 00:00:00\n\n"; 21 print "wanted=Thursday 00:30:00\n\n"; 30 print "wanted=Thursday 00:00:00\n\n"; 39 print "wanted=Saturday 00:00:00\n\n"; 47 print "wanted=Thursday 03:00:00\n\n"; 56 print "wanted=Sunday 00:00:00\n\n"; 64 print "wanted=Sunday 00:30:00\n\n"; 73 print "wanted=Tuesday 00:00:00\n\n"; 82 print "wanted=Monday 00:00:00\n\n"; 90 print "wanted=Sunday 02:00:00\n\n"; [all …]
|
/PHP-7.0/ext/hash/tests/ |
H A D | hash_hmac_basic.phpt | 14 echo "*** Testing hash_hmac() : basic functionality ***\n"; 19 echo "adler32: " . hash_hmac('adler32', $content, $key) . "\n"; 20 echo "crc32: " . hash_hmac('crc32', $content, $key) . "\n"; 21 echo "gost: " . hash_hmac('gost', $content, $key) . "\n"; 23 echo "md2: " . hash_hmac('md2', $content, $key) . "\n"; 24 echo "md4: " . hash_hmac('md4', $content, $key) . "\n"; 25 echo "md5: " . hash_hmac('md5', $content, $key) . "\n"; 30 echo "sha1: " . hash_hmac('sha1', $content, $key) . "\n"; 31 echo "sha256: " . hash_hmac('sha256', $content, $key) . "\n"; 32 echo "sha384: " . hash_hmac('sha384', $content, $key) . "\n"; [all …]
|
H A D | hash_file_basic1.phpt | 35 echo "adler32: " . hash_file('adler32', $file) . "\n"; 36 echo "crc32: " . hash_file('crc32', $file) . "\n"; 37 echo "gost: " . hash_file('gost', $file). "\n"; 39 echo "md2: " . hash_file('md2', $file). "\n"; 40 echo "md4: " . hash_file('md4', $file). "\n"; 41 echo "md5: " . hash_file('md5', $file). "\n"; 46 echo "sha1: " . hash_file('sha1', $file). "\n"; 47 echo "sha256: " . hash_file('sha256', $file). "\n"; 48 echo "sha384: " . hash_file('sha384', $file). "\n"; 49 echo "sha512: " . hash_file('sha512', $file). "\n"; [all …]
|
H A D | ripemd160.phpt | 7 echo hash('ripemd160', '') . "\n"; 8 echo hash('ripemd160', 'a') . "\n"; 9 echo hash('ripemd160', 'abc') . "\n"; 10 echo hash('ripemd160', 'message digest') . "\n"; 11 echo hash('ripemd160', 'abcdefghijklmnopqrstuvwxyz') . "\n"; 12 echo hash('ripemd160', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n"; 13 echo hash('ripemd160', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n"; 14 …md160', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n"; 15 echo hash('ripemd160', str_repeat('a', 1000000)) . "\n";
|
/PHP-7.0/ext/interbase/tests/ |
H A D | interbase.inc | 41 echo "--- $table_name ---\n"; 44 echo join("\t",$r)."\t\n"; 47 echo "---\n"; 52 echo "--- $table_name ---\n"; 54 echo join("\t",$r)."\t\n"; 56 echo "---\n"; 63 echo join("\t",$r)."\t\n"; 66 echo "---\n"; 103 $n .= "." . substr(rand(), 0, rand() % ($len - strlen($n)) + 1); 115 $n = "-" .$n; [all …]
|
H A D | 007.phpt | 31 echo "insert\n"; 78 echo " CHAR[$i] fail:\n"; 83 echo " DATE[$i] fail\n"; 126 echo "select\n"; 137 echo "CHAR fail\n"; 144 echo "DATE fail\n"; 150 echo "DECIMAL fail\n"; 156 echo "INTEGER fail\n"; 162 echo "NUMERIC fail\n"; 168 echo "SMALLINT fail\n"; [all …]
|
H A D | 006.phpt | 37 echo "insert\n"; 61 echo " CHAR fail:\n"; 62 echo " in: $v_char\n"; 66 echo " DATE fail\n"; 67 echo " in: $v_date\n"; 76 echo " DOUBLE fail\n"; 81 echo " FLOAT fail\n"; 108 echo "select\n"; 135 echo "CHAR fail\n"; 141 echo "DATE fail\n"; [all …]
|
/PHP-7.0/Zend/tests/ |
H A D | bug32290.phpt | 12 echo __METHOD__ . "($i)\n"; 18 echo __METHOD__ . "($i)\n"; 24 echo __METHOD__ . "($i)\n"; 30 echo __METHOD__ . "($i)\n"; 36 echo __METHOD__ . "($i)\n"; 45 echo __METHOD__ . "($i)\n"; 85 echo "===A===\n"; 87 echo "\n===B===\n"; 89 echo "\n===C===\n"; 91 echo "\n===D===\n"; [all …]
|
H A D | closure_009.phpt | 7 static $n = 0; 8 $n++; 9 $a = $n.':'.$a; 10 echo $x.':'.$a."\n"; 13 static $n = 0; 14 $n++; 15 $a = $n.':'.$a; 16 echo $x.':'.$a."\n";
|
/PHP-7.0/ext/pdo_oci/tests/ |
H A D | pdo_oci_stream_1.phpt | 38 echo "Test 1\n"; 45 echo 'Read '.stream_get_contents($r['data'], 1, 1)."$\n"; // b 46 echo 'Read '.stream_get_contents($r['data'], 2, 1)."$\n"; // cd 47 echo 'Read '.stream_get_contents($r['data'], 2, 0)."$\n"; // ab 51 echo 'Read '.stream_get_contents($r['data'], 1, 20)."$\n"; // u 52 echo 'Read '.stream_get_contents($r['data'], 1, 25)."$\n"; // z 53 echo 'Read '.stream_get_contents($r['data'], 1, 26)."$\n"; // <blank> 54 echo 'Read '.stream_get_contents($r['data'], 1, 0)."$\n"; // a 56 echo "\nTest 2\n"; 66 echo 'Read '.strlen(stream_get_contents($r['data'], 0,0))."\n"; // 0 [all …]
|
/PHP-7.0/ext/intl/tests/ |
H A D | calendar_get_getActualMaximum_Minumum_error2.phpt | 23 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 28 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 33 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 39 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 44 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 49 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 55 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 60 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 65 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 71 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; [all …]
|
/PHP-7.0/tests/classes/ |
H A D | unset_properties.phpt | 76 echo "\n"; 78 echo "\n"; 81 echo "\n"; 83 echo "\n"; 85 echo "\n"; 87 echo "\n"; 89 echo "\n"; 92 echo "\n"; 96 echo "\n\n"; 111 echo "\n\n"; [all …]
|
/PHP-7.0/ext/mbstring/libmbfl/filters/ |
H A D | mbfilter_uuencode.c | 67 int n; in mbfl_filt_conv_uudec() local 101 n = UUDEC(c); in mbfl_filt_conv_uudec() 102 filter->cache = n << 24; in mbfl_filt_conv_uudec() 107 n = UUDEC(c); in mbfl_filt_conv_uudec() 113 n = UUDEC(c); in mbfl_filt_conv_uudec() 119 n = UUDEC(c); in mbfl_filt_conv_uudec() 120 filter->cache |= n; in mbfl_filt_conv_uudec() 131 if (n-- > 0) in mbfl_filt_conv_uudec() 133 if (n-- > 0) in mbfl_filt_conv_uudec() 135 if (n-- > 0) in mbfl_filt_conv_uudec() [all …]
|
H A D | mbfilter_utf7imap.c | 69 int s, n; in mbfl_filt_conv_utf7imap_wchar() local 71 n = -1; in mbfl_filt_conv_utf7imap_wchar() 80 n = 62; in mbfl_filt_conv_utf7imap_wchar() 82 n = 63; in mbfl_filt_conv_utf7imap_wchar() 84 if (n < 0 || n > 63) { in mbfl_filt_conv_utf7imap_wchar() 128 n = (n & 0x3) << 14; in mbfl_filt_conv_utf7imap_wchar() 160 n = (n & 0xf) << 12; in mbfl_filt_conv_utf7imap_wchar() 236 int n, s; in mbfl_filt_conv_wchar_utf7imap() local 238 n = 0; in mbfl_filt_conv_wchar_utf7imap() 240 n = 1; in mbfl_filt_conv_wchar_utf7imap() [all …]
|
/PHP-7.0/ext/filter/tests/ |
H A D | 045.phpt | 9 echo ($ret === 255 && $a["options"]["min_range"] === "0")?"ok\n":"bug\n"; 10 echo ($ret === 255 && $a["options"]["max_range"] === "1024")?"ok\n":"bug\n"; 11 echo ($ret === 255 && is_string($a["flags"]) && $a["flags"] == FILTER_FLAG_ALLOW_HEX)?"ok\n":"bug\n… 14 echo ($ret === 255 && is_string($a) && $a == FILTER_FLAG_ALLOW_HEX)?"ok\n":"bug\n"; 17 … && is_string($a["test"]["filter"]) && $a["test"]["filter"] == FILTER_VALIDATE_INT)?"ok\n":"bug\n"; 18 … && is_string($a["test"]["flags"]) && $a["test"]["flags"] == FILTER_FLAG_ALLOW_HEX)?"ok\n":"bug\n"; 21 …$ret["test"] === 255 && is_string($a["test"]) && $a["test"] == FILTER_VALIDATE_INT)?"ok\n":"bug\n";
|