/PHP-5.4/ext/tokenizer/tests/ |
H A D | 001.phpt | 8 echo token_name(T_INCLUDE), "\n"; 10 echo token_name(T_EVAL), "\n"; 11 echo token_name(T_REQUIRE), "\n"; 16 echo token_name(T_PRINT), "\n"; 36 echo token_name(T_SL), "\n"; 37 echo token_name(T_SR), "\n"; 38 echo token_name(T_INC), "\n"; 39 echo token_name(T_DEC), "\n"; 49 echo token_name(T_IF), "\n"; 126 echo token_name(-1), "\n"; [all …]
|
/PHP-5.4/ext/mbstring/libmbfl/filters/ |
H A D | mbfilter_utf16.c | 148 if (n >= 0xd800 && n < 0xdc00) { in mbfl_filt_conv_utf16_wchar() 150 } else if (n >= 0xdc00 && n < 0xe000) { in mbfl_filt_conv_utf16_wchar() 151 n &= 0x3ff; in mbfl_filt_conv_utf16_wchar() 190 int n; in mbfl_filt_conv_utf16be_wchar() local 201 if (n >= 0xd800 && n < 0xdc00) { in mbfl_filt_conv_utf16be_wchar() 203 } else if (n >= 0xdc00 && n < 0xe000) { in mbfl_filt_conv_utf16be_wchar() 229 int n; in mbfl_filt_conv_wchar_utf16be() local 255 int n; in mbfl_filt_conv_utf16le_wchar() local 266 if (n >= 0xd800 && n < 0xdc00) { in mbfl_filt_conv_utf16le_wchar() 268 } else if (n >= 0xdc00 && n < 0xe000) { in mbfl_filt_conv_utf16le_wchar() [all …]
|
H A D | mbfilter_utf32.c | 127 int n, endian; in mbfl_filt_conv_utf32_wchar() local 133 n = c & 0xff; in mbfl_filt_conv_utf32_wchar() 165 if ((n & 0xffff) == 0 && ((n >> 16) & 0xffff) == 0xfffe) { in mbfl_filt_conv_utf32_wchar() 174 if (n < MBFL_WCSPLANE_UTF32MAX && (n < 0xd800 || n > 0xdfff)) { in mbfl_filt_conv_utf32_wchar() 177 n = (n & MBFL_WCSGROUP_MASK) | MBFL_WCSGROUP_THROUGH; in mbfl_filt_conv_utf32_wchar() 192 int n; in mbfl_filt_conv_utf32be_wchar() local 209 if (n < MBFL_WCSPLANE_UTF32MAX && (n < 0xd800 || n > 0xdfff)) { in mbfl_filt_conv_utf32be_wchar() 212 n = (n & MBFL_WCSGROUP_MASK) | MBFL_WCSGROUP_THROUGH; in mbfl_filt_conv_utf32be_wchar() 243 int n; in mbfl_filt_conv_utf32le_wchar() local 260 if (n < MBFL_WCSPLANE_UTF32MAX && (n < 0xd800 || n > 0xdfff)) { in mbfl_filt_conv_utf32le_wchar() [all …]
|
H A D | mbfilter_ucs4.c | 128 int n, endian; in mbfl_filt_conv_ucs4_wchar() local 134 n = c & 0xff; in mbfl_filt_conv_ucs4_wchar() 138 filter->cache = n; in mbfl_filt_conv_ucs4_wchar() 147 filter->cache |= n; in mbfl_filt_conv_ucs4_wchar() 163 n = c & 0xff; in mbfl_filt_conv_ucs4_wchar() 166 if ((n & 0xffff) == 0 && ((n >> 16) & 0xffff) == 0xfffe) { in mbfl_filt_conv_ucs4_wchar() 188 int n; in mbfl_filt_conv_ucs4be_wchar() local 193 filter->cache = n; in mbfl_filt_conv_ucs4be_wchar() 234 int n; in mbfl_filt_conv_ucs4le_wchar() local 238 n = (c & 0xff); in mbfl_filt_conv_ucs4le_wchar() [all …]
|
H A D | mbfilter_tl_jisx0201_jisx0208.c | 43 int s, n; in mbfl_filt_tl_jisx0201_jisx0208() local 73 n = (filt->cache - 0xff60) & 0x3f; in mbfl_filt_tl_jisx0201_jisx0208() 74 if (c == 0xff9e && ((n >= 22 && n <= 36) || (n >= 42 && n <= 46))) { in mbfl_filt_tl_jisx0201_jisx0208() 80 } else if (c == 0xff9f && (n >= 42 && n <= 46)) { in mbfl_filt_tl_jisx0201_jisx0208() 95 n = (filt->cache - 0xff60) & 0x3f; in mbfl_filt_tl_jisx0201_jisx0208() 106 if (c == 0xff9e && ((n >= 22 && n <= 36) || (n >= 42 && n <= 46))) { in mbfl_filt_tl_jisx0201_jisx0208() 109 } else if (c == 0xff9f && (n >= 42 && n <= 46)) { in mbfl_filt_tl_jisx0201_jisx0208() 188 n = c - 0x30a1; in mbfl_filt_tl_jisx0201_jisx0208() 198 n = c - 0x3041; in mbfl_filt_tl_jisx0201_jisx0208() 273 int ret, n; in mbfl_filt_tl_jisx0201_jisx0208_flush() local [all …]
|
/PHP-5.4/ext/mbstring/tests/ |
H A D | mb_strpos.phpt | 54 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n"; 56 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n"; 68 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n"; 70 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n"; 83 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n"; 85 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n"; 97 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n"; 99 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n"; 106 ($r === FALSE) ? print("OK_NULL\n") : print("NG_NULL\n"); 108 ($r === FALSE) ? print("OK_ARRAY\n") : print("NG_ARRAY\n"); [all …]
|
H A D | mb_stripos.phpt | 57 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n"; 59 ($r === FALSE) ? print "OK_OUT_RANGE\n" : print "NG_OUT_RANGE\n"; 71 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n"; 73 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n"; 86 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n"; 88 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n"; 100 ($r === FALSE) ? print "OK_STR\n" : print "NG_STR\n"; 102 ($r === FALSE) ? print "OK_NEWLINE\n" : print "NG_NEWLINE\n"; 109 ($r === FALSE) ? print("OK_NULL\n") : print("NG_NULL\n"); 111 ($r === FALSE) ? print("OK_ARRAY\n") : print("NG_ARRAY\n"); [all …]
|
/PHP-5.4/ext/standard/tests/general_functions/ |
H A D | 003.phpt | 18 echo "\n"; 23 $n=0; 25 $n += test_me("equal" , 0, "12345", "12345"); 26 $n += test_me("1st empty" , 3, "", "xzy"); 27 $n += test_me("2nd empty" , 3, "xzy", ""); 28 $n += test_me("both empty" , 0, "", ""); 48 $n += test_me("bug #16473", 2, "a", "bc"); 49 $n += test_me("bug #16473", 2, "xa", "xbc"); 50 $n += test_me("bug #16473", 2, "xax", "xbcx"); 51 $n += test_me("bug #16473", 2, "ax", "bcx"); [all …]
|
/PHP-5.4/ext/standard/tests/strings/ |
H A D | crc32_variation4.phpt | 20 echo "*** Testing crc32() : with different heredoc strings ***\n"; 27 \n 38 hello\tworld\nhello\nworld\n 66 /n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n 84 echo "\n-- Iteration $count --\n";
|
H A D | crc32_variation2.phpt | 20 echo "*** Testing crc32() : with different strings in single quotes ***\n"; 44 '\nhello world\n', 45 '\n\thelloworld', 46 'hel\tlo\n world', 61 /n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n' 68 echo "\n-- Iteration $count --\n";
|
H A D | substr_replace.phpt | 8 echo "\n"; 13 echo "\n"; 18 echo "\n"; 23 echo "\n"; 28 echo "\n"; 29 echo "\n"; 30 echo "\n"; 39 echo "\n"; 42 echo "\n"; 44 echo "\n"; [all …]
|
H A D | crc32_variation3.phpt | 20 echo "*** Testing crc32() : with different strings in double quotes ***\n"; 46 "\nhello world\n", 47 "\n\thelloworld", 48 "hel\tlo\n world", 63 /n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n/n" 70 echo "\n-- Iteration $count --\n";
|
H A D | printf_64bit.phpt | 53 echo "\n\n*** Output for float type ***\n"; 72 echo "\n\n*** Output for integer type ***\n"; 90 echo "\n\n*** Output for binary type ***\n"; 102 echo "\n\n*** Output for char type ***\n"; 113 echo "\n\n*** Output for scientific type ***\n"; 124 echo "\n\n*** Output for unsigned integer type ***\n"; 135 echo "\n\n*** Output for octal type ***\n"; 146 echo "\n\n*** Output for hexadecimal type ***\n"; 157 echo "\n\n*** Output for string type ***\n"; 176 echo "\n\n*** Output for '%g' type ***\n"; [all …]
|
H A D | printf.phpt | 53 echo "\n\n*** Output for float type ***\n"; 72 echo "\n\n*** Output for integer type ***\n"; 90 echo "\n\n*** Output for binary type ***\n"; 102 echo "\n\n*** Output for char type ***\n"; 113 echo "\n\n*** Output for scientific type ***\n"; 124 echo "\n\n*** Output for unsigned integer type ***\n"; 135 echo "\n\n*** Output for octal type ***\n"; 146 echo "\n\n*** Output for hexadecimal type ***\n"; 157 echo "\n\n*** Output for string type ***\n"; 176 echo "\n\n*** Output for '%g' type ***\n"; [all …]
|
H A D | levenshtein.phpt | 22 echo "\n"; 27 $n=0; 29 $n += test_me("equal" , 0, "12345", "12345"); 30 $n += test_me("1st empty" , 3, "", "xzy"); 31 $n += test_me("2nd empty" , 3, "xzy", ""); 32 $n += test_me("both empty" , 0, "", ""); 52 $n += test_me("bug #16473", 2, "a", "bc"); 53 $n += test_me("bug #16473", 2, "xa", "xbc"); 54 $n += test_me("bug #16473", 2, "xax", "xbcx"); 55 $n += test_me("bug #16473", 2, "ax", "bcx"); [all …]
|
H A D | bug26973.phpt | 6 printf("%+05d\n", 200); 7 printf("%+05d\n", -200); 8 printf("%+05f\n", 200); 9 printf("%+05f\n", -200); 10 printf("%+05u\n", 200); 11 printf("%+05u\n", -200); 12 echo "---\n"; 13 printf("%05d\n", 200); 14 printf("%05d\n", -200); 15 printf("%05f\n", 200); [all …]
|
H A D | nl2br.phpt | 8 var_dump(nl2br("\r\n")); 9 var_dump(nl2br("\n")); 11 var_dump(nl2br("\n\r")); 13 var_dump(nl2br("\n\r\r\n\r\r\r\r")); 14 var_dump(nl2br("\n\r\n\n\r\n\r\r\n\r\n")); 15 var_dump(nl2br("\n\r\n\n\n\n\r\r\r\r\n\r"));
|
H A D | money_format_basic1.phpt | 29 echo gettype(money_format('%14#8.2n', $value))."\n"; 30 echo gettype(money_format('%14#8.2n', $negative_value))."\n"; 34 echo gettype(money_format('%(14#8.2n', $value))."\n"; 35 echo gettype(money_format('%(14#8.2n', $negative_value))."\n"; 39 echo gettype(money_format('%=014#8.2n', $value))."\n"; 40 echo gettype(money_format('%=014#8.2n', $negative_value))."\n"; 44 echo gettype(money_format('%=*14#8.2n', $value))."\n"; 45 echo gettype(money_format('%=*14#8.2n', $negative_value))."\n"; 49 echo gettype(money_format('%=*^14#8.2n', $value))."\n"; 50 echo gettype(money_format('%=*^14#8.2n', $negative_value))."\n"; [all …]
|
/PHP-5.4/ext/gmp/tests/ |
H A D | 039.phpt | 8 $n = gmp_init(0); 14 $n = gmp_init(-1); 18 $n = gmp_init("1000000"); 20 gmp_setbit($n, 1); 22 var_dump(gmp_strval($n)); 24 gmp_setbit($n, 5); 26 var_dump(gmp_strval($n)); 30 gmp_setbit($n, 5); 32 var_dump(gmp_strval($n)); 34 gmp_clrbit($n, 5); [all …]
|
H A D | 034.phpt | 8 $n = gmp_init(0); 9 gmp_clrbit($n, 0); 12 $n = gmp_init(-1); 13 gmp_clrbit($n, -1); 17 gmp_clrbit($n, -1); 21 gmp_clrbit($n, 3); 25 gmp_clrbit($n, 3); 26 gmp_clrbit($n, 5); 30 $n = array(); 33 gmp_clrbit($n); [all …]
|
H A D | gmp_nextprime.phpt | 9 $n = gmp_nextprime(-1); 10 var_dump(gmp_strval($n)); 11 $n = gmp_nextprime(0); 12 var_dump(gmp_strval($n)); 13 $n = gmp_nextprime(-1000); 14 var_dump(gmp_strval($n)); 15 $n = gmp_nextprime(1000); 16 var_dump(gmp_strval($n)); 18 var_dump(gmp_strval($n)); 21 $n = gmp_nextprime(""); [all …]
|
/PHP-5.4/Zend/ |
H A D | micro_bench.php | 6 function simpleucall($n) { argument 7 for ($i = 0; $i < $n; $i++) 11 function simpleudcall($n) { argument 12 for ($i = 0; $i < $n; $i++) 19 function simpleicall($n) { argument 62 function read_prop($n) { argument 119 function call($n) { argument 205 function issetor($n) { argument 212 function issetor2($n) { argument 219 function ternary($n) { argument [all …]
|
/PHP-5.4/ext/standard/tests/math/ |
H A D | bug25694.phpt | 7 echo "round 0.045 = " . round(0.045, 2) . "\n"; 8 echo "number format 0.045 = " . number_format(0.045, 2) . "\n\n"; 9 echo "round 0.055 = " . round(0.055, 2) . "\n"; 10 echo "number format 0.055 = " . number_format(0.055, 2) . "\n\n"; 11 echo "round 5.045 = " . round(5.045, 2) . "\n"; 12 echo "number format 5.045 = " . number_format(5.045, 2) . "\n\n"; 13 echo "round 5.055 = " . round(5.055, 2) . "\n"; 14 echo "number format 5.055 = " . number_format(5.055, 2) . "\n\n"; 15 echo "round 3.025 = " . round(3.025, 2) . "\n"; 16 echo "number format 3.025 = " . number_format(3.025, 2) . "\n\n"; [all …]
|
/PHP-5.4/tests/strings/ |
H A D | 002.phpt | 9 echo "\n"; 13 printf("printf test 2:%d\n", 42); 14 printf("printf test 3:%f\n", 10.0/3); 15 printf("printf test 4:%.10f\n", 10.0/3); 16 printf("printf test 5:%-10.2f\n", 2.5); 18 printf("printf test 7:%010.2f\n", 2.5); 26 printf("printf test 13:%5d\n", -12); 27 printf("printf test 14:%c\n", 64); 28 printf("printf test 15:%b\n", 170); 29 printf("printf test 16:%x\n", 170); [all …]
|
/PHP-5.4/Zend/tests/ |
H A D | object_handlers.phpt | 41 echo $y,"\n"; 43 echo $y,"\n"; 45 echo $y,"\n"; 47 echo $y,"\n"; 49 echo $y,"\n"; 51 echo $y,"\n"; 53 echo $y,"\n"; 55 echo $y,"\n"; 59 echo $y,"\n"; 61 echo $y,"\n"; [all …]
|