/PHP-7.3/ext/bcmath/libbcmath/src/ |
H A D | str2num.c | 54 ptr = str; in bc_str2num() 58 if ( (*ptr == '+') || (*ptr == '-')) ptr++; /* Sign */ in bc_str2num() 59 while (*ptr == '0') ptr++; /* Skip leading zeros. */ in bc_str2num() 60 while (*ptr >= '0' && *ptr <= '9') ptr++, digits++; /* digits */ in bc_str2num() 61 if (*ptr == '.') ptr++; /* decimal point */ in bc_str2num() 62 while (*ptr >= '0' && *ptr <= '9') ptr++, strscale++; /* digits */ in bc_str2num() 79 ptr = str; in bc_str2num() 80 if (*ptr == '-') in bc_str2num() 83 ptr++; in bc_str2num() 88 if (*ptr == '+') ptr++; in bc_str2num() [all …]
|
/PHP-7.3/ext/mbstring/oniguruma/src/ |
H A D | st.c | 226 ((ptr) != 0 && (ptr->hash != (hash_val) || !EQUAL((table), (key), (ptr)->key))) 240 ptr = ptr->next;\ 242 ptr = ptr->next;\ 383 ptr = ptr->next; 416 for(; ptr->next != 0; ptr = ptr->next) { 419 ptr->next = ptr->next->next; 449 for(; ptr != 0; ptr = ptr->next) { 454 ptr->key = ptr->record = never; 498 for(ptr = table->bins[i]; ptr != 0;) { 515 ptr = ptr->next; [all …]
|
/PHP-7.3/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 | 86 for (; ptr < ptrend; ptr++) in find_text_end() 90 if (ptr[0] == CHAR_BACKSLASH && ptr < ptrend - 1 && ptr[1] == CHAR_E) in find_text_end() 93 ptr += 1; in find_text_end() 107 if (ptr < ptrend - 1 && ptr[1] == CHAR_LEFT_CURLY_BRACKET) in find_text_end() 110 ptr += 1; in find_text_end() 120 if (ptr < ptrend - 1) switch (ptr[1]) in find_text_end() 126 ptr += 1; in find_text_end() 160 *ptrptr = ptr; in find_text_end() 434 if (ptr[0] == CHAR_BACKSLASH && ptr < repend - 1 && ptr[1] == CHAR_E) in pcre2_substitute() 499 while (++ptr < repend && *ptr >= CHAR_0 && *ptr <= CHAR_9); in pcre2_substitute() [all …]
|
H A D | pcre2_compile.c | 1262 while (ptr < ptrend && IS_DIGIT(*ptr)) in read_number() 1686 while(i++ < 2 && ptr < ptrend && *ptr >= CHAR_0 && *ptr <= CHAR_7) in PRIV() 1708 while (ptr < ptrend && *ptr >= CHAR_0 && *ptr <= CHAR_7) in PRIV() 1726 while (ptr < ptrend && *ptr >= CHAR_0 && *ptr <= CHAR_7) ptr++; in PRIV() 1799 while (ptr < ptrend && XDIGIT(*ptr) != 0xff) ptr++; in PRIV() 2066 for (; ptrend - ptr >= 2; ptr++) in check_posix_syntax() 2170 while (ptr < ptrend && MAX_255(*ptr) && (cb->ctypes[*ptr] & ctype) != 0) in read_name() 3045 if (ptr < ptrend && (*ptr == CHAR_COLON || *ptr == CHAR_DOT || in parse_regex() 3064 if (ptr < ptrend && *ptr == CHAR_E) ptr++; in parse_regex() 3567 if (*ptr == CHAR_MINUS && ptrend - ptr > 1 && IS_DIGIT(ptr[1])) in parse_regex() [all …]
|
/PHP-7.3/Zend/ |
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 | 27 char *ptr; member 36 arena->ptr = (char*) arena + ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena)); in zend_arena_create() 56 char *ptr = arena->ptr; in zend_arena_alloc() local 60 if (EXPECTED(size <= (size_t)(arena->end - ptr))) { in zend_arena_alloc() 61 arena->ptr = ptr + size; in zend_arena_alloc() 69 ptr = (char*) new_arena + ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena)); in zend_arena_alloc() 76 return (void*) ptr; in zend_arena_alloc() 96 return arena->ptr; in zend_arena_checkpoint() 110 arena->ptr = (char*)checkpoint; in zend_arena_release() 113 static zend_always_inline zend_bool zend_arena_contains(zend_arena *arena, void *ptr) in zend_arena_contains() argument [all …]
|
H A D | zend_alloc.c | 444 return ptr; in zend_mm_mmap_fixed() 459 return ptr; in zend_mm_mmap() 461 void *ptr; in zend_mm_mmap() 480 return ptr; in zend_mm_mmap() 741 ptr = (char*)ptr + offset; 1346 void *ptr; local 1715 list->ptr = ptr; 1733 if (list->ptr == ptr) { 1756 if (list->ptr == ptr) { 1773 if (list->ptr == ptr) { [all …]
|
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()
|
H A D | zend_ptr_stack.c | 41 va_list ptr; in zend_ptr_stack_n_push() local 46 va_start(ptr, count); in zend_ptr_stack_n_push() 48 elem = va_arg(ptr, void *); in zend_ptr_stack_n_push() 53 va_end(ptr); in zend_ptr_stack_n_push() 59 va_list ptr; in zend_ptr_stack_n_pop() local 62 va_start(ptr, count); in zend_ptr_stack_n_pop() 64 elem = va_arg(ptr, void **); in zend_ptr_stack_n_pop() 69 va_end(ptr); in zend_ptr_stack_n_pop()
|
/PHP-7.3/ext/mysqlnd/ |
H A D | mysqlnd_block_alloc.c | 55 char *ptr = arena->ptr; in mysqlnd_arena_alloc() local 60 arena->ptr = ptr + size; in mysqlnd_arena_alloc() 75 return (void*) ptr; in mysqlnd_arena_alloc() 81 return arena->ptr; in mysqlnd_arena_checkpoint() 109 pool->arena->ptr = (char*)ptr; in mysqlnd_mempool_free_chunk() 124 if (ptr == pool->last in mysqlnd_mempool_resize_chunk() 130 pool->arena->ptr = (char*)ptr + ZEND_MM_ALIGNED_SIZE(size); in mysqlnd_mempool_resize_chunk() 136 DBG_RETURN(ptr); in mysqlnd_mempool_resize_chunk() 145 void *ptr = NULL; in mysqlnd_mempool_get_chunk() local 149 pool->last = ptr; in mysqlnd_mempool_get_chunk() [all …]
|
H A D | mysqlnd_alloc.h | 36 void (*m_efree)(void *ptr MYSQLND_MEM_D); 41 void (*m_free)(void *ptr MYSQLND_MEM_D); 56 #define mnd_erealloc(ptr, new_size) mysqlnd_allocator.m_erealloc((ptr), (new_size) MYSQLND_MEM_C) argument 57 #define mnd_perealloc(ptr, new_size, p) mysqlnd_allocator.m_perealloc((ptr), (new_size), (p) MYSQLN… argument 58 #define mnd_efree(ptr) mysqlnd_allocator.m_efree((ptr) MYSQLND_MEM_C) argument 59 #define mnd_pefree(ptr, pers) mysqlnd_allocator.m_pefree((ptr), (pers) MYSQLND_MEM_C) argument 62 #define mnd_realloc(ptr, new_size) mysqlnd_allocator.m_realloc((ptr), (new_size) MYSQLND_MEM_C) argument 63 #define mnd_free(ptr) mysqlnd_allocator.m_free((ptr) MYSQLND_MEM_C) argument 64 #define mnd_pememdup(ptr, size, pers) mysqlnd_allocator.m_pememdup((ptr), (size), (pers) MYSQLND_ME… argument 65 #define mnd_pestrndup(ptr, size, pers) mysqlnd_allocator.m_pestrndup((ptr), (size), (pers) MYSQLND_… argument [all …]
|
H A D | mysqlnd_alloc.c | 344 if (ptr) { in _mysqlnd_efree() 349 efree_rel(REAL_PTR(ptr)); in _mysqlnd_efree() 375 if (ptr) { in _mysqlnd_pefree() 527 if (ptr) { in _mysqlnd_free() 532 free(REAL_PTR(ptr)); in _mysqlnd_free() 561 memcpy(dest, ptr, length); in _mysqlnd_pememdup() 592 char * p = (char *) ptr; in _mysqlnd_pestrndup() 620 const char * p = ptr; in _mysqlnd_pestrdup() 734 efree_rel(ptr); in mysqlnd_zend_mm_efree() 774 free(ptr); in mysqlnd_zend_mm_free() [all …]
|
/PHP-7.3/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-7.3/ext/date/lib/ |
H A D | parse_date.re | 494 while ((**ptr != '.') && (**ptr != ':') && ((**ptr < '0') || (**ptr > '9'))) { 517 while (((**ptr < '0') || (**ptr > '9')) && (**ptr != '+') && (**ptr != '-')) { 541 while ((**ptr >= 'A' && **ptr <= 'Z') || (**ptr >= 'a' && **ptr <= 'z')) { 561 while (**ptr == ' ' || **ptr == '\t' || **ptr == '-' || **ptr == '/') { 574 while ((**ptr >= 'A' && **ptr <= 'Z') || (**ptr >= 'a' && **ptr <= 'z')) { 593 while (**ptr == ' ' || **ptr == '\t' || **ptr == '-' || **ptr == '.' || **ptr == '/') { 620 …while (**ptr != '\0' && **ptr != ' ' && **ptr != ',' && **ptr != '\t' && **ptr != ';' && **ptr != … 621 **ptr != '/' && **ptr != '.' && **ptr != '-' && **ptr != '(' && **ptr != ')' ) { 717 while (**ptr != '\0' && **ptr != ')' && **ptr != ' ') { 811 while (**ptr == ' ' || **ptr == '\t' || **ptr == '(') { [all …]
|
H A D | parse_iso_intervals.re | 112 while ((**ptr < '0') || (**ptr > '9')) { 116 ++*ptr; 120 ++*ptr; 135 while (((**ptr < '0') || (**ptr > '9')) && (**ptr != '+') && (**ptr != '-')) { 139 ++*ptr; 142 while (**ptr == '+' || **ptr == '-') 147 ++*ptr; 210 ptr++; 247 ptr++; 288 ptr++; [all …]
|
H A D | parse_iso_intervals.c | 114 while ((**ptr < '0') || (**ptr > '9')) { in timelib_get_nr() 118 ++*ptr; in timelib_get_nr() 122 ++*ptr; in timelib_get_nr() 137 while (((**ptr < '0') || (**ptr > '9')) && (**ptr != '+') && (**ptr != '-')) { in timelib_get_unsigned_nr() 141 ++*ptr; in timelib_get_unsigned_nr() 144 while (**ptr == '+' || **ptr == '-') in timelib_get_unsigned_nr() 149 ++*ptr; in timelib_get_unsigned_nr() 296 ptr++; in scan() 325 ptr++; in scan() 394 ptr++; in scan() [all …]
|
/PHP-7.3/ext/sysvshm/ |
H A D | sysvshm.c | 131 shmdt((void *) shm_ptr->ptr); in php_release_sysvshm() 211 shm_list_ptr->ptr = chunk_ptr; in PHP_FUNCTION() 381 php_remove_shm_data(ptr, shm_varpos); in php_put_shm_data() 384 if (ptr->free < total_size) { in php_put_shm_data() 388 shm_var = (sysvshm_chunk *) ((char *) ptr + ptr->end); in php_put_shm_data() 393 ptr->end += total_size; in php_put_shm_data() 394 ptr->free -= total_size; in php_put_shm_data() 406 pos = ptr->start; in php_check_shm_data() 409 if (pos >= ptr->end) { in php_check_shm_data() 437 ptr->free += chunk_ptr->next; in php_remove_shm_data() [all …]
|
/PHP-7.3/ext/xmlwriter/ |
H A D | php_xmlwriter.c | 728 ptr = intern->ptr; in php_xmlwriter_string_arg() 762 ptr = intern->ptr; in php_xmlwriter_end() 802 ptr = intern->ptr; in PHP_FUNCTION() 871 ptr = intern->ptr; in PHP_FUNCTION() 915 ptr = intern->ptr; in PHP_FUNCTION() 960 ptr = intern->ptr; in PHP_FUNCTION() 1012 ptr = intern->ptr; in PHP_FUNCTION() 1072 ptr = intern->ptr; in PHP_FUNCTION() 1126 ptr = intern->ptr; in PHP_FUNCTION() 1197 ptr = intern->ptr; in PHP_FUNCTION() [all …]
|
/PHP-7.3/main/streams/ |
H A D | php_streams_int.h | 26 #define erealloc_rel_orig(ptr, size) \ argument 28 ? _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \ 29 : _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) ) 32 #define perealloc_rel_orig(ptr, size, persistent) ((persistent) ? realloc((ptr), (size)) : erealloc… argument 35 # define perealloc_rel_orig(ptr, size, persistent) perealloc((ptr), (size), (persistent)) argument
|
/PHP-7.3/sapi/phpdbg/ |
H A D | phpdbg_btree.h | 28 void *ptr; member 62 int phpdbg_btree_insert_or_update(phpdbg_btree *tree, zend_ulong idx, void *ptr, int flags); 63 #define phpdbg_btree_insert(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG_BT… argument 64 #define phpdbg_btree_update(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG_BT… argument 65 #define phpdbg_btree_overwrite(tree, idx, ptr) phpdbg_btree_insert_or_update(tree, idx, ptr, PHPDBG… argument
|
H A D | phpdbg_io.c | 100 char *p = ptr; 159 return p - ptr; 164 const char *p = ptr; 187 ret = read(sock, ptr, len); 195 const char *p = ptr, *endp = ptr + len; 202 bytes += write(sock, ptr + bytes, (p - ptr) - bytes); 216 bytes += write(sock, ptr + bytes, len - bytes); 218 bytes += write(sock, ptr, len); 225 return phpdbg_send_bytes(sock, ptr, len); 232 return phpdbg_output_pager(sock, ptr, len); [all …]
|
/PHP-7.3/ext/mysqli/ |
H A D | mysqli_warning.c | 183 if (obj->ptr) { in PHP_METHOD() 193 ((MYSQLI_RESOURCE *)(obj->ptr))->ptr = w; in PHP_METHOD() 207 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { in mysqli_warning_message() 211 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_message() 223 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { in mysqli_warning_sqlstate() 227 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_sqlstate() 239 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { in mysqli_warning_errno() 242 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_errno() 298 mysqli_resource->ptr = mysqli_resource->info = (void *)w; 304 (Z_MYSQLI_P(getThis()))->ptr = mysqli_resource;
|
H A D | mysqli_prop.c | 41 if (!obj->ptr || !(MY_MYSQL *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr) { \ 52 if (!obj->ptr) { \ 58 p = (MYSQL_RES *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; \ 154 mysql = (MY_MYSQL *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in link_affected_rows_read() 185 mysql = (MY_MYSQL *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in link_error_list_read() 250 mysql = (MY_MYSQL *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in MYSQLI_MAP_PROPERTY_FUNC_LONG() 277 p = (MYSQL_RES *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in result_type_read() 300 p = (MYSQL_RES *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in result_lengths_read() 330 p = (MY_STMT*)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in MYSQLI_MAP_PROPERTY_FUNC_LONG() 349 p = (MY_STMT *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in stmt_affected_rows_read() [all …]
|
/PHP-7.3/main/ |
H A D | fopen_wrappers.c | 107 while (ptr && *ptr) { in ZEND_INI_MH() 118 ptr = end; in ZEND_INI_MH() 285 char *ptr; local 300 while (ptr && *ptr) { 312 ptr = end; 518 ptr = path; 519 while (ptr && *ptr) { 537 memcpy(trypath, ptr, end-ptr); 550 ptr = NULL; 678 while (ptr && *ptr) { [all …]
|