/PHP-8.1/ext/ffi/tests/ |
H A D | 022.phpt | 22 test_size(3, "struct {char a; uint8_t b; uint8_t c;}"); 23 test_size(8, "struct {char a; uint32_t b;}"); 24 test_size(8, "struct {uint32_t a; char b;}"); 25 test_size(5, "struct __attribute__((packed)) {char a; uint32_t b;}"); 26 test_size(5, "struct __attribute__((packed)) {uint32_t a; char b;}"); 29 test_size(6, "struct {char a; uint8_t b; uint8_t c;}[2]"); 30 test_size(16, "struct {char a; uint32_t b;}[2]"); 31 test_size(16, "struct {uint32_t a; char b;}[2]"); 36 test_align(1, "union {char a; uint8_t b; uint8_t c;}"); 37 test_align(4, "union {char a; uint32_t b;}"); [all …]
|
H A D | gh7867.phpt | 9 $value = FFI::new('char[26]'); 12 $slice = FFI::new('char[4]'); 16 var_dump($value + 0, $slice, FFI::cast('char[4]', $value)); 21 var_dump($value + 4, $slice, FFI::cast('char[4]', $value + 4)); 26 object(FFI\CData:char*)#%d (1) { 30 object(FFI\CData:char[4])#%d (4) { 40 object(FFI\CData:char[4])#%d (4) { 52 object(FFI\CData:char*)#%d (1) { 56 object(FFI\CData:char[4])#%d (4) { 66 object(FFI\CData:char[4])#%d (4) {
|
H A D | 002.phpt | 97 typedef char type57[]; 98 typedef char type58[const]; 99 typedef char type59[const volatile]; 100 typedef char type60[10]; 101 typedef char type61[const 10]; 102 typedef char type62[static 10]; 105 typedef char type65[]; 106 typedef char type66[const volatile]; 107 typedef char type67[10][10]; 118 static void f11(const char *name); [all …]
|
H A D | 029.phpt | 10 typedef char t1; 11 typedef char _Alignas(int) t2; 13 var_dump(FFI::sizeof($ffi->new("struct {char a; t1 b;}"))); 14 var_dump(FFI::sizeof($ffi->new("struct {char a; t2 b;}")));
|
H A D | 100.phpt | 21 const char *get_zend_version(void); 22 //char *get_zend_version(void); 23 extern size_t (*zend_printf)(const char *format, ...); 25 unsigned long $fastcall zend_hash_func(const char *str, size_t len); 27 void $fastcall zend_str_tolower(char *str, size_t length); 37 $str = $zend->new("char[16]");
|
H A D | 101.phpt | 21 const char *get_zend_version(void); 22 //char *get_zend_version(void); 23 extern size_t (*zend_printf)(const char *format, ...); 25 unsigned long $fastcall zend_hash_func(const char *str, size_t len); 27 void $fastcall zend_str_tolower(char *str, size_t length); 39 $str = $zend->new("char[16]");
|
/PHP-8.1/ext/standard/tests/strings/ |
H A D | vprintf_variation9.phpt | 2 Test vprintf() function : usage variations - char formats with char values 7 * Test vprintf() for char formats with an array of chars passed to the function 10 echo "*** Testing vprintf() : char formats with char values ***\n"; 13 // defining array of char formats 25 // Arrays of char values for the format defined in $format. 26 // Each sub array contains char values which correspond to each format string in $format 39 // looping to test vprintf() with different char formats from the above $format array 40 // and with char values from the above $args_array array 52 *** Testing vprintf() : char formats with char values ***
|
H A D | vprintf_variation10.phpt | 2 Test vprintf() function : usage variations - char formats with non-char values 11 * Test vprintf() when different char formats and non-char values are passed to 15 echo "*** Testing vprintf() : char formats and non-char values ***\n"; 17 // defining an array of various char formats 25 // Arrays of non char values for the format defined in $format. 26 // Each sub array contains non char values which correspond to each format in $format 66 // looping to test vprintf() with different char formats from the above $format array 67 // and with non-char values from the above $args_array array 79 *** Testing vprintf() : char formats and non-char values ***
|
H A D | sprintf_variation27.phpt | 2 Test sprintf() function : usage variations - char formats with char values 5 echo "*** Testing sprintf() : char formats with char values ***\n"; 7 // array of char values 10 // array of char formats 29 *** Testing sprintf() : char formats with char values ***
|
H A D | chunk_split_variation5.phpt | 18 $str = "This contains\tand special char & numbers 123.\nIt also checks for \0 char"; 55 string(73) "This contains and special char & numbers 123. 56 It also checks for %0 char||" 58 string(77) "This contains and special ||char & numbers 123. 59 It als||o checks for %0 char||" 61 string(73) "This contains and special char & numbers 123. 62 It also checks for %0 char||"
|
H A D | fprintf_variation_004.phpt | 13 /* char type variations */ 15 foreach( $char_variation as $char ) { 17 fprintf( $fp,"%c", $char );
|
H A D | chunk_split_variation8.phpt | 19 This's heredoc string with \t and \n white space char. 20 It has _speci@l ch@r$ 2222 !!!Now \k as escape char to test 66 white space char. 67 It has _speci@l ch@r$ 2222 !!!Now \k as escape char to test 71 white space char.::: 72 It has _speci@l ch@r$ 222:::2 !!!Now \k as escape char::: to test 76 white space char. 77 It has _speci@l ch@r$ 2222 !!!Now \k as escape char to test
|
H A D | vsprintf_basic5.phpt | 2 Test vsprintf() function : basic functionality - char format 5 echo "*** Testing vsprintf() : basic functionality - using char format ***\n"; 23 *** Testing vsprintf() : basic functionality - using char format ***
|
/PHP-8.1/ext/opcache/tests/match/ |
H A D | 003.phpt | 12 function test($char) { 13 return match ($char) { 24 foreach (range(0, 10) as $char) { 25 var_dump(test($char)); 39 0005 FE_FETCH_R V1 CV0($char) 0013 42 0008 SEND_VAR CV0($char) 1 56 0000 CV0($char) = RECV 1 57 0001 MATCH CV0($char) 1: 0002, 2: 0003, 3: 0003, 4: 0004, 5: 0005, 6: 0005, 7: 0006, 8: 0007, 9: 00…
|
H A D | 001.phpt | 12 function test($char) { 13 return match ($char) { 23 foreach (range('a', 'i') as $char) { 24 var_dump(test($char)); 38 0005 FE_FETCH_R V1 CV0($char) 0013 41 0008 SEND_VAR CV0($char) 1 55 0000 CV0($char) = RECV 1 56 0001 MATCH CV0($char) "a": 0003, "b": 0004, "c": 0004, "d": 0005, "e": 0006, "f": 0006, "g": 0007, … 57 0002 MATCH_ERROR CV0($char)
|
/PHP-8.1/ext/zlib/tests/ |
H A D | deflate_init_reuse.phpt | 8 foreach (range("a", "z") as $char) { 9 deflate_add($resource, $char); 15 foreach (range("a", "z") as $char) { 16 $uncompressed .= $char; 17 $compressed .= deflate_add($resource, $char, ZLIB_NO_FLUSH);
|
/PHP-8.1/ext/mbstring/tests/ |
H A D | encoding_tests.inc | 22 if ($char == PHP_INT_MAX) { 25 $char = ""; 34 if ($char <= 0xFF) 35 $char = chr($char); // hex codes must not have leading zero bytes 36 else if ($char <= 0xFFFF) 37 $char = pack('n', $char); 38 else if ($char <= 0xFFFFFF) 39 $char = chr($char >> 16) . pack('n', $char & 0xFFFF); 41 $char = pack('N', $char); 43 $from[$char] = $codepoint; [all …]
|
/PHP-8.1/ext/fileinfo/ |
H A D | libmagic.patch | 185 - if (CAST(char *, b) >= CAST(char *, p) && 1288 char * 1625 protected char *file_copystr(char *, size_t, size_t, const char *); 1660 protected char *file_strtrim(char *); 1703 -int vasprintf(char **, const char *, va_list); 1706 -int asprintf(char **, const char *, ...); 1714 size_t strlcpy(char *, const char *, size_t); 1718 size_t strlcat(char *, const char *, size_t); 1723 char *asctime_r(const struct tm *, char *); 1732 -const char *fmtcheck(const char *, const char *) [all …]
|
/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)) . 24 $char = ( chr(0xe0 | (($char_code >> 12) & 0x0f)) . 29 $char = ( chr(0xf0 | (($char_code >> 18) & 0x07)) . 35 $char = ( chr(0xf8 | (($char_code >> 24) & 0x03)) . 42 $char = ( chr(0xfc | (($char_code >> 30) & 0x01)) . 49 return $char;
|
/PHP-8.1/ext/phar/ |
H A D | phar_path_check.re | 21 phar_path_check_result phar_path_check(char **s, size_t *len, const char **error) 23 const unsigned char *p = (const unsigned char*)*s; 24 const unsigned char *m; 34 #define YYCTYPE unsigned char 84 *len = (p - (const unsigned char*)*s) -1; 96 if ((p - (const unsigned char*)*s) - 1 != *len)
|
/PHP-8.1/ext/standard/tests/url/ |
H A D | parse_url_basic_008.phpt | 59 --> http://www.php.net:80/index.php?test=1&test2=char&test3=mixesCI : string(31) "test=1&test2=ch… 60 --> www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(31) "test=… 61 …ret@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(31) "test… 62 …ecret:@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(31) "test… 63 …out@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(31) "test… 64 …ideout@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(31) "test… 65 …out@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(31) "test… 66 …out@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(31) "test…
|
/PHP-8.1/ext/standard/tests/file/ |
H A D | filetype_variation2.phpt | 16 echo "-- Checking for char --\n"; 20 -- Checking for char -- 21 char
|
/PHP-8.1/ext/json/ |
H A D | json_scanner.re | 65 static int php_json_hex_to_int(char code) 302 *(s->pstr++) = (char) utf16; 309 *(s->pstr++) = (char) (0xc0 | (utf16 >> 6)); 310 *(s->pstr++) = (char) (0x80 | (utf16 & 0x3f)); 317 *(s->pstr++) = (char) (0xe0 | (utf16 >> 12)); 319 *(s->pstr++) = (char) (0x80 | (utf16 & 0x3f)); 329 *(s->pstr++) = (char) (0xf0 | (utf32 >> 18)); 332 *(s->pstr++) = (char) (0x80 | (utf32 & 0x3f)); 337 char esc; 377 *(s->pstr++) = (char) (0xe0 | (0xfffd >> 12)); [all …]
|
/PHP-8.1/ext/standard/ |
H A D | url_scanner_ex.re | 51 char *key; 52 char *tmp; 78 char *val; 82 char *q; 116 char *key; 117 char *tmp; 134 char *q; 295 char f = 0; 353 char *colon; 497 char *xp; [all …]
|
/PHP-8.1/ext/ffi/ |
H A D | ffi.g | 76 {const char *name;} 173 {const char *name;} 179 "char" 235 ( {const char *name;} 298 ( {const char *name;} 326 {const char *name;} 459 {const char *name;} 497 {const char *name;} 533 {const char *name;} 707 {const char *name;} [all …]
|