/PHP-8.0/Zend/ |
H A D | zend_map_ptr.h | 34 # define ZEND_MAP_PTR(ptr) \ argument 35 ptr ## __ptr 38 # define ZEND_MAP_PTR_GET(ptr) \ argument 39 (*(ZEND_MAP_PTR(ptr))) 44 ZEND_MAP_PTR(ptr) = (val); \ 52 base = (ptr); \ 55 # define ZEND_MAP_PTR(ptr) \ argument 56 ptr ## __ptr 65 # define ZEND_MAP_PTR_GET(ptr) \ argument 68 ((void**)(ZEND_MAP_PTR(ptr))))) [all …]
|
H A D | zend_alloc.h | 136 _efree(ptr); \ 140 efree_size(ptr, size) 145 efree(ptr) 147 efree_rel(ptr) 161 #define efree(ptr) _efree((ptr) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC) argument 195 #define pefree(ptr, persistent) ((persistent)?free(ptr):efree(ptr)) argument 198 free(ptr); \ 205 #define perealloc(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc((ptr)… argument 208 #define perealloc_recoverable(ptr, size, persistent) ((persistent)?realloc((ptr), (size)):erealloc_… argument 214 #define pefree_rel(ptr, persistent) ((persistent)?free(ptr):efree_rel(ptr)) argument [all …]
|
H A D | zend_arena.h | 29 char *ptr; member 56 char *ptr = arena->ptr; in zend_arena_alloc() local 61 arena->ptr = ptr + size; in zend_arena_alloc() 76 return (void*) ptr; in zend_arena_alloc() 96 return arena->ptr; in zend_arena_checkpoint() 116 if ((char*)ptr > (char*)arena && (char*)ptr <= arena->ptr) { in zend_arena_contains() 132 void **ptr; member 154 void **ptr; in zend_arena_destroy() local 155 for (ptr = arena->ptrs; ptr < arena->ptr; ptr++) { in zend_arena_destroy() 156 efree(*ptr); in zend_arena_destroy() [all …]
|
H A D | zend_alloc.c | 444 return ptr; in zend_mm_mmap_fixed() 460 return ptr; in zend_mm_mmap() 462 void *ptr; in zend_mm_mmap() 481 return ptr; in zend_mm_mmap() 698 ptr = (char*)ptr + offset; 1312 void *ptr; local 1677 list->ptr = ptr; 1695 if (list->ptr == ptr) { 1718 if (list->ptr == ptr) { 1735 if (list->ptr == ptr) { [all …]
|
H A D | zend_ptr_stack.c | 39 va_list ptr; in zend_ptr_stack_n_push() local 44 va_start(ptr, count); in zend_ptr_stack_n_push() 46 elem = va_arg(ptr, void *); in zend_ptr_stack_n_push() 51 va_end(ptr); in zend_ptr_stack_n_push() 57 va_list ptr; in zend_ptr_stack_n_pop() local 60 va_start(ptr, count); in zend_ptr_stack_n_pop() 62 elem = va_arg(ptr, void **); in zend_ptr_stack_n_pop() 67 va_end(ptr); in zend_ptr_stack_n_pop()
|
H A D | zend_highlight.c | 58 const unsigned char *ptr = (const unsigned char*)s, *end = ptr + len; in zend_html_puts() local 63 LANG_SCNG(output_filter)(&filtered, &filtered_len, ptr, len); in zend_html_puts() 64 ptr = filtered; in zend_html_puts() 68 while (ptr<end) { in zend_html_puts() 69 if (*ptr==' ') { in zend_html_puts() 71 zend_html_putc(*ptr); in zend_html_puts() 72 } while ((++ptr < end) && (*ptr==' ')); in zend_html_puts() 74 zend_html_putc(*ptr++); in zend_html_puts()
|
/PHP-8.0/ext/bcmath/libbcmath/src/ |
H A D | str2num.c | 53 ptr = str; in bc_str2num() 57 if ( (*ptr == '+') || (*ptr == '-')) ptr++; /* Sign */ in bc_str2num() 58 while (*ptr == '0') ptr++; /* Skip leading zeros. */ in bc_str2num() 59 while (*ptr >= '0' && *ptr <= '9') ptr++, digits++; /* digits */ in bc_str2num() 60 if (*ptr == '.') ptr++; /* decimal point */ in bc_str2num() 61 while (*ptr >= '0' && *ptr <= '9') ptr++, strscale++; /* digits */ in bc_str2num() 78 ptr = str; in bc_str2num() 79 if (*ptr == '-') in bc_str2num() 82 ptr++; in bc_str2num() 87 if (*ptr == '+') ptr++; in bc_str2num() [all …]
|
/PHP-8.0/ext/pcre/pcre2lib/ |
H A D | pcre2_newline.c | 85 if (utf) { GETCHAR(c, ptr); } else c = *ptr; in PRIV() 88 c = *ptr; in PRIV() 98 *lenptr = (ptr < endptr - 1 && ptr[1] == CHAR_LF)? 2 : 1; in PRIV() 119 *lenptr = (ptr < endptr - 1 && ptr[1] == CHAR_LF)? 2 : 1; in PRIV() 173 ptr--; in PRIV() 178 BACKCHAR(ptr); in PRIV() 179 GETCHAR(c, ptr); in PRIV() 181 else c = *ptr; in PRIV() 184 c = *ptr; in PRIV() 190 *lenptr = (ptr > startptr && ptr[-1] == CHAR_CR)? 2 : 1; in PRIV() [all …]
|
H A D | pcre2_substitute.c | 87 for (; ptr < ptrend; ptr++) in find_text_end() 91 if (ptr[0] == CHAR_BACKSLASH && ptr < ptrend - 1 && ptr[1] == CHAR_E) in find_text_end() 94 ptr += 1; in find_text_end() 108 if (ptr < ptrend - 1 && ptr[1] == CHAR_LEFT_CURLY_BRACKET) in find_text_end() 111 ptr += 1; in find_text_end() 121 if (ptr < ptrend - 1) switch (ptr[1]) in find_text_end() 127 ptr += 1; in find_text_end() 161 *ptrptr = ptr; in find_text_end() 503 if (ptr[0] == CHAR_BACKSLASH && ptr < repend - 1 && ptr[1] == CHAR_E) in pcre2_substitute() 568 while (++ptr < repend && *ptr >= CHAR_0 && *ptr <= CHAR_9); in pcre2_substitute() [all …]
|
H A D | pcre2_compile.c | 1338 while (ptr < ptrend && IS_DIGIT(*ptr)) in read_number() 1812 while(i++ < 2 && ptr < ptrend && *ptr >= CHAR_0 && *ptr <= CHAR_7) in PRIV() 1834 while (ptr < ptrend && *ptr >= CHAR_0 && *ptr <= CHAR_7) in PRIV() 1852 while (ptr < ptrend && *ptr >= CHAR_0 && *ptr <= CHAR_7) ptr++; in PRIV() 1925 while (ptr < ptrend && XDIGIT(*ptr) != 0xff) ptr++; in PRIV() 2192 for (; ptrend - ptr >= 2; ptr++) in check_posix_syntax() 3253 if (ptr < ptrend && (*ptr == CHAR_COLON || *ptr == CHAR_DOT || in parse_regex() 3272 if (ptr < ptrend && *ptr == CHAR_E) ptr++; in parse_regex() 3901 if (*ptr == CHAR_MINUS && ptrend - ptr > 1 && IS_DIGIT(ptr[1])) in parse_regex() 4195 if (*ptr == delimiter && (++ptr >= ptrend || *ptr != delimiter)) in parse_regex() [all …]
|
/PHP-8.0/ext/xmlwriter/ |
H A D | php_xmlwriter.c | 39 ptr = obj->ptr; \ 219 if (ptr) { in ZEND_GET_MODULE() 240 if (ptr) { in php_xmlwriter_end() 263 if (ptr) { in PHP_FUNCTION() 312 if (ptr) { in PHP_FUNCTION() 340 if (ptr) { in PHP_FUNCTION() 368 if (ptr) { in PHP_FUNCTION() 922 ze_obj->ptr = ptr; in PHP_FUNCTION() 927 ze_obj->ptr = ptr; in PHP_FUNCTION() 971 ze_obj->ptr = ptr; in PHP_FUNCTION() [all …]
|
/PHP-8.0/ext/mysqlnd/ |
H A D | mysqlnd_alloc.h | 34 void (*m_efree)(void *ptr MYSQLND_MEM_D); 39 void (*m_free)(void *ptr MYSQLND_MEM_D); 54 #define mnd_erealloc(ptr, new_size) mysqlnd_allocator.m_erealloc((ptr), (new_size) MYSQLND_MEM_C) argument 55 #define mnd_perealloc(ptr, new_size, p) mysqlnd_allocator.m_perealloc((ptr), (new_size), (p) MYSQLN… argument 56 #define mnd_efree(ptr) mysqlnd_allocator.m_efree((ptr) MYSQLND_MEM_C) argument 57 #define mnd_pefree(ptr, pers) mysqlnd_allocator.m_pefree((ptr), (pers) MYSQLND_MEM_C) argument 60 #define mnd_realloc(ptr, new_size) mysqlnd_allocator.m_realloc((ptr), (new_size) MYSQLND_MEM_C) argument 61 #define mnd_free(ptr) mysqlnd_allocator.m_free((ptr) MYSQLND_MEM_C) argument 62 #define mnd_pememdup(ptr, size, pers) mysqlnd_allocator.m_pememdup((ptr), (size), (pers) MYSQLND_ME… argument 63 #define mnd_pestrndup(ptr, size, pers) mysqlnd_allocator.m_pestrndup((ptr), (size), (pers) MYSQLND_… argument [all …]
|
H A D | mysqlnd_block_alloc.c | 32 if (ptr == pool->last) { in mysqlnd_mempool_free_chunk() 37 pool->arena->ptr = (char*)ptr; in mysqlnd_mempool_free_chunk() 54 if (ptr == pool->last in mysqlnd_mempool_resize_chunk() 60 pool->arena->ptr = (char*)ptr + ZEND_MM_ALIGNED_SIZE(size); in mysqlnd_mempool_resize_chunk() 61 DBG_RETURN(ptr); in mysqlnd_mempool_resize_chunk() 66 memcpy(new_ptr, ptr, MIN(old_size, size)); in mysqlnd_mempool_resize_chunk() 67 pool->last = ptr = new_ptr; in mysqlnd_mempool_resize_chunk() 68 DBG_RETURN(ptr); in mysqlnd_mempool_resize_chunk() 77 void *ptr = NULL; in mysqlnd_mempool_get_chunk() local 81 pool->last = ptr; in mysqlnd_mempool_get_chunk() [all …]
|
H A D | mysqlnd_alloc.c | 321 if (ptr) { in _mysqlnd_efree() 326 efree_rel(REAL_PTR(ptr)); in _mysqlnd_efree() 352 if (ptr) { in _mysqlnd_pefree() 494 if (ptr) { in _mysqlnd_free() 499 free(REAL_PTR(ptr)); in _mysqlnd_free() 528 memcpy(dest, ptr, length); in _mysqlnd_pememdup() 559 char * p = (char *) ptr; in _mysqlnd_pestrndup() 587 const char * p = ptr; in _mysqlnd_pestrdup() 701 efree_rel(ptr); in mysqlnd_zend_mm_efree() 741 free(ptr); in mysqlnd_zend_mm_free() [all …]
|
/PHP-8.0/ext/gd/libgd/ |
H A D | gdhelpers.h | 17 #define gdRealloc(ptr, size) erealloc(ptr, size) argument 18 #define gdEstrdup(ptr) estrdup(ptr) argument 19 #define gdFree(ptr) efree(ptr) argument 20 #define gdPMalloc(ptr) pemalloc(ptr, 1) argument 21 #define gdPFree(ptr) pefree(ptr, 1) argument 22 #define gdPEstrdup(ptr) pestrdup(ptr, 1) argument
|
/PHP-8.0/ext/sysvshm/ |
H A D | sysvshm.c | 65 if (sysvshm->ptr) { in sysvshm_free_obj() 203 if (!shm_list_ptr->ptr) { in PHP_FUNCTION() 209 shm_list_ptr->ptr = NULL; in PHP_FUNCTION() 226 if (!shm_list_ptr->ptr) { in PHP_FUNCTION() 387 shm_var = (sysvshm_chunk *) ((char *) ptr + ptr->end); in php_put_shm_data() 392 ptr->end += total_size; in php_put_shm_data() 393 ptr->free -= total_size; in php_put_shm_data() 404 ZEND_ASSERT(ptr); in php_check_shm_data() 406 pos = ptr->start; in php_check_shm_data() 409 if (pos >= ptr->end) { in php_check_shm_data() [all …]
|
/PHP-8.0/ext/date/lib/ |
H A D | parse_date.re | 496 while ((**ptr != '.') && (**ptr != ':') && ((**ptr < '0') || (**ptr > '9'))) { 503 while ((**ptr == '.') || (**ptr == ':') || ((**ptr >= '0') && (**ptr <= '9'))) { 519 while (((**ptr < '0') || (**ptr > '9')) && (**ptr != '+') && (**ptr != '-')) { 544 while ((**ptr >= 'A' && **ptr <= 'Z') || (**ptr >= 'a' && **ptr <= 'z')) { 564 while (**ptr == ' ' || **ptr == '\t' || **ptr == '-' || **ptr == '/') { 577 while ((**ptr >= 'A' && **ptr <= 'Z') || (**ptr >= 'a' && **ptr <= 'z')) { 596 while (**ptr == ' ' || **ptr == '\t' || **ptr == '-' || **ptr == '.' || **ptr == '/') { 623 …while (**ptr != '\0' && **ptr != ' ' && **ptr != ',' && **ptr != '\t' && **ptr != ';' && **ptr != … 624 **ptr != '/' && **ptr != '.' && **ptr != '-' && **ptr != '(' && **ptr != ')' ) { 730 while (**ptr != '\0' && **ptr != ')' && **ptr != ' ') { [all …]
|
H A D | parse_iso_intervals.re | 113 while ((**ptr < '0') || (**ptr > '9')) { 117 ++*ptr; 121 ++*ptr; 136 while (((**ptr < '0') || (**ptr > '9')) && (**ptr != '+') && (**ptr != '-')) { 140 ++*ptr; 143 while (**ptr == '+' || **ptr == '-') 212 ptr++; 249 ptr++; 290 ptr++; 292 ptr++; [all …]
|
H A D | parse_iso_intervals.c | 115 while ((**ptr < '0') || (**ptr > '9')) { in timelib_get_nr() 119 ++*ptr; in timelib_get_nr() 123 ++*ptr; in timelib_get_nr() 138 while (((**ptr < '0') || (**ptr > '9')) && (**ptr != '+') && (**ptr != '-')) { in timelib_get_unsigned_nr() 142 ++*ptr; in timelib_get_unsigned_nr() 145 while (**ptr == '+' || **ptr == '-') in timelib_get_unsigned_nr() 150 ++*ptr; in timelib_get_unsigned_nr() 280 ptr++; in scan() 669 ptr++; in scan() 671 ptr++; in scan() [all …]
|
/PHP-8.0/main/streams/ |
H A D | php_streams_int.h | 24 #define erealloc_rel_orig(ptr, size) \ argument 26 ? _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \ 27 : _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) ) 30 #define perealloc_rel_orig(ptr, size, persistent) ((persistent) ? realloc((ptr), (size)) : erealloc… argument 33 # define perealloc_rel_orig(ptr, size, persistent) perealloc((ptr), (size), (persistent)) argument
|
/PHP-8.0/ext/ffi/ |
H A D | ffi.stub.php | 18 public static function free(FFI\CData $ptr): void {} argument 24 public static function cast(FFI\CType|string $type, $ptr): ?FFI\CData {} argument 29 public static function typeof(FFI\CData $ptr): FFI\CType {} argument 34 public static function addr(FFI\CData $ptr): FFI\CData {} argument 37 public static function sizeof(FFI\CData|FFI\CType $ptr): int {} argument 40 public static function alignof(FFI\CData|FFI\CType $ptr): int {} argument 58 public static function memset(FFI\CData $ptr, int $value, int $size): void {} argument 61 public static function string(FFI\CData $ptr, ?int $size = null): string {} argument 64 public static function isNull(FFI\CData $ptr): bool {} argument
|
/PHP-8.0/ext/mysqli/ |
H A D | mysqli_warning.c | 184 if (obj->ptr) { in PHP_METHOD() 189 ((MYSQLI_RESOURCE *)(obj->ptr))->ptr = w; in PHP_METHOD() 202 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { in mysqli_warning_message() 210 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_message() 222 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { in mysqli_warning_sqlstate() 230 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_sqlstate() 242 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { in mysqli_warning_errno() 250 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_errno()
|
/PHP-8.0/sapi/phpdbg/ |
H A D | phpdbg_btree.h | 26 void *ptr; member 60 int phpdbg_btree_insert_or_update(phpdbg_btree *tree, zend_ulong idx, void *ptr, int flags); 61 #define phpdbg_btree_insert(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG_BT… argument 62 #define phpdbg_btree_update(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG_BT… argument 63 #define phpdbg_btree_overwrite(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG… argument
|
H A D | phpdbg_io.c | 98 char *p = ptr; 157 return p - ptr; 162 const char *p = ptr; 185 ret = read(sock, ptr, len); 193 const char *p = ptr, *endp = ptr + len; 200 bytes += write(sock, ptr + bytes, (p - ptr) - bytes); 214 bytes += write(sock, ptr + bytes, len - bytes); 216 bytes += write(sock, ptr, len); 223 return phpdbg_send_bytes(sock, ptr, len); 230 return phpdbg_output_pager(sock, ptr, len); [all …]
|
/PHP-8.0/main/ |
H A D | fopen_wrappers.c | 98 while (ptr && *ptr) { in ZEND_INI_MH() 104 if (ptr[0] == '.' && ptr[1] == '.' && (ptr[2] == '\0' || IS_SLASH(ptr[2]))) { in ZEND_INI_MH() 114 ptr = end; in ZEND_INI_MH() 284 char *ptr; local 299 while (ptr && *ptr) { 311 ptr = end; 515 ptr = path; 516 while (ptr && *ptr) { 534 memcpy(trypath, ptr, end-ptr); 681 while (ptr && *ptr) { [all …]
|