Searched refs:ptr (Results 1 - 25 of 194) sorted by relevance

12345678

/PHP_5_5/ext/bcmath/libbcmath/src/
H A Dstr2num.c47 char *ptr, *nptr; local
54 ptr = str;
58 if ( (*ptr == '+') || (*ptr == '-')) ptr++; /* Sign */
59 while (*ptr == '0') ptr++; /* Skip leading zeros. */
60 while (isdigit((int)*ptr)) ptr++, digits++; /* digits */
61 if (*ptr
[all...]
/PHP_5_5/ext/gd/libgd/
H A Dgdhelpers.h17 #define gdRealloc(ptr, size) erealloc(ptr, size)
18 #define gdEstrdup(ptr) estrdup(ptr)
19 #define gdFree(ptr) efree(ptr)
20 #define gdPMalloc(ptr) pemalloc(ptr, 1)
21 #define gdPFree(ptr) pefree(ptr,
[all...]
/PHP_5_5/ext/intl/
H A Dintl_common.h35 # define eurealloc(ptr, size) (UChar*)erealloc((ptr), size * sizeof(UChar))
/PHP_5_5/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_allocators.c79 static void *__mbfl__realloc(void *ptr, unsigned int sz) argument
81 return realloc(ptr, sz);
89 static void __mbfl__free(void *ptr) argument
91 free(ptr);
/PHP_5_5/ext/mbstring/libmbfl/tests/
H A Dconv_encoding.c13 static void hexdump(const mbfl_string *ptr) argument
17 for (i = 0; i < ptr->len; i++) {
18 printf("%%%02x", ptr->val[i]);
21 printf(" (%u)\n", ptr->len);
/PHP_5_5/ext/mbstring/oniguruma/
H A Dst.c203 register st_table_entry *ptr, *next; local
207 ptr = table->bins[i];
208 while (ptr != 0) {
209 next = ptr->next;
210 free(ptr);
211 ptr = next;
218 #define PTR_NOT_EQUAL(table, ptr, hash_val, key) \
219 ((ptr) != 0 && (ptr->hash != (hash_val) || !EQUAL((table), (key), (ptr)
246 register st_table_entry *ptr; local
285 register st_table_entry *ptr; local
317 register st_table_entry *ptr, *next, **new_bins; local
344 st_table_entry *ptr, *entry; local
388 register st_table_entry *ptr; local
430 register st_table_entry *ptr; local
483 st_table_entry *ptr, *last, *tmp; local
[all...]
/PHP_5_5/ext/pcre/pcrelib/
H A Dpcre_newline.c62 /* It is guaranteed that the initial value of ptr is less than the end of the
66 ptr pointer to possible newline
76 PRIV(is_newline)(PCRE_PUCHAR ptr, int type, PCRE_PUCHAR endptr, int *lenptr, argument
84 GETCHAR(c, ptr);
88 c = *ptr;
95 case CHAR_CR: *lenptr = (ptr < endptr - 1 && ptr[1] == CHAR_LF)? 2 : 1;
112 *lenptr = (ptr < endptr - 1 && ptr[1] == CHAR_LF)? 2 : 1;
137 /* It is guaranteed that the initial value of ptr i
151 was_newline(PCRE_PUCHAR ptr, int type, PCRE_PUCHAR startptr, int *lenptr, BOOL utf) argument
[all...]
H A Dpcre_compile.c974 chptr. On entry, ptr is pointing at the \. On exit, it is on the final
997 const pcre_uchar *ptr = *ptrptr + 1; local
1002 GETCHARINCTEST(c, ptr); /* Get character value, increment pointer */
1003 ptr--; /* Set pointer back to the last byte */
1048 if (MAX_255(ptr[1]) && (digitab[ptr[1]] & ctype_xdigit) != 0
1049 && MAX_255(ptr[2]) && (digitab[ptr[2]] & ctype_xdigit) != 0
1050 && MAX_255(ptr[3]) && (digitab[ptr[
1488 const pcre_uchar *ptr = *ptrptr; local
3838 check_posix_syntax(const pcre_uchar *ptr, const pcre_uchar **endptr) argument
3882 check_posix_name(const pcre_uchar *ptr, int len) argument
3932 pcre_uchar *ptr = group; local
3983 auto_callout(pcre_uchar *code, const pcre_uchar *ptr, compile_data *cd) argument
4011 complete_callout(pcre_uchar *previous_callout, const pcre_uchar *ptr, compile_data *cd) argument
4377 const pcre_uchar *ptr = *ptrptr; local
7981 const pcre_uchar *ptr = *ptrptr; local
8723 const pcre_uchar *ptr; local
[all...]
/PHP_5_5/ext/sysvshm/
H A Dsysvshm.c119 static int php_put_shm_data(sysvshm_chunk_head *ptr, long key, const char *data, long len);
120 static long php_check_shm_data(sysvshm_chunk_head *ptr, long key);
121 static int php_remove_shm_data(sysvshm_chunk_head *ptr, long shm_varpos);
127 sysvshm_shm *shm_ptr = (sysvshm_shm *) rsrc->ptr;
128 shmdt((void *) shm_ptr->ptr);
198 shm_list_ptr->ptr = chunk_ptr;
267 ret = php_put_shm_data(shm_list_ptr->ptr, shm_key, shm_var.c, shm_var.len);
299 shm_varpos = php_check_shm_data((shm_list_ptr->ptr), shm_key);
305 shm_var = (sysvshm_chunk*) ((char *)shm_list_ptr->ptr + shm_varpos);
329 RETURN_BOOL(php_check_shm_data(shm_list_ptr->ptr, shm_ke
359 php_put_shm_data(sysvshm_chunk_head *ptr, long key, const char *data, long len) argument
388 php_check_shm_data(sysvshm_chunk_head *ptr, long key) argument
415 php_remove_shm_data(sysvshm_chunk_head *ptr, long shm_varpos) argument
[all...]
/PHP_5_5/ext/xmlwriter/
H A Dphp_xmlwriter.c96 if (intern->ptr) {
97 xmlFreeTextWriter(intern->ptr);
98 intern->ptr = NULL;
735 intern = (xmlwriter_object *) rsrc->ptr;
744 xmlTextWriterPtr ptr; local
770 ptr = intern->ptr;
772 if (ptr) {
773 retval = internal_function(ptr, (xmlChar *) name);
786 xmlTextWriterPtr ptr; local
824 xmlTextWriterPtr ptr; local
891 xmlTextWriterPtr ptr; local
935 xmlTextWriterPtr ptr; local
980 xmlTextWriterPtr ptr; local
1033 xmlTextWriterPtr ptr; local
1093 xmlTextWriterPtr ptr; local
1148 xmlTextWriterPtr ptr; local
1219 xmlTextWriterPtr ptr; local
1263 xmlTextWriterPtr ptr; local
1331 xmlTextWriterPtr ptr; local
1384 xmlTextWriterPtr ptr; local
1432 xmlTextWriterPtr ptr; local
1481 xmlTextWriterPtr ptr; local
1539 xmlTextWriterPtr ptr; local
1599 xmlTextWriterPtr ptr; local
1644 xmlTextWriterPtr ptr; local
1696 xmlTextWriterPtr ptr; local
1747 xmlTextWriterPtr ptr; local
1834 xmlTextWriterPtr ptr; local
1887 xmlTextWriterPtr ptr; local
[all...]
H A Dphp_xmlwriter.h38 xmlTextWriterPtr ptr; member in struct:_xmlwriter_object
/PHP_5_5/main/
H A Dfopen_wrappers.c86 char **p, *pathbuf, *ptr, *end; local
114 ptr = pathbuf = estrdup(new_value);
115 while (ptr && *ptr) {
116 end = strchr(ptr, DEFAULT_DIR_SEPARATOR);
121 if (php_check_open_basedir_ex(ptr, 0 TSRMLS_CC) != 0) {
126 ptr = end;
298 char *ptr; local
311 ptr = pathbuf;
313 while (ptr
477 const char *ptr, *end, *p; local
613 char *pathbuf, *ptr, *end; local
[all...]
/PHP_5_5/main/streams/
H A Dphp_streams_int.h29 #define erealloc_rel_orig(ptr, size) \
31 ? _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \
32 : _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) )
35 #define perealloc_rel_orig(ptr, size, persistent) ((persistent) ? realloc((ptr), (size)) : erealloc_rel_orig((ptr), (size)))
38 # define perealloc_rel_orig(ptr, size, persistent) perealloc((ptr), (size), (persistent))
/PHP_5_5/TSRM/
H A Dtsrm_nw.c58 char *ptr = NULL; local
127 ptr = tsrm_strtok_r((char*)commandline, WHITESPACE, NULL);
128 ptrLen = strlen(ptr);
136 strcpy (command, ptr);
138 ptr = tsrm_strtok_r(NULL, WHITESPACE, NULL);
139 while (ptr && (argc < MAX_ARGS)) {
140 ptrLen = strlen(ptr);
156 strcpy (argv[argc], ptr);
158 ptr = tsrm_strtok_r(NULL, WHITESPACE, NULL);
/PHP_5_5/Zend/
H A Dzend_alloc.h60 ZEND_API void _efree(void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
62 ZEND_API void *_erealloc(void *ptr, size_t size, int allow_failure ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_ALLOC_SIZE(2);
63 ZEND_API void *_safe_erealloc(void *ptr, size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
64 ZEND_API void *_safe_realloc(void *ptr, size_t nmemb, size_t size, size_t offset);
67 ZEND_API size_t _zend_mem_block_size(void *ptr TSRMLS_DC ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
72 #define efree(ptr) _efree((ptr) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
74 #define erealloc(ptr, size) _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
75 #define safe_erealloc(ptr, nmem
[all...]
H A Dzend_execute.c108 __t->var.ptr = *__t->var.ptr_ptr; \
109 __t->var.ptr_ptr = &__t->var.ptr; \
110 if (!PZVAL_IS_REF(__t->var.ptr) && \
111 Z_REFCOUNT_P(__t->var.ptr) > 2) { \
119 __t->var.ptr = (val); \
120 __t->var.ptr_ptr = &__t->var.ptr; \
184 zval *ptr = EX_T(var).var.ptr; local
186 PZVAL_UNLOCK(ptr, should_free);
187 return ptr;
190 _get_zval_cv_lookup(zval ***ptr, zend_uint var, int type TSRMLS_DC) argument
221 _get_zval_cv_lookup_BP_VAR_R(zval ***ptr, zend_uint var TSRMLS_DC) argument
233 _get_zval_cv_lookup_BP_VAR_UNSET(zval ***ptr, zend_uint var TSRMLS_DC) argument
245 _get_zval_cv_lookup_BP_VAR_IS(zval ***ptr, zend_uint var TSRMLS_DC) argument
256 _get_zval_cv_lookup_BP_VAR_RW(zval ***ptr, zend_uint var TSRMLS_DC) argument
273 _get_zval_cv_lookup_BP_VAR_W(zval ***ptr, zend_uint var TSRMLS_DC) argument
290 zval ***ptr = EX_CV_NUM(EG(current_execute_data), var); local
300 zval ***ptr = EX_CV_NUM(execute_data, var); local
310 zval ***ptr = EX_CV_NUM(execute_data, var); local
320 zval ***ptr = EX_CV_NUM(execute_data, var); local
330 zval ***ptr = EX_CV_NUM(execute_data, var); local
340 zval ***ptr = EX_CV_NUM(execute_data, var); local
391 zval ***ptr = EX_CV_NUM(EG(current_execute_data), var); local
401 zval ***ptr = EX_CV_NUM(execute_data, var); local
411 zval ***ptr = EX_CV_NUM(execute_data, var); local
421 zval ***ptr = EX_CV_NUM(execute_data, var); local
431 zval ***ptr = EX_CV_NUM(execute_data, var); local
441 zval ***ptr = EX_CV_NUM(execute_data, var); local
580 zend_execute_data *ptr = EG(current_execute_data)->prev_execute_data; local
1269 zval *ptr; local
1386 zval *ptr; local
1400 zval *ptr = Z_OBJ_HT_P(container)->read_property(container, prop_ptr, type, key TSRMLS_CC); local
[all...]
H A Dzend_ptr_stack.c43 va_list ptr; local
48 va_start(ptr, count);
50 elem = va_arg(ptr, void *);
55 va_end(ptr);
61 va_list ptr; local
64 va_start(ptr, count);
66 elem = va_arg(ptr, void **);
71 va_end(ptr);
H A Dzend_highlight.c59 const unsigned char *ptr = (const unsigned char*)s, *end = ptr + len; local
64 LANG_SCNG(output_filter)(&filtered, &filtered_len, ptr, len TSRMLS_CC);
65 ptr = filtered;
69 while (ptr<end) {
70 if (*ptr==' ') {
72 zend_html_putc(*ptr);
73 } while ((++ptr < end) && (*ptr==' '));
75 zend_html_putc(*ptr
[all...]
/PHP_5_5/ext/date/lib/
H A Dparse_iso_intervals.c69 #define YYMARKER s->ptr
76 #define TIMELIB_INIT s->cur = cursor; str = timelib_string(s); ptr = str
91 uchar *lim, *str, *ptr, *cur, *tok, *pos; member in struct:Scanner
133 static timelib_sll timelib_get_nr(char **ptr, int max_length) argument
139 while ((**ptr < '0') || (**ptr > '9')) {
140 if (**ptr == '\0') {
143 ++*ptr;
145 begin = *ptr;
146 while ((**ptr >
158 timelib_get_unsigned_nr(char **ptr, int max_length) argument
179 timelib_eat_spaces(char **ptr) argument
186 timelib_eat_until_separator(char **ptr) argument
193 timelib_get_zone(char **ptr, int *dst, timelib_time *t, int *tz_not_found, const timelib_tzdb *tzdb) argument
246 char *str, *ptr = NULL; local
[all...]
H A Dparse_date.re102 #define YYMARKER s->ptr
118 #define TIMELIB_INIT s->cur = cursor; str = timelib_string(s); ptr = str
151 uchar *lim, *str, *ptr, *cur, *tok, *pos;
298 char *ptr = s;
299 while (ptr[0] == ' ' || ptr[0] == '\t') {
300 ptr++;
302 return ptr;
313 s->ptr -= cnt;
322 s->ptr
[all...]
H A Dparse_iso_intervals.re67 #define YYMARKER s->ptr
74 #define TIMELIB_INIT s->cur = cursor; str = timelib_string(s); ptr = str
89 uchar *lim, *str, *ptr, *cur, *tok, *pos;
131 static timelib_sll timelib_get_nr(char **ptr, int max_length)
137 while ((**ptr < '0') || (**ptr > '9')) {
138 if (**ptr == '\0') {
141 ++*ptr;
143 begin = *ptr;
144 while ((**ptr >
[all...]
/PHP_5_5/ext/mysqli/
H A Dmysqli_warning.c192 if (obj->ptr) {
202 ((MYSQLI_RESOURCE *)(obj->ptr))->ptr = w;
217 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))->ptr) {
221 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr;
236 if (!obj->ptr || !((MYSQLI_RESOURCE *)(obj->ptr))
[all...]
/PHP_5_5/ext/mysqlnd/
H A Dmysqlnd_alloc.c105 TRACE_ALLOC_INF_FMT("size=%lu ptr=%p", size, ret);
145 TRACE_ALLOC_INF_FMT("size=%lu ptr=%p persistent=%u", size, ret, persistent);
190 TRACE_ALLOC_INF_FMT("size=%lu ptr=%p", size, ret);
228 TRACE_ALLOC_INF_FMT("size=%lu ptr=%p", size, ret);
243 void * _mysqlnd_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D) argument
247 size_t old_size = collect_memory_statistics && ptr? *(size_t *) (((char*)ptr) - sizeof(size_t)) : 0;
259 TRACE_ALLOC_INF_FMT("ptr=%p old_size=%lu, new_size=%lu", ptr, old_size, new_size);
265 ret = _erealloc(REAL_PTR(ptr), REAL_SIZ
284 _mysqlnd_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D) argument
359 _mysqlnd_pefree(void *ptr, zend_bool persistent MYSQLND_MEM_D) argument
469 _mysqlnd_realloc(void *ptr, size_t new_size MYSQLND_MEM_D) argument
546 _mysqlnd_pestrndup(const char * const ptr, size_t length, zend_bool persistent MYSQLND_MEM_D) argument
582 _mysqlnd_pestrdup(const char * const ptr, zend_bool persistent MYSQLND_MEM_D) argument
679 mysqlnd_zend_mm_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D) argument
687 mysqlnd_zend_mm_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D) argument
703 mysqlnd_zend_mm_pefree(void * ptr, zend_bool persistent MYSQLND_MEM_D) argument
727 mysqlnd_zend_mm_realloc(void * ptr, size_t new_size MYSQLND_MEM_D) argument
743 mysqlnd_zend_mm_pestrndup(const char * const ptr, size_t length, zend_bool persistent MYSQLND_MEM_D) argument
751 mysqlnd_zend_mm_pestrdup(const char * const ptr, zend_bool persistent MYSQLND_MEM_D) argument
[all...]
H A Dmysqlnd_alloc.h38 void * (*m_erealloc)(void *ptr, size_t new_size MYSQLND_MEM_D);
39 void * (*m_perealloc)(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D);
40 void (*m_efree)(void *ptr MYSQLND_MEM_D);
41 void (*m_pefree)(void *ptr, zend_bool persistent MYSQLND_MEM_D);
44 void * (*m_realloc)(void *ptr, size_t new_size MYSQLND_MEM_D);
45 void (*m_free)(void *ptr MYSQLND_MEM_D);
46 char * (*m_pestrndup)(const char * const ptr, size_t size, zend_bool persistent MYSQLND_MEM_D);
47 char * (*m_pestrdup)(const char * const ptr, zend_bool persistent MYSQLND_MEM_D);
59 PHPAPI void * _mysqlnd_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D);
60 PHPAPI void * _mysqlnd_perealloc(void *ptr, size_
[all...]
H A Dmysqlnd_block_alloc.c38 if (chunk->ptr == (pool->arena + (pool->arena_size - pool->free_size - chunk->size))) {
41 a bit of memory from the pool. Next time we will return from the same ptr.
47 mnd_free(chunk->ptr);
63 if (chunk->ptr == (pool->arena + (pool->arena_size - pool->free_size - chunk->size))) {
66 a bit of memory from the pool. Next time we will return from the same ptr.
74 memcpy(new_ptr, chunk->ptr, chunk->size);
75 chunk->ptr = new_ptr;
94 memcpy(new_ptr, chunk->ptr, chunk->size);
95 chunk->ptr = new_ptr;
102 zend_uchar *new_ptr = mnd_realloc(chunk->ptr, siz
[all...]

Completed in 63 milliseconds

12345678