/PHP-7.4/ext/soap/ |
H A D | php_xml.h | 46 #define FOREACHATTRNODE(n,c,i) FOREACHATTRNODEEX(n,c,NULL,i) argument 49 if (n == NULL) { \ 55 i = n; \ 58 n = i; 60 #define FOREACHNODE(n,c,i) FOREACHNODEEX(n,c,NULL,i) argument 63 if (n == NULL) { \ 67 i = get_node_ex(n,c,NULL); \ 69 i = n; \ 72 n = i; 74 #define ENDFOREACH(n) \ argument [all …]
|
/PHP-7.4/Zend/tests/ |
H A D | bug69957.phpt | 11 echo "Variable div\n"; 12 printf("Type: %s\n", get_class($t)); 21 echo "\nVariable mod\n"; 22 printf("Type: %s\n", get_class($t)); 30 echo "\nLiteral div\n"; 31 printf("Type: %s\n", get_class($t)); 39 echo "\nLiteral mod\n"; 40 printf("Type: %s\n", get_class($t)); 48 echo "\nDouble div\n"; 49 printf("Type: %s\n", get_class($t)); [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";
|
H A D | exception_from_toString.phpt | 17 catch (Exception $e) { echo $e->getMessage(), "\n"; } 19 catch (Exception $e) { echo $e->getMessage(), "\n"; } 21 catch (Exception $e) { echo $e->getMessage(), "\n"; } 24 catch (Exception $e) { echo $e->getMessage(), "\n"; } 26 catch (Exception $e) { echo $e->getMessage(), "\n"; } 28 catch (Exception $e) { echo $e->getMessage(), "\n"; } 32 catch (Exception $e) { echo $e->getMessage(), "\n"; } 35 catch (Exception $e) { echo $e->getMessage(), "\n"; } 39 catch (Exception $e) { echo $e->getMessage(), "\n"; } 41 catch (Exception $e) { echo $e->getMessage(), "\n"; } [all …]
|
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 …]
|
/PHP-7.4/ext/mbstring/libmbfl/filters/ |
H A D | mbfilter_byte4.c | 99 int n; in mbfl_filt_conv_byte4be_wchar() local 104 filter->cache = n; in mbfl_filt_conv_byte4be_wchar() 108 filter->cache |= n; in mbfl_filt_conv_byte4be_wchar() 111 n = (c & 0xff) << 8; in mbfl_filt_conv_byte4be_wchar() 112 filter->cache |= n; in mbfl_filt_conv_byte4be_wchar() 132 int n; in mbfl_filt_conv_byte4le_wchar() local 136 n = (c & 0xff); in mbfl_filt_conv_byte4le_wchar() 137 filter->cache = n; in mbfl_filt_conv_byte4le_wchar() 140 n = (c & 0xff) << 8; in mbfl_filt_conv_byte4le_wchar() 141 filter->cache |= n; in mbfl_filt_conv_byte4le_wchar() [all …]
|
H A D | mbfilter_ucs2.c | 133 int n, endian; in mbfl_filt_conv_ucs2_wchar() local 139 n = c & 0xff; in mbfl_filt_conv_ucs2_wchar() 143 filter->cache = n; in mbfl_filt_conv_ucs2_wchar() 150 n = c & 0xff; in mbfl_filt_conv_ucs2_wchar() 152 n |= filter->cache; in mbfl_filt_conv_ucs2_wchar() 153 if (n == 0xfffe) { in mbfl_filt_conv_ucs2_wchar() 175 int n; in mbfl_filt_conv_ucs2be_wchar() local 180 filter->cache = n; in mbfl_filt_conv_ucs2be_wchar() 209 int n; in mbfl_filt_conv_ucs2le_wchar() local 213 n = c & 0xff; in mbfl_filt_conv_ucs2le_wchar() [all …]
|
/PHP-7.4/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.4/tests/strings/ |
H A D | 001.phpt | 16 echo("failed 1\n"); 18 echo("failed 2\n"); 20 echo("failed 3\n"); 22 echo("failed 4\n"); 24 echo("passed\n"); 32 echo("failed 1\n"); 34 echo("failed 2\n"); 36 echo("passed\n"); 49 echo("passed\n"); 56 echo("passed\n"); [all …]
|
/PHP-7.4/ext/tokenizer/tests/ |
H A D | bug76991.phpt | 20 echo token_name($token[0]) . ": " .str_replace("\n", '\n', $token[1]); 24 echo "\n"; 29 T_OPEN_TAG: <?php\n 30 T_START_HEREDOC: <<<TEST\n 32 T_ENCAPSED_AND_WHITESPACE: \n 35 T_WHITESPACE: \n\n 36 T_START_HEREDOC: <<<END\n 38 T_ENCAPSED_AND_WHITESPACE: \n
|
/PHP-7.4/ext/hash/tests/ |
H A D | ripemd128.phpt | 5 echo hash('ripemd128', '') . "\n"; 6 echo hash('ripemd128', 'a') . "\n"; 7 echo hash('ripemd128', 'abc') . "\n"; 8 echo hash('ripemd128', 'message digest') . "\n"; 9 echo hash('ripemd128', 'abcdefghijklmnopqrstuvwxyz') . "\n"; 10 echo hash('ripemd128', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n"; 11 echo hash('ripemd128', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n"; 12 …md128', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n"; 13 echo hash('ripemd128', str_repeat('a', 1000000)) . "\n";
|
H A D | ripemd160.phpt | 5 echo hash('ripemd160', '') . "\n"; 6 echo hash('ripemd160', 'a') . "\n"; 7 echo hash('ripemd160', 'abc') . "\n"; 8 echo hash('ripemd160', 'message digest') . "\n"; 9 echo hash('ripemd160', 'abcdefghijklmnopqrstuvwxyz') . "\n"; 10 echo hash('ripemd160', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n"; 11 echo hash('ripemd160', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n"; 12 …md160', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n"; 13 echo hash('ripemd160', str_repeat('a', 1000000)) . "\n";
|
H A D | ripemd256.phpt | 5 echo hash('ripemd256', '') . "\n"; 6 echo hash('ripemd256', 'a') . "\n"; 7 echo hash('ripemd256', 'abc') . "\n"; 8 echo hash('ripemd256', 'message digest') . "\n"; 9 echo hash('ripemd256', 'abcdefghijklmnopqrstuvwxyz') . "\n"; 10 echo hash('ripemd256', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n"; 11 echo hash('ripemd256', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n"; 12 …md256', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n"; 13 echo hash('ripemd256', str_repeat('a', 1000000)) . "\n";
|
H A D | ripemd320.phpt | 5 echo hash('ripemd320', '') . "\n"; 6 echo hash('ripemd320', 'a') . "\n"; 7 echo hash('ripemd320', 'abc') . "\n"; 8 echo hash('ripemd320', 'message digest') . "\n"; 9 echo hash('ripemd320', 'abcdefghijklmnopqrstuvwxyz') . "\n"; 10 echo hash('ripemd320', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n"; 11 echo hash('ripemd320', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n"; 12 …md320', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n"; 13 echo hash('ripemd320', str_repeat('a', 1000000)) . "\n";
|
H A D | hash_file_basic1.phpt | 33 echo "adler32: " . hash_file('adler32', $file) . "\n"; 34 echo "crc32: " . hash_file('crc32', $file) . "\n"; 35 echo "gost: " . hash_file('gost', $file). "\n"; 37 echo "md2: " . hash_file('md2', $file). "\n"; 38 echo "md4: " . hash_file('md4', $file). "\n"; 39 echo "md5: " . hash_file('md5', $file). "\n"; 44 echo "sha1: " . hash_file('sha1', $file). "\n"; 45 echo "sha256: " . hash_file('sha256', $file). "\n"; 46 echo "sha384: " . hash_file('sha384', $file). "\n"; 47 echo "sha512: " . hash_file('sha512', $file). "\n"; [all …]
|
H A D | hash_hmac_basic.phpt | 12 echo "*** Testing hash_hmac() : basic functionality ***\n"; 17 echo "gost: " . hash_hmac('gost', $content, $key) . "\n"; 19 echo "md2: " . hash_hmac('md2', $content, $key) . "\n"; 20 echo "md4: " . hash_hmac('md4', $content, $key) . "\n"; 21 echo "md5: " . hash_hmac('md5', $content, $key) . "\n"; 22 echo "ripemd128: " . hash_hmac('ripemd128', $content, $key) . "\n"; 26 echo "sha1: " . hash_hmac('sha1', $content, $key) . "\n"; 27 echo "sha256: " . hash_hmac('sha256', $content, $key) . "\n"; 28 echo "sha384: " . hash_hmac('sha384', $content, $key) . "\n"; 29 echo "sha512: " . hash_hmac('sha512', $content, $key) . "\n"; [all …]
|
/PHP-7.4/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.4/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 …]
|
H A D | mb_strimwidth.phpt | 14 print "String width: ".mb_strwidth($euc_jp,'EUC-JP')."\n"; 16 print "1: ". mb_strimwidth($euc_jp, 0, 15,'...','EUC-JP') . "\n"; 17 print "2: ". mb_strimwidth($euc_jp, 0, 100,'...','EUC-JP') . "\n"; 18 print "3: ". mb_strimwidth($euc_jp, 15, 100,'...','EUC-JP') . "\n"; 19 print "4: ". mb_strimwidth($euc_jp, -30, 5,'...','EUC-JP') . "\n"; 20 print "5: ". mb_strimwidth($euc_jp, 38, 5,'...','EUC-JP') . "\n"; 21 print "6: ". mb_strimwidth($euc_jp, 38, -25,'...','EUC-JP') . "\n"; 25 ($str === FALSE) ? print "10 OK\n" : print "NG: $str\n"; 28 ($str === FALSE) ? print "11 OK\n" : print "NG: $str\n"; 31 ($str === FALSE) ? print "12 OK\n" : print "NG: $str\n"; [all …]
|
/PHP-7.4/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.4/ext/calendar/tests/ |
H A D | gregoriantojd.phpt | 7 echo gregoriantojd( 0, 0, 0). "\n"; 8 echo gregoriantojd( 1, 1, 1582). "\n"; 9 echo gregoriantojd(10, 5, 1582). "\n"; 10 echo gregoriantojd( 1, 1, 1970). "\n"; 11 echo gregoriantojd( 1, 1, 2999). "\n"; 12 echo gregoriantojd( 1, 1, -4714). "\n"; 13 echo gregoriantojd( 11, 24, -4714). "\n";
|
/PHP-7.4/ext/standard/ |
H A D | dns.c | 448 long n, i; in php_parserr() local 460 cp += n; in php_parserr() 528 cp += n; in php_parserr() 539 cp += n; in php_parserr() 545 cp += n; in php_parserr() 561 cp += n; in php_parserr() 565 n = dlen - n - 2; in php_parserr() 568 cp += n; in php_parserr() 608 cp += n; in php_parserr() 614 cp += n; in php_parserr() [all …]
|
/PHP-7.4/ext/standard/tests/strings/ |
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 …]
|