/PHP-7.1/ext/standard/tests/strings/ |
H A D | add-and-stripcslashes.phpt | 5 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";
|
/PHP-7.1/ext/shmop/tests/ |
H A D | 001.phpt | 20 echo "ok\n"; 25 echo "shm write test #1: "; 28 echo "failed\n"; 30 echo "ok\n"; 40 echo "failed\n"; 42 echo "ok\n"; 56 echo "failed\n"; 58 echo "ok\n"; 66 echo "ok\n"; 73 echo "failed\n"; [all …]
|
/PHP-7.1/ext/hash/tests/ |
H A D | ripemd128.phpt | 7 echo hash('ripemd128', '') . "\n"; 8 echo hash('ripemd128', 'a') . "\n"; 9 echo hash('ripemd128', 'abc') . "\n"; 10 echo hash('ripemd128', 'message digest') . "\n"; 11 echo hash('ripemd128', 'abcdefghijklmnopqrstuvwxyz') . "\n"; 12 echo hash('ripemd128', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n"; 13 echo hash('ripemd128', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n"; 14 echo hash('ripemd128', '123456789012345678901234567890123456789012345678901234567890123456789012345… 15 echo hash('ripemd128', str_repeat('a', 1000000)) . "\n";
|
H A D | ripemd320.phpt | 7 echo hash('ripemd320', '') . "\n"; 8 echo hash('ripemd320', 'a') . "\n"; 9 echo hash('ripemd320', 'abc') . "\n"; 10 echo hash('ripemd320', 'message digest') . "\n"; 11 echo hash('ripemd320', 'abcdefghijklmnopqrstuvwxyz') . "\n"; 12 echo hash('ripemd320', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n"; 13 echo hash('ripemd320', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n"; 14 echo hash('ripemd320', '123456789012345678901234567890123456789012345678901234567890123456789012345… 15 echo hash('ripemd320', str_repeat('a', 1000000)) . "\n";
|
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 echo hash('ripemd160', '123456789012345678901234567890123456789012345678901234567890123456789012345… 15 echo hash('ripemd160', str_repeat('a', 1000000)) . "\n";
|
H A D | ripemd256.phpt | 7 echo hash('ripemd256', '') . "\n"; 8 echo hash('ripemd256', 'a') . "\n"; 9 echo hash('ripemd256', 'abc') . "\n"; 10 echo hash('ripemd256', 'message digest') . "\n"; 11 echo hash('ripemd256', 'abcdefghijklmnopqrstuvwxyz') . "\n"; 12 echo hash('ripemd256', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n"; 13 echo hash('ripemd256', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n"; 14 echo hash('ripemd256', '123456789012345678901234567890123456789012345678901234567890123456789012345… 15 echo hash('ripemd256', str_repeat('a', 1000000)) . "\n";
|
H A D | gost.phpt | 7 echo hash('gost', ''), "\n"; 8 echo hash('gost', 'The quick brown fox jumps over the lazy dog'), "\n"; 9 echo hash('gost', 'The quick brown fox jumps over the lazy cog'), "\n"; 10 echo hash('gost', str_repeat('a', 31)), "\n"; 11 echo hash('gost', str_repeat('a', 32)), "\n"; 12 echo hash('gost', str_repeat('a', 33)), "\n"; 14 echo hash('gost-crypto', ''), "\n"; 15 echo hash('gost-crypto', 'The quick brown fox jumps over the lazy dog'), "\n"; 17 echo hash('gost-crypto', str_repeat('a', 31)), "\n"; 18 echo hash('gost-crypto', str_repeat('a', 32)), "\n"; [all …]
|
H A D | hash_hmac_file_basic.phpt | 15 echo "*** Testing hash_hmac_file() : basic functionality ***\n"; 20 echo "Cannot create file ($file)"; 28 echo "Cannot write to file ($file)"; 40 echo "crc32: " . hash_hmac_file('crc32', $file, $key) . "\n"; 41 echo "gost: " . hash_hmac_file('gost', $file, $key) . "\n"; 43 echo "md2: " . hash_hmac_file('md2', $file, $key) . "\n"; 44 echo "md4: " . hash_hmac_file('md4', $file, $key) . "\n"; 45 echo "md5: " . hash_hmac_file('md5', $file, $key) . "\n"; 50 echo "sha1: " . hash_hmac_file('sha1', $file, $key) . "\n"; 51 echo "sha256: " . hash_hmac_file('sha256', $file, $key) . "\n"; [all …]
|
/PHP-7.1/ext/imap/tests/ |
H A D | imap_rfc822_parse_headers_basic.phpt | 29 echo "Check type\n"; 38 echo "Recent: OK"; 42 echo "\n"; 45 echo "Unseen: OK"; 49 echo "\n"; 52 echo "Flagged: OK"; 56 echo "\n"; 63 echo "\n"; 70 echo "\n"; 73 echo "Draft: OK"; [all …]
|
H A D | imap_headerinfo_basic.phpt | 29 echo "Check type\n"; 38 echo "Recent: OK"; 42 echo "\n"; 45 echo "Unseen: OK"; 49 echo "\n"; 52 echo "Flagged: OK"; 56 echo "\n"; 63 echo "\n"; 70 echo "\n"; 73 echo "Draft: OK"; [all …]
|
/PHP-7.1/ext/intl/tests/ |
H A D | bug68447.phpt | 8 echo grapheme_extract($katsushikaku, 1) . "\n"; 11 echo grapheme_extract($haiyore, 1, GRAPHEME_EXTR_COUNT) . "\n"; 12 echo grapheme_extract($haiyore, 2, GRAPHEME_EXTR_COUNT) . "\n"; 13 echo grapheme_extract($haiyore, 6, GRAPHEME_EXTR_MAXBYTES) . "\n"; 14 echo grapheme_extract($haiyore, 9, GRAPHEME_EXTR_MAXBYTES) . "\n"; 15 echo grapheme_extract($haiyore, 12, GRAPHEME_EXTR_MAXBYTES) . "\n"; 16 echo grapheme_extract($haiyore, 1, GRAPHEME_EXTR_MAXCHARS) . "\n"; 17 echo grapheme_extract($haiyore, 2, GRAPHEME_EXTR_MAXCHARS) . "\n"; 18 echo grapheme_extract($haiyore, 3, GRAPHEME_EXTR_MAXCHARS) . "\n";
|
/PHP-7.1/Zend/tests/ |
H A D | bug60362.phpt | 8 echo "sub-key 'non_existent' is set: "; 14 echo "sub-key 1 is set: "; 17 echo "sub-key 1 is not set.\n"; 20 echo "-------------------\n"; 22 echo "sub-key 'sub_sub' is set: "; 28 echo "sub-sub-key 0 is set: "; 34 echo "-------------------\n"; 42 echo "sub-key 1 is empty.\n"; 44 echo "sub-key 1 is not empty: "; 48 echo "-------------------\n"; [all …]
|
H A D | jump17.phpt | 7 echo "1"; 9 echo "2"; 12 echo "3"; 14 echo "4"; 16 echo "5"; 18 echo "6"; 20 echo "7\n";
|
/PHP-7.1/ext/standard/tests/math/ |
H A D | acos_basic.phpt | 18 echo "acos .5 = "; 22 echo "Pass\n"; 25 echo "Fail\n"; 32 echo "Pass\n"; 35 echo "Fail\n"; 39 echo "acos 1.0 = "; 43 echo "Pass\n"; 46 echo "Fail\n"; 50 echo "acos 0.0 = "; 54 echo "Pass\n"; [all …]
|
H A D | asin_basic.phpt | 18 echo "asin .5 = "; 22 echo "Pass\n"; 25 echo "Fail\n"; 32 echo "Pass\n"; 35 echo "Fail\n"; 38 echo "asin 1.0 = "; 42 echo "Pass\n"; 45 echo "Fail\n"; 49 echo "asin 0.0 = "; 53 echo "Pass\n"; [all …]
|
H A D | deg2rad_basic.phpt | 21 echo "deg2rad $arg_0 = "; 25 echo "Pass\n"; 28 echo "Fail\n"; 31 echo "deg2rad $arg_1 = "; 35 echo "Pass\n"; 38 echo "Fail\n"; 40 echo "deg2rad $arg_2 = "; 44 echo "Pass\n"; 47 echo "Fail\n"; 53 echo "Pass\n"; [all …]
|
H A D | rad2deg_basic.phpt | 20 echo "rad2deg $arg_0= "; 24 echo "Pass\n"; 27 echo "Fail\n"; 29 echo "rad2deg $arg_1 = "; 33 echo "Pass\n"; 36 echo "Fail\n"; 42 echo "Pass\n"; 45 echo "Fail\n"; 47 echo "rad2deg $arg_3 = "; 51 echo "Pass\n"; [all …]
|
/PHP-7.1/ext/spl/tests/ |
H A D | heap_002.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"; 35 echo $h->extract()."\n";
|
H A D | iterator_028.phpt | 10 echo "===?===\n"; 12 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 14 echo "===2===\n"; 17 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 19 echo "===X===\n"; 22 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 24 echo "===3===\n"; 27 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 29 echo "===5===\n"; 34 echo "===0===\n"; [all …]
|
/PHP-7.1/ext/standard/tests/general_functions/ |
H A D | var_export_bug66179.phpt | 7 echo PHP_EOL; 9 echo PHP_EOL; 11 echo PHP_EOL; 13 echo PHP_EOL; 15 echo PHP_EOL; 17 echo PHP_EOL; 19 echo PHP_EOL;
|
H A D | isset_basic1.phpt | 11 echo "*** Testing isset() : basic functionality ***\n"; 22 echo "Integer test: " . (isset($i) ? "YES": "NO") . "\n"; 23 echo "Float test: " . (isset($f) ? "YES": "NO") . "\n"; 24 echo "String test: " . (isset($s) ? "YES": "NO") . "\n"; 25 echo "Array test: " . (isset($a) ? "YES": "NO") . "\n"; 26 echo "Boolean test: " . (isset($b) ? "YES": "NO") . "\n"; 27 echo "Null test: " . (isset($n) ? "YES": "NO") . "\n"; 31 echo "\n\nUnset the variables\n\n"; 35 echo "Float test: " . (isset($f) ? "YES": "NO") . "\n"; 37 echo "Array test: " . (isset($a) ? "YES": "NO") . "\n"; [all …]
|
/PHP-7.1/ext/reflection/tests/ |
H A D | 009.phpt | 18 echo "--getName--\n"; 20 echo "--isInternal--\n"; 22 echo "--isUserDefined--\n"; 24 echo "--getFilename--\n"; 26 echo "--getStartline--\n"; 28 echo "--getEndline--\n"; 30 echo "--getDocComment--\n"; 34 echo "--invoke--\n"; 36 echo "--invokeArgs--\n"; 40 echo "--getParameters--\n"; [all …]
|
H A D | 025.phpt | 20 echo "--getName--\n"; 22 echo "--isInternal--\n"; 24 echo "--isUserDefined--\n"; 26 echo "--getFilename--\n"; 28 echo "--getStartline--\n"; 30 echo "--getEndline--\n"; 32 echo "--getDocComment--\n"; 36 echo "--invoke--\n"; 38 echo "--invokeArgs--\n"; 42 echo "--getParameters--\n"; [all …]
|
/PHP-7.1/tests/lang/ |
H A D | static_basic_001.phpt | 6 echo "\nSame variable used as static and non static.\n"; 8 echo "---------\n"; 10 echo "$a\n"; 12 echo "$a\n"; 24 echo "Unitialised : $a\n"; 25 echo "Initialised to 10: $b\n"; 26 echo "Initialised to 20: $c\n"; 27 echo "Unitialised : $d\n"; 28 echo "Initialised to 30: $e\n"; 40 echo "\nUsing static keyword at global scope\n"; [all …]
|
/PHP-7.1/ext/mbstring/tests/ |
H A D | mb_convert_encoding_stateful.phpt | 10 echo "ISO-2022-JP empty segment\n"; 11 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b24402121"), "UTF-8", "ISO-2022-JP")), "\n"; 12 echo bin2hex(mb_convert_encoding(pack("H*", "1b24421b24422121"), "UTF-8", "ISO-2022-JP")), "\n"; 13 echo bin2hex(mb_convert_encoding(pack("H*", "1b28421b284261626364"), "UTF-8", "ISO-2022-JP")), "\n"; 14 echo bin2hex(mb_convert_encoding(pack("H*", "1b284a1b284a61626364"), "UTF-8", "ISO-2022-JP")), "\n"; 15 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b284261626364"), "UTF-8", "ISO-2022-JP")), "\n"; 16 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b284a61626364"), "UTF-8", "ISO-2022-JP")), "\n"; 17 echo bin2hex(mb_convert_encoding(pack("H*", "1b24421b284261626364"), "UTF-8", "ISO-2022-JP")), "\n"; 19 echo "ISO-2022-KR empty segment\n"; 21 echo "HZ empty segment\n"; [all …]
|