Lines Matching refs:param

45 PHPDBG_API const char *phpdbg_get_param_type(const phpdbg_param_t *param) /* {{{ */  in phpdbg_get_param_type()  argument
47 switch (param->type) { in phpdbg_get_param_type()
71 PHPDBG_API void phpdbg_clear_param(phpdbg_param_t *param) /* {{{ */ in phpdbg_clear_param() argument
73 if (param) { in phpdbg_clear_param()
74 switch (param->type) { in phpdbg_clear_param()
76 efree(param->file.name); in phpdbg_clear_param()
79 efree(param->method.class); in phpdbg_clear_param()
80 efree(param->method.name); in phpdbg_clear_param()
83 efree(param->str); in phpdbg_clear_param()
92 PHPDBG_API char* phpdbg_param_tostring(const phpdbg_param_t *param, char **pointer) /* {{{ */ in phpdbg_param_tostring() argument
94 switch (param->type) { in phpdbg_param_tostring()
96 ZEND_IGNORE_VALUE(asprintf(pointer, "%s", param->str)); in phpdbg_param_tostring()
100 ZEND_IGNORE_VALUE(asprintf(pointer, ZEND_ULONG_FMT, param->addr)); in phpdbg_param_tostring()
104 ZEND_IGNORE_VALUE(asprintf(pointer, "%li", param->num)); in phpdbg_param_tostring()
108 ZEND_IGNORE_VALUE(asprintf(pointer, "%s::%s", param->method.class, param->method.name)); in phpdbg_param_tostring()
112 if (param->num) { in phpdbg_param_tostring()
113 …ZEND_IGNORE_VALUE(asprintf(pointer, "%s:%lu#%lu", param->file.name, param->file.line, param->num)); in phpdbg_param_tostring()
115 ZEND_IGNORE_VALUE(asprintf(pointer, "%s:%lu", param->file.name, param->file.line)); in phpdbg_param_tostring()
120 ZEND_IGNORE_VALUE(asprintf(pointer, "%s#%lu", param->str, param->num)); in phpdbg_param_tostring()
124 …ZEND_IGNORE_VALUE(asprintf(pointer, "%s::%s#%lu", param->method.class, param->method.name, param->… in phpdbg_param_tostring()
192 PHPDBG_API zend_ulong phpdbg_hash_param(const phpdbg_param_t *param) /* {{{ */ in phpdbg_hash_param() argument
194 zend_ulong hash = param->type; in phpdbg_hash_param()
196 switch (param->type) { in phpdbg_hash_param()
202 hash += zend_hash_func(param->str, param->len); in phpdbg_hash_param()
206 hash += zend_hash_func(param->method.class, strlen(param->method.class)); in phpdbg_hash_param()
207 hash += zend_hash_func(param->method.name, strlen(param->method.name)); in phpdbg_hash_param()
211 hash += zend_hash_func(param->file.name, strlen(param->file.name)); in phpdbg_hash_param()
212 hash += param->file.line; in phpdbg_hash_param()
213 if (param->num) in phpdbg_hash_param()
214 hash += param->num; in phpdbg_hash_param()
218 hash += param->addr; in phpdbg_hash_param()
222 hash += param->num; in phpdbg_hash_param()
226 hash += zend_hash_func(param->str, param->len); in phpdbg_hash_param()
227 hash += param->num; in phpdbg_hash_param()
231 hash += zend_hash_func(param->method.class, strlen(param->method.class)); in phpdbg_hash_param()
232 hash += zend_hash_func(param->method.name, strlen(param->method.name)); in phpdbg_hash_param()
233 if (param->num) in phpdbg_hash_param()
234 hash+= param->num; in phpdbg_hash_param()
322 PHPDBG_API void phpdbg_param_debug(const phpdbg_param_t *param, const char *msg) { in phpdbg_param_debug() argument
323 if (param && param->type) { in phpdbg_param_debug()
324 switch (param->type) { in phpdbg_param_debug()
326 fprintf(stderr, "%s STR_PARAM(%s=%zu)\n", msg, param->str, param->len); in phpdbg_param_debug()
330 fprintf(stderr, "%s ADDR_PARAM(" ZEND_ULONG_FMT ")\n", msg, param->addr); in phpdbg_param_debug()
334 fprintf(stderr, "%s NUMERIC_FILE_PARAM(%s:#%lu)\n", msg, param->file.name, param->file.line); in phpdbg_param_debug()
338 fprintf(stderr, "%s FILE_PARAM(%s:%lu)\n", msg, param->file.name, param->file.line); in phpdbg_param_debug()
342 fprintf(stderr, "%s METHOD_PARAM(%s::%s)\n", msg, param->method.class, param->method.name); in phpdbg_param_debug()
346 …fprintf(stderr, "%s NUMERIC_METHOD_PARAM(%s::%s)\n", msg, param->method.class, param->method.name); in phpdbg_param_debug()
350 fprintf(stderr, "%s NUMERIC_FUNCTION_PARAM(%s::%ld)\n", msg, param->str, param->num); in phpdbg_param_debug()
354 fprintf(stderr, "%s NUMERIC_PARAM(%ld)\n", msg, param->num); in phpdbg_param_debug()
358 fprintf(stderr, "%s COND_PARAM(%s=%zu)\n", msg, param->str, param->len); in phpdbg_param_debug()
362 fprintf(stderr, "%s OP_PARAM(%s=%zu)\n", msg, param->str, param->len); in phpdbg_param_debug()
432 PHPDBG_API void phpdbg_stack_push(phpdbg_param_t *stack, phpdbg_param_t *param) { in phpdbg_stack_push() argument
439 *(next) = *(param); in phpdbg_stack_push()
457 PHPDBG_API void phpdbg_stack_separate(phpdbg_param_t *param) { in phpdbg_stack_separate() argument
461 stack->next = param->next; in phpdbg_stack_separate()
462 param->next = stack; in phpdbg_stack_separate()
463 stack->top = param->top; in phpdbg_stack_separate()