Lines Matching refs:param
47 PHPDBG_API const char *phpdbg_get_param_type(const phpdbg_param_t *param) /* {{{ */ in phpdbg_get_param_type() argument
49 switch (param->type) { in phpdbg_get_param_type()
73 PHPDBG_API void phpdbg_clear_param(phpdbg_param_t *param) /* {{{ */ in phpdbg_clear_param() argument
75 if (param) { in phpdbg_clear_param()
76 switch (param->type) { in phpdbg_clear_param()
78 efree(param->file.name); in phpdbg_clear_param()
81 efree(param->method.class); in phpdbg_clear_param()
82 efree(param->method.name); in phpdbg_clear_param()
85 efree(param->str); in phpdbg_clear_param()
94 PHPDBG_API char* phpdbg_param_tostring(const phpdbg_param_t *param, char **pointer) /* {{{ */ in phpdbg_param_tostring() argument
96 switch (param->type) { in phpdbg_param_tostring()
98 ZEND_IGNORE_VALUE(asprintf(pointer, "%s", param->str)); in phpdbg_param_tostring()
102 ZEND_IGNORE_VALUE(asprintf(pointer, ZEND_ULONG_FMT, param->addr)); in phpdbg_param_tostring()
106 ZEND_IGNORE_VALUE(asprintf(pointer, "%li", param->num)); in phpdbg_param_tostring()
110 ZEND_IGNORE_VALUE(asprintf(pointer, "%s::%s", param->method.class, param->method.name)); in phpdbg_param_tostring()
114 if (param->num) { in phpdbg_param_tostring()
115 …ZEND_IGNORE_VALUE(asprintf(pointer, "%s:%lu#%lu", param->file.name, param->file.line, param->num)); in phpdbg_param_tostring()
117 ZEND_IGNORE_VALUE(asprintf(pointer, "%s:%lu", param->file.name, param->file.line)); in phpdbg_param_tostring()
122 ZEND_IGNORE_VALUE(asprintf(pointer, "%s#%lu", param->str, param->num)); in phpdbg_param_tostring()
126 …ZEND_IGNORE_VALUE(asprintf(pointer, "%s::%s#%lu", param->method.class, param->method.name, param->… in phpdbg_param_tostring()
194 PHPDBG_API zend_ulong phpdbg_hash_param(const phpdbg_param_t *param) /* {{{ */ in phpdbg_hash_param() argument
196 zend_ulong hash = param->type; in phpdbg_hash_param()
198 switch (param->type) { in phpdbg_hash_param()
204 hash += zend_inline_hash_func(param->str, param->len); in phpdbg_hash_param()
208 hash += zend_inline_hash_func(param->method.class, strlen(param->method.class)); in phpdbg_hash_param()
209 hash += zend_inline_hash_func(param->method.name, strlen(param->method.name)); in phpdbg_hash_param()
213 hash += zend_inline_hash_func(param->file.name, strlen(param->file.name)); in phpdbg_hash_param()
214 hash += param->file.line; in phpdbg_hash_param()
215 if (param->num) in phpdbg_hash_param()
216 hash += param->num; in phpdbg_hash_param()
220 hash += param->addr; in phpdbg_hash_param()
224 hash += param->num; in phpdbg_hash_param()
228 hash += zend_inline_hash_func(param->str, param->len); in phpdbg_hash_param()
229 hash += param->num; in phpdbg_hash_param()
233 hash += zend_inline_hash_func(param->method.class, strlen(param->method.class)); in phpdbg_hash_param()
234 hash += zend_inline_hash_func(param->method.name, strlen(param->method.name)); in phpdbg_hash_param()
235 if (param->num) in phpdbg_hash_param()
236 hash+= param->num; in phpdbg_hash_param()
324 PHPDBG_API void phpdbg_param_debug(const phpdbg_param_t *param, const char *msg) { in phpdbg_param_debug() argument
325 if (param && param->type) { in phpdbg_param_debug()
326 switch (param->type) { in phpdbg_param_debug()
328 fprintf(stderr, "%s STR_PARAM(%s=%zu)\n", msg, param->str, param->len); in phpdbg_param_debug()
332 fprintf(stderr, "%s ADDR_PARAM(" ZEND_ULONG_FMT ")\n", msg, param->addr); in phpdbg_param_debug()
336 fprintf(stderr, "%s NUMERIC_FILE_PARAM(%s:#%lu)\n", msg, param->file.name, param->file.line); in phpdbg_param_debug()
340 fprintf(stderr, "%s FILE_PARAM(%s:%lu)\n", msg, param->file.name, param->file.line); in phpdbg_param_debug()
344 fprintf(stderr, "%s METHOD_PARAM(%s::%s)\n", msg, param->method.class, param->method.name); in phpdbg_param_debug()
348 …fprintf(stderr, "%s NUMERIC_METHOD_PARAM(%s::%s)\n", msg, param->method.class, param->method.name); in phpdbg_param_debug()
352 fprintf(stderr, "%s NUMERIC_FUNCTION_PARAM(%s::%ld)\n", msg, param->str, param->num); in phpdbg_param_debug()
356 fprintf(stderr, "%s NUMERIC_PARAM(%ld)\n", msg, param->num); in phpdbg_param_debug()
360 fprintf(stderr, "%s COND_PARAM(%s=%zu)\n", msg, param->str, param->len); in phpdbg_param_debug()
364 fprintf(stderr, "%s OP_PARAM(%s=%zu)\n", msg, param->str, param->len); in phpdbg_param_debug()
434 PHPDBG_API void phpdbg_stack_push(phpdbg_param_t *stack, phpdbg_param_t *param) { in phpdbg_stack_push() argument
441 *(next) = *(param); in phpdbg_stack_push()
459 PHPDBG_API void phpdbg_stack_separate(phpdbg_param_t *param) { in phpdbg_stack_separate() argument
463 stack->next = param->next; in phpdbg_stack_separate()
464 param->next = stack; in phpdbg_stack_separate()
465 stack->top = param->top; in phpdbg_stack_separate()