/PHP-7.0/ext/standard/tests/strings/ |
H A D | html_entity_decode2.phpt | 6 echo "*** HTML 4.01 implicit (shouldn't decode) ***\n"; 7 echo html_entity_decode("'", ENT_QUOTES, "UTF-8"), "\n"; 9 echo "*** HTML 4.01 (shouldn't decode) ***\n"; 10 echo html_entity_decode("'", ENT_QUOTES | ENT_HTML401, "UTF-8"), "\n"; 12 echo "*** HTML 5 ***\n"; 13 echo html_entity_decode("'", ENT_QUOTES | ENT_HTML5, "UTF-8"), "\n"; 15 echo "*** XHTML 1.0 ***\n"; 16 echo html_entity_decode("'", ENT_QUOTES | ENT_XHTML, "UTF-8"), "\n"; 18 echo "*** XML 1.0 ***\n"; 19 echo html_entity_decode("'", ENT_QUOTES | ENT_XML1, "UTF-8"), "\n"; [all …]
|
H A D | htmlspecialchars_basic.phpt | 17 echo "Basic tests\n"; 18 echo "Test 1: " . htmlspecialchars ($s1); 19 echo "Test 2: " . htmlspecialchars ($s2); 20 echo "Test 3: " . htmlspecialchars ($s3); 21 echo "Test 4: " . htmlspecialchars ($s4); 22 echo "Test 5: " . htmlspecialchars ($s5); 23 echo "Test 6: " . htmlspecialchars ($s1,ENT_NOQUOTES); 28 echo "Test 11: " . htmlspecialchars ($s1,ENT_COMPAT); 29 echo "Test 12: " . htmlspecialchars ($s2,ENT_COMPAT); 45 echo "\nTry with double decode FALSE\n"; [all …]
|
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 | 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.0/ext/filter/tests/ |
H A D | 004.phpt | 12 <?php echo $_GET['a']; 13 echo $_GET['b']; 14 echo $_GET['c']; 15 echo $_POST['d']; 16 echo $_POST['e']; 17 echo "\n"; 18 echo $_REQUEST['a']; 19 echo $_REQUEST['b']; 20 echo $_REQUEST['c']; 21 echo $_REQUEST['d']; [all …]
|
/PHP-7.0/ext/standard/tests/serialize/ |
H A D | 001.phpt | 31 echo "__sleep called\n"; 37 echo "__wakeup called\n"; 42 echo serialize(NULL)."\n"; 45 echo serialize(1)."\n"; 46 echo serialize(0)."\n"; 47 echo serialize(-1)."\n"; 51 echo serialize(1.0)."\n"; 52 echo serialize(0.0)."\n"; 60 echo "$data\n"; 66 echo "$data\n"; [all …]
|
/PHP-7.0/ext/standard/tests/math/ |
H A D | cosh_basic.phpt | 15 echo "cosh .5 = "; 19 echo "Pass\n"; 22 echo "Fail\n"; 28 echo "Pass\n"; 31 echo "Fail\n"; 34 echo "cosh 3 = "; 37 echo "Pass\n"; 40 echo "Fail\n"; 43 echo "cosh -3 = "; 46 echo "Pass\n"; [all …]
|
H A D | sinh_basic.phpt | 15 echo "sinh .5 = "; 18 echo "Pass\n"; 21 echo "Fail\n"; 27 echo "Pass\n"; 30 echo "Fail\n"; 33 echo "sinh 3 = "; 36 echo "Pass\n"; 39 echo "Fail\n"; 42 echo "sinh -3 = "; 45 echo "Pass\n"; [all …]
|
H A D | tanh_basic.phpt | 15 echo "tanh .5 = "; 18 echo "Pass\n"; 21 echo "Fail\n"; 27 echo "Pass\n"; 30 echo "Fail\n"; 33 echo "tanh 3 = "; 36 echo "Pass\n"; 39 echo "Fail\n"; 42 echo "tanh -3 = "; 45 echo "Pass\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/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/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 | 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 | 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";
|
/PHP-7.0/ext/xmlreader/tests/ |
H A D | 003.phpt | 24 echo $reader->name . ": "; 25 echo $reader->value . "\n"; 33 echo $reader->name . ": "; 34 echo $reader->value . "\n"; 42 echo $reader->name . ": "; 43 echo $reader->value . "\n"; 46 echo "attr num failed\n"; 50 echo $reader->name . ": "; 54 echo "attr idx failed\n"; 59 echo $reader->name . ": "; [all …]
|
/PHP-7.0/ext/interbase/tests/ |
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/sapi/cli/tests/ |
H A D | 016.phpt | 20 echo 'Hello world'; 25 echo 'multine 32 echo <<<HEREDOC 42 echo "I'm not there"; 44 echo "Done"; 49 echo "I was called!"; 57 echo `echo $code | "$php" -a`, "\n"; 60 echo "\nDone\n"; 78 php > echo 'multine 92 php > echo <<<HEREDOC [all …]
|
/PHP-7.0/ext/mbstring/tests/ |
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/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 | 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.0/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 …]
|