/php-src/ext/standard/tests/serialize/ |
H A D | bug70172_2.phpt | 40 function ptr2str($ptr) 44 $out .= chr($ptr & 0xff); 45 $ptr >>= 8;
|
H A D | bug70436.phpt | 35 function ptr2str($ptr) 40 $out .= chr($ptr & 0xff); 41 $ptr >>= 8;
|
/php-src/Zend/ |
H A D | zend_weakrefs.c | 72 zend_weakref *wr = ptr; in zend_weakref_unref_single() 82 void *ptr = ZEND_WEAKREF_GET_PTR(tagged_ptr); in zend_weakref_unref() local 85 HashTable *ht = ptr; in zend_weakref_unref() 93 zend_weakref_unref_single(ptr, tag, object); in zend_weakref_unref() 145 HashTable *ht = ptr; in zend_weakref_unregister() 228 wr = ptr; in zend_weakref_find() 236 ptr = ZEND_WEAKREF_GET_PTR(tagged_ptr); in zend_weakref_find() 535 HashTable *ht = ptr; in zend_weakmap_get_object_key_entry_gc() 546 zend_weakmap *wm = (zend_weakmap*) ptr; in zend_weakmap_get_object_key_entry_gc() 570 HashTable *ht = ptr; in zend_weakmap_get_object_entry_gc() [all …]
|
H A D | zend_generators.c | 200 leaf->node.ptr.root = NULL; in clear_link_to_leaf() 201 generator->node.ptr.leaf = NULL; in clear_link_to_leaf() 209 if (generator->node.ptr.root) { in clear_link_to_root() 210 generator->node.ptr.root->node.ptr.leaf = NULL; in clear_link_to_root() 211 generator->node.ptr.root = NULL; in clear_link_to_root() 480 generator->node.ptr.root = NULL; in zend_generator_create() 497 if (!ptr->func && Z_TYPE(ptr->This) == IS_OBJECT) { in zend_generator_check_placeholder_frame() 511 return ptr; in zend_generator_check_placeholder_frame() 564 from->node.ptr.leaf = leaf; in zend_generator_yield_from() 565 leaf->node.ptr.root = from; in zend_generator_yield_from() [all …]
|
H A D | zend_list.c | 32 ZEND_API zval* ZEND_FASTCALL zend_list_insert(void *ptr, int type) in zend_list_insert() argument 42 ZVAL_NEW_RES(&zv, index, ptr, type); in zend_list_insert() 67 res->ptr = NULL; in zend_resource_dtor() 100 return res->ptr; in zend_fetch_resource2() 104 return res->ptr; in zend_fetch_resource2() 120 return res->ptr; in zend_fetch_resource()
|
H A D | zend_weakrefs.h | 35 …c zend_always_inline void *zend_weakrefs_hash_add_ptr(HashTable *ht, zend_object *key, void *ptr) { in zend_weakrefs_hash_add_ptr() argument 37 ZVAL_PTR(&tmp, ptr); in zend_weakrefs_hash_add_ptr()
|
H A D | zend_types.h | 135 void *ptr; member 199 ((zend_string *) (t).ptr) 202 ((const char *) (t).ptr) 205 ((zend_type_list *) (t).ptr) 241 ((t).ptr = (_ptr)) 244 (t).ptr = (_ptr); \ 326 void *ptr; member 570 void *ptr; member 580 struct _zend_property_info *ptr; member 1158 _res->ptr = (p); \ [all …]
|
H A D | zend_extensions.c | 335 char *ptr = pemalloc(alloc_size, 1); in zend_init_internal_run_time_cache() local 337 CG(internal_run_time_cache) = ptr; in zend_init_internal_run_time_cache() 343 ZEND_MAP_PTR_SET(zif->run_time_cache, (void *)ptr); in zend_init_internal_run_time_cache() 344 ptr += rt_size; in zend_init_internal_run_time_cache() 350 ZEND_MAP_PTR_SET(zif->run_time_cache, (void *)ptr); in zend_init_internal_run_time_cache() 351 ptr += rt_size; in zend_init_internal_run_time_cache()
|
/php-src/ext/standard/ |
H A D | math.c | 879 char *ptr, *end; in _php_math_longtobase() local 889 *ptr = '\0'; in _php_math_longtobase() 892 ZEND_ASSERT(ptr > buf); in _php_math_longtobase() 893 *--ptr = digits[value % base]; in _php_math_longtobase() 897 return zend_string_init(ptr, end - ptr, 0); in _php_math_longtobase() 912 char *ptr; in _php_math_longtobase_pwr2() local 923 ptr = ZSTR_VAL(ret) + len; in _php_math_longtobase_pwr2() 924 *ptr = '\0'; in _php_math_longtobase_pwr2() 951 char *ptr, *end; in _php_math_zvaltobase() local 961 *ptr = '\0'; in _php_math_zvaltobase() [all …]
|
H A D | md5.c | 168 (*(unaligned_uint32_t *)&ptr[(n) * 4]) 174 (uint32_t)ptr[(n) * 4] | \ 175 ((uint32_t)ptr[(n) * 4 + 1] << 8) | \ 176 ((uint32_t)ptr[(n) * 4 + 2] << 16) | \ 177 ((uint32_t)ptr[(n) * 4 + 3] << 24)) 188 const unsigned char *ptr; in body() local 192 ptr = data; in body() 282 ptr += 64; in body() 290 return ptr; in body()
|
/php-src/ext/dom/ |
H A D | token_list.c | 108 char *ptr = ret; in dom_ordered_set_serializer() local 110 memcpy(ptr, ZSTR_VAL(token), ZSTR_LEN(token)); in dom_ordered_set_serializer() 111 ptr += ZSTR_LEN(token); in dom_ordered_set_serializer() 112 *ptr++ = ' '; in dom_ordered_set_serializer() 114 ptr[-1] = '\0'; /* replace last space with \0 */ in dom_ordered_set_serializer() 120 php_libxml_node_ptr *element_ptr = intern->dom.ptr; in dom_token_list_get_element() 203 php_libxml_node_ptr *ptr = element_obj->ptr; in dom_token_list_ctor() local 204 ptr->refcount++; in dom_token_list_ctor() 205 intern->dom.ptr = ptr; in dom_token_list_ctor() 223 if (EXPECTED(intern->dom.ptr != NULL)) { /* Object initialized? */ in dom_token_list_free_obj() [all …]
|
H A D | dom_iterators.c | 132 if (intern != NULL && intern->ptr != NULL) { in php_dom_iterator_current_key() 133 xmlNodePtr curnode = (xmlNodePtr)((php_libxml_node_ptr *)intern->ptr)->node; in php_dom_iterator_current_key() 174 dom_nnodemap_object *objmap = nnmap->ptr; in php_dom_iterator_move_forward() 176 if (intern != NULL && intern->ptr != NULL) { in php_dom_iterator_move_forward() 201 curnode = (xmlNodePtr)((php_libxml_node_ptr *)intern->ptr)->node; in php_dom_iterator_move_forward() 219 curnode = (xmlNodePtr)((php_libxml_node_ptr *)intern->ptr)->node; in php_dom_iterator_move_forward() 273 objmap = (dom_nnodemap_object *)intern->ptr; in php_dom_get_iterator()
|
H A D | internal_helpers.h | 92 static zend_always_inline zend_long dom_mangle_pointer_for_key(const void *ptr) in dom_mangle_pointer_for_key() argument 94 zend_ulong value = (zend_ulong) (uintptr_t) ptr; in dom_mangle_pointer_for_key()
|
/php-src/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 2576 while (*ptr && strchr("-.#", *ptr) != NULL) in check_format_type() 2577 ptr++; in check_format_type() 2587 ptr++; in check_format_type() 2673 ptr++; in check_format_type() 2675 ptr++; in check_format_type() 2678 ptr++; in check_format_type() 2696 ptr++; in check_format_type() 2698 ptr++; in check_format_type() 2735 for (ptr = m->desc; *ptr; ptr++) in check_format() 2756 ptr++; in check_format() [all …]
|
/php-src/sapi/embed/ |
H A D | php_embed.c | 77 const char *ptr = str; in php_embed_ub_write() local 82 ret = php_embed_single_write(ptr, remaining); in php_embed_ub_write() 86 ptr += ret; in php_embed_ub_write()
|
/php-src/ext/opcache/ |
H A D | zend_file_cache.c | 116 ((size_t)(ptr) & Z_UL(1)) 125 IS_ACCEL_INTERNED(ptr)) 127 if (ptr) { \ 129 (ptr) = (void*)((char*)(ptr) - (char*)script->mem); \ 133 if (ptr) { \ 135 (ptr) = (void*)((char*)buf + (size_t)(ptr)); \ 139 if (ptr) { \ 141 (ptr) = zend_file_cache_serialize_interned((zend_string*)(ptr), info); \ 149 (ptr) = (void*)((char*)(ptr) - (char*)script->mem); \ 154 if (ptr) { \ [all …]
|
/php-src/main/ |
H A D | rfc1867.c | 304 if ((ptr - line) > 0 && *(ptr-1) == '\r') { in next_line() 305 *(ptr-1) = 0; in next_line() 307 *ptr = 0; in next_line() 322 self->buf_begin = ptr; in next_line() 334 if (!ptr) { in get_line() 336 ptr = next_line(self); in get_line() 339 return ptr; in get_line() 559 char *ptr = haystack; in php_ap_memstr() local 562 while( (ptr = memchr(ptr, needle[0], len)) ) { in php_ap_memstr() 573 ptr++; len--; in php_ap_memstr() [all …]
|
H A D | php_variables.c | 334 char *ptr; member 348 if (var->ptr >= var->end) { in add_post_var() 352 start = var->ptr + var->already_scanned; in add_post_var() 356 var->already_scanned = var->end - var->ptr; in add_post_var() 363 ksep = memchr(var->ptr, '=', vsep - var->ptr); in add_post_var() 367 klen = ksep - var->ptr; in add_post_var() 372 klen = vsep - var->ptr; in add_post_var() 376 php_url_decode(var->ptr, klen); in add_post_var() 388 var->ptr = vsep + (vsep != var->end); in add_post_var() 397 vars->ptr = ZSTR_VAL(vars->str.s); in add_post_vars() [all …]
|
/php-src/ext/pcre/pcre2lib/sljit/ |
H A D | sljitConfigInternal.h | 143 #define SLJIT_FREE(ptr, allocator_data) (free(ptr)) argument 555 SLJIT_API_FUNC_ATTRIBUTE void sljit_free_exec(void* ptr); 558 #define SLJIT_BUILTIN_FREE_EXEC(ptr, exec_allocator_data) sljit_free_exec(ptr) argument 565 #define SLJIT_FREE_EXEC(ptr, exec_allocator_data) SLJIT_BUILTIN_FREE_EXEC((ptr), (exec_allocator_da… argument 576 #define SLJIT_EXEC_OFFSET(ptr) 0 argument
|
/php-src/ext/pcre/pcre2lib/ |
H A D | pcre2_printint.c | 92 print_char(FILE *f, PCRE2_SPTR ptr, BOOL utf) in print_char() argument 94 uint32_t c = *ptr; in print_char() 148 if ((ptr[i] & 0xc0) != 0x80) in print_char() 154 c |= (ptr[i] & 0x3f) << s; in print_char() 165 if ((ptr[1] & 0xfc00) != 0xdc00) in print_char() 170 c = (((c & 0x3ff) << 10) | (ptr[1] & 0x3ff)) + 0x10000; in print_char() 205 print_custring(FILE *f, PCRE2_SPTR ptr) in print_custring() argument 207 while (*ptr != '\0') in print_custring() 209 uint32_t c = *ptr++; in print_custring() 215 print_custring_bylen(FILE *f, PCRE2_SPTR ptr, PCRE2_UCHAR len) in print_custring_bylen() argument [all …]
|
/php-src/ext/mysqli/ |
H A D | mysqli_nonapi.c | 89 mysqli_resource = (Z_MYSQLI_P(object))->ptr; 91 mysql = (MY_MYSQL*) mysqli_resource->ptr; 106 mysqli_resource = (Z_MYSQLI_P(object))->ptr; 155 plist = (mysqli_plist_entry *) le->ptr; 279 mysqli_resource->ptr = (void *)mysql; 630 mysqli_resource->ptr = (void *)result; 659 mysql = (MY_MYSQL*) my_res->ptr; 693 mysql = (MY_MYSQL *) my_res->ptr; 723 mysql = (MY_MYSQL *)((MYSQLI_RESOURCE *)intern->ptr)->ptr; 854 mysqli_resource->ptr = (void *)result; [all …]
|
/php-src/ext/ffi/tests/ |
H A D | 017.phpt | 20 var_dump(FFI::new("struct X {struct X *ptr;}")); 35 ["ptr"]=>
|
/php-src/ext/zlib/ |
H A D | zlib.c | 814 if (!*ptr || ZSTR_LEN(*ptr) == 0 || EG(exception)) { in zlib_create_dictionary_string() 815 if (*ptr) { in zlib_create_dictionary_string() 816 efree(*ptr); in zlib_create_dictionary_string() 818 while (--ptr >= strings) { in zlib_create_dictionary_string() 819 efree(ptr); in zlib_create_dictionary_string() 830 efree(ptr); in zlib_create_dictionary_string() 831 } while (--ptr >= strings); in zlib_create_dictionary_string() 842 ptr = strings; in zlib_create_dictionary_string() 845 memcpy(dictptr, ZSTR_VAL(*ptr), ZSTR_LEN(*ptr)); in zlib_create_dictionary_string() 846 dictptr += ZSTR_LEN(*ptr); in zlib_create_dictionary_string() [all …]
|
/php-src/main/streams/ |
H A D | php_stream_context.h | 24 void * ptr); 44 zval ptr; member 85 char *xmsg, int xcode, size_t bytes_sofar, size_t bytes_max, void * ptr);
|
/php-src/Zend/tests/ |
H A D | bug70782.phpt | 2 Bug #70782: null ptr deref and segfault (zend_get_class_fetch_type)
|