Home
last modified time | relevance | path

Searched refs:char (Results 1 – 25 of 238) sorted by relevance

12345678910

/PHP-8.3/ext/ffi/tests/
H A D022.phpt22 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 Dgh7867.phpt9 $value = FFI::cdef()->new('char[26]');
12 $slice = FFI::cdef()->new('char[4]');
16 var_dump($value + 0, $slice, FFI::cdef()->cast('char[4]', $value));
21 var_dump($value + 4, $slice, FFI::cdef()->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 D002.phpt97 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 D029.phpt10 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 D100.phpt21 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 D101.phpt21 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]");
H A Dbug_gh9090.phpt12 void (*bug_gh9090_void_int_char_ptr)(int, char *);
13 void (*bug_gh9090_void_int_char_var_ptr)(int, char *, ...);
14 void (*bug_gh9090_void_char_int_ptr)(char *, int);
15 int (*bug_gh9090_int_int_char_ptr)(int, char *);
18 void bug_gh9090_void_int_char(int i, char *s);
19 void bug_gh9090_void_int_char_var(int i, char *fmt, ...);
H A Daddr_in_lval.phpt9 $f = FFI::cdef("typedef struct { char *bar; } other;");
16 $data = $f->new("char[2]");
18 FFI::addr($container->getBar())[0] = $f->cast("char*", $data); // directly write it
26 object(FFI\CData:char*)#6 (1) {
/PHP-8.3/ext/standard/tests/strings/
H A Dvprintf_variation9.phpt2 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 Dvprintf_variation10.phpt2 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 Dsprintf_variation27.phpt2 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 Dchunk_split_variation5.phpt18 $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 Dfprintf_variation_004.phpt13 /* char type variations */
15 foreach( $char_variation as $char ) {
17 fprintf( $fp,"%c", $char );
/PHP-8.3/ext/opcache/tests/match/
H A D003.phpt13 function test($char) {
14 return match ($char) {
25 foreach (range(0, 10) as $char) {
26 var_dump(test($char));
40 0005 FE_FETCH_R V1 CV0($char) 0013
43 0008 SEND_VAR CV0($char) 1
57 0000 CV0($char) = RECV 1
58 0001 MATCH CV0($char) 1: 0002, 2: 0003, 3: 0003, 4: 0004, 5: 0005, 6: 0005, 7: 0006, 8: 0007, 9: 00…
H A D001.phpt13 function test($char) {
14 return match ($char) {
24 foreach (range('a', 'i') 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) "a": 0003, "b": 0004, "c": 0004, "d": 0005, "e": 0006, "f": 0006, "g": 0007, …
58 0002 MATCH_ERROR CV0($char)
/PHP-8.3/ext/zlib/tests/
H A Ddeflate_init_reuse.phpt8 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.3/ext/standard/tests/math/
H A Dbug30695.phpt14 $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.3/ext/phar/
H A Dphar_path_check.re21 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.3/ext/standard/tests/url/
H A Dparse_url_basic_008.phpt59 --> 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.3/ext/mbstring/tests/
H A Dencoding_tests.inc42 if ($char == PHP_INT_MAX) {
45 $char = "";
54 if ($char <= 0xFF)
55 $char = chr($char); // hex codes must not have leading zero bytes
56 else if ($char <= 0xFFFF)
57 $char = pack('n', $char);
58 else if ($char <= 0xFFFFFF)
59 $char = chr($char >> 16) . pack('n', $char & 0xFFFF);
61 $char = pack('N', $char);
63 $from[$char] = $codepoint;
[all …]
/PHP-8.3/ext/standard/tests/file/
H A Dfiletype_variation2.phpt16 echo "-- Checking for char --\n";
20 -- Checking for char --
21 char
/PHP-8.3/ext/ffi/
H A Dffi.g67 static void yy_error_str(const char *msg, const char *str);
77 {const char *name;}
177 {const char *name;}
183 "char"
330 {const char *name;}
463 {const char *name;}
501 {const char *name;}
537 {const char *name;}
711 {const char *name;}
809 | "char"
[all …]
/PHP-8.3/ext/json/
H A Djson_scanner.re65 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.3/ext/standard/
H A Durl_scanner_ex.re51 char *key;
52 char *tmp;
78 char *val;
82 char *q;
116 char *key;
117 char *tmp;
134 char *q;
297 char f = 0;
355 char *colon;
499 char *xp;
[all …]
/PHP-8.3/ext/fileinfo/
H A Dlibmagic.patch17 private char *mkdbname(struct magic_set *, const char *, int);
105 - char *p;
115 - char *b = RCAST(char *, map->magic[i]);
1471 protected const char *file_fmtnum(char *, size_t, const char *, int);
1495 protected char *file_strtrim(char *);
1522 -int vasprintf(char **, const char *, va_list);
1525 -int asprintf(char **, const char *, ...);
1533 size_t strlcpy(char *, const char *, size_t);
1537 size_t strlcat(char *, const char *, size_t);
1542 char *asctime_r(const struct tm *, char *);
[all …]

Completed in 29 milliseconds

12345678910