/PHP-8.1/ext/standard/tests/strings/ |
H A D | str_replace_variation2.phpt | 15 ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"; 51 chr(128).chr(234).chr(65).chr(255).chr(256), 70 ?FOUND chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" 77 ?FOUND chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" 84 ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" 91 ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" 98 ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" 105 ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" 112 ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" 119 ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)" [all …]
|
H A D | strpos_variation1.phpt | 5 $string = chr(0).chr(128).chr(129).chr(234).chr(235).chr(254).chr(255); 8 echo bin2hex( chr(128) ) ." => "; 9 var_dump( strpos($string, chr(128)) ); 10 echo bin2hex( chr(255) ) ." => "; 11 var_dump( strpos($string, chr(255), 3) ); 12 echo bin2hex( chr(256) ) ." => "; 13 var_dump( strpos($string, chr(256)) );
|
H A D | strstr_variation1.phpt | 5 $string = chr(0).chr(128).chr(129).chr(234).chr(235).chr(254).chr(255); 8 echo bin2hex( chr(128) ) ." => "; 9 var_dump( bin2hex( strstr($string, chr(128) ) ) ); 10 echo bin2hex( chr(255) ) ." => "; 11 var_dump( bin2hex( strstr($string, chr(255) ) ) ); 12 echo bin2hex( chr(256) ) ." => "; 13 var_dump( bin2hex( strstr($string, chr(256) ) ) );
|
H A D | chr_basic.phpt | 2 Test chr() function : basic functionality 6 echo "*** Testing chr() : basic functionality ***\n"; 8 echo chr(72). chr(101) . chr(108) . chr(108). chr(111); // Hello 9 echo chr(10); // "\n" 14 *** Testing chr() : basic functionality ***
|
H A D | chr_error.phpt | 2 Test chr() function : error conditions 6 echo "*** Testing chr() : error conditions ***\n"; 8 echo "\n-- Testing chr() function with no arguments --\n"; 10 var_dump( chr() ); 15 echo "\n-- Testing chr() function with more than expected no. of arguments --\n"; 18 var_dump( chr(72, $extra_arg) ); 25 *** Testing chr() : error conditions *** 27 -- Testing chr() function with no arguments -- 28 chr() expects exactly 1 argument, 0 given 30 -- Testing chr() function with more than expected no. of arguments -- [all …]
|
H A D | str_repeat_variation1.phpt | 7 $str = chr(0).chr(128).chr(129).chr(234).chr(235).chr(254).chr(255); 9 $withCodePoint = str_repeat($str, chr(51)); // ASCII value of '3' given
|
H A D | substr_count_variation_002.phpt | 8 $str = chr(128).chr(129).chr(128).chr(256).chr(255).chr(254).chr(255); 9 var_dump(substr_count($str, chr(128))); 10 var_dump(substr_count($str, chr(255))); 11 var_dump(substr_count($str, chr(256)));
|
H A D | substr_count_variation_001.phpt | 17 $str = chr(128).chr(129).chr(128).chr(256).chr(255).chr(254).chr(255); 18 var_dump(substr_count($str, chr(128))); 19 var_dump(substr_count($str, chr(255))); 20 var_dump(substr_count($str, chr(256)));
|
H A D | htmlentities-utf-3.phpt | 47 $s = chr($b1).chr($b2); 56 $s = chr($b1).chr($b2)."\x80"; 59 $s = chr($b1).chr($b2)."\xBF"; 67 $s = chr($b1).chr($b2)."\x80\x80"; 70 $s = chr($b1).chr($b2)."\xBF\x80"; 73 $s = chr($b1).chr($b2)."\x80\xBF"; 76 $s = chr($b1).chr($b2)."\xBF\xBF";
|
H A D | strrpos_variation12.phpt | 11 "Hello".chr(0)."World", 12 chr(0)."Hello World", 13 "Hello World".chr(0), 14 chr(0).chr(0).chr(0),
|
H A D | strrchr_variation12.phpt | 9 "Hello".chr(0)."World", 10 chr(0)."Hello World", 11 "Hello World".chr(0), 12 chr(0).chr(0).chr(0),
|
H A D | stripos_variation12.phpt | 11 "Hello".chr(0)."World", 12 chr(0)."Hello World", 13 "Hello World".chr(0), 14 chr(0).chr(0).chr(0),
|
H A D | bug39032.phpt | 6 var_dump(strcspn(chr(0),"x")); 7 var_dump(strcspn(chr(0),"")); 8 var_dump(strcspn(chr(0),"qweqwe")); 9 var_dump(strcspn(chr(1),"qweqwe"));
|
H A D | stripos_variation13.phpt | 13 "Hello".chr(0)."World", 14 chr(0)."Hello World", 15 "Hello World".chr(0), 16 chr(0).chr(0).chr(0),
|
H A D | explode.phpt | 10 echo var_export(explode("\1", "a". chr(1). "b". chr(0). "d" . chr(1) . "f" . chr(1). "1" . chr(1) .… 12 echo md5(var_export(explode("\1", "a". chr(1). "b". chr(0). "d" . chr(1) . "f" . chr(1). "1" . chr(…
|
/PHP-8.1/Zend/tests/ |
H A D | bug70124.phpt | 7 echo base_convert([array_search(chr(48),chr(48),chr(48),chr(48),chr(48),$f("test"))],chr(48)); 16 echo base_convert([array_search(chr(48),chr(48),chr(48),chr(48),chr(48),a::y("test"))],chr(48)); 24 … echo base_convert([array_search(chr(48),chr(48),chr(48),chr(48),chr(48),$a->y("test"))],chr(48)); 30 … echo base_convert([array_search(chr(48),chr(48),chr(48),chr(48),chr(48),\bar\y("test"))],chr(48)); 36 echo base_convert([array_search(chr(48),chr(48),chr(48),chr(48),chr(48),y("test"))],chr(48));
|
/PHP-8.1/ext/standard/tests/math/ |
H A D | bug30695.phpt | 14 $char = chr( 0 ); 17 $char = chr( $char_code ); 20 $char = ( chr(0xc0 | (($char_code >> 6) & 0x1f)) . 21 chr(0x80 | ($char_code & 0x3f)) ); 24 $char = ( chr(0xe0 | (($char_code >> 12) & 0x0f)) . 25 chr(0x80 | (($char_code >> 6) & 0x3f)) . 26 chr(0x80 | ($char_code & 0x3f)) ); 31 chr(0x80 | (($char_code >> 6) & 0x3f)) . 32 chr(0x80 | ($char_code & 0x3f)) ); 39 chr(0x80 | ($char_code & 0x3f)) ); [all …]
|
/PHP-8.1/ext/pcre/tests/ |
H A D | request47456.phpt | 8 preg_match_all('/(?J)(?<chr>[ac])(?<num>\d)|(?<chr>[b])/', 'a1bc3', $m, PREG_SET_ORDER); 12 preg_match_all('/(?<chr>[ac])(?<num>\d)|(?<chr>[b])/J', 'a1bc3', $m, PREG_SET_ORDER); 21 ["chr"]=> 34 ["chr"]=> 49 ["chr"]=> 64 ["chr"]=> 77 ["chr"]=> 92 ["chr"]=>
|
/PHP-8.1/ext/standard/tests/network/ |
H A D | inet.phpt | 11 $packed = chr(127) . chr(0) . chr(0) . chr(1); 14 $packed = chr(255) . chr(255) . chr(255) . chr(0);
|
/PHP-8.1/ext/gd/tests/ |
H A D | createfromwbmp2.phpt | 19 fputs($fp, chr($c), 1); 24 fputs($fp, chr($c), 1); 26 fputs($fp, chr($c), 1); 27 fputs($fp, chr($c), 1); 28 fputs($fp, chr($c), 1); 30 fputs($fp, chr($c), 1); 34 fputs($fp, chr($c), 1); 38 fwrite($fp, chr($c), 1);
|
H A D | createfromwbmp2_extern.phpt | 19 fputs($fp, chr($c), 1); 24 fputs($fp, chr($c), 1); 26 fputs($fp, chr($c), 1); 27 fputs($fp, chr($c), 1); 28 fputs($fp, chr($c), 1); 30 fputs($fp, chr($c), 1); 34 fputs($fp, chr($c), 1); 38 fwrite($fp, chr($c), 1);
|
/PHP-8.1/ext/pcre/pcre2lib/ |
H A D | pcre2_auto_possess.c | 314 uint32_t chr; in get_chr_property_list() local 390 list[2] = chr; in get_chr_property_list() 398 list[2] = chr; in get_chr_property_list() 401 if (chr < 128 || (chr < 256 && !utf && !ucp)) in get_chr_property_list() 406 list[3] = (chr < 256) ? fcc[chr] : chr; in get_chr_property_list() 533 uint32_t chr; in compare_opcodes() local 997 switch(chr) in compare_opcodes() 1005 switch(chr) in compare_opcodes() 1014 switch(chr) in compare_opcodes() 1022 switch(chr) in compare_opcodes() [all …]
|
/PHP-8.1/ext/mbstring/tests/ |
H A D | iso2022jp_encoding.phpt | 64 testValid(chr($i), "\x00" . chr($i), 'JIS'); 65 …convertValidString("\x0F" . chr($i), "\x00" . chr($i), 'JIS', 'UTF-16BE', false); /* 0xF is 'Shift… 66 testValid("\x1B(B" . chr($i), "\x00" . chr($i), 'JIS'); 67 testValid(chr($i), "\x00" . chr($i), 'ISO-2022-JP'); 68 testValid("\x1B(B" . chr($i), "\x00" . chr($i), 'ISO-2022-JP'); 74 testInvalid(chr($i), "\x00%", 'JIS'); 89 $kana = chr(ord($jisx0201) - 128); 116 $testString = chr($i) . chr($j); 142 $testString = chr($i) . chr($j); 161 $escapeSequence = "\x1B" . chr($i) . chr($j); [all …]
|
H A D | iso2022kr_encoding.phpt | 44 testValid(chr($i), "\x00" . chr($i)); 45 testValid("\x0F" . chr($i), "\x00" . chr($i)); /* 0xF is 'Shift In' code */ 49 testInvalid(chr($i), "\x00%"); 50 testInvalid("\x0F" . chr($i), "\x00%"); 86 if (chr($i) != '$') 87 testInvalid("\x1B" . chr($i), "\x00%"); 88 if (chr($i) != ')') 89 testInvalid("\x1B$" . chr($i), "\x00%"); 90 if (chr($i) != 'C') 91 testInvalid("\x1B$)" . chr($i), "\x00%");
|
H A D | cp5022x_encoding.phpt | 77 $jisx0201Chars[chr($byte)] = pack('n', $codepoint); 131 testValid(chr($i), "\x00" . chr($i), 'CP50220'); 132 testValid(chr($i), "\x00" . chr($i), 'CP50221'); 133 testValid(chr($i), "\x00" . chr($i), 'CP50222'); 134 testValid("\x1B(B" . chr($i), "\x00" . chr($i), 'CP50220'); 135 testValid("\x1B(B" . chr($i), "\x00" . chr($i), 'CP50221'); 136 testValid("\x1B(B" . chr($i), "\x00" . chr($i), 'CP50222'); 137 testValid("\x0F" . chr($i), "\x00" . chr($i), 'CP50222', false); /* 0xF is 'Shift Out' code */ 164 $kana = chr(ord($jisx0201) - 128); 221 $testString = chr($i) . chr($j); [all …]
|