Lines Matching refs:param
49 PHPDBG_API const char *phpdbg_get_param_type(const phpdbg_param_t *param) /* {{{ */ in phpdbg_get_param_type() argument
51 switch (param->type) { in phpdbg_get_param_type()
75 PHPDBG_API void phpdbg_clear_param(phpdbg_param_t *param) /* {{{ */ in phpdbg_clear_param() argument
77 if (param) { in phpdbg_clear_param()
78 switch (param->type) { in phpdbg_clear_param()
80 efree(param->file.name); in phpdbg_clear_param()
83 efree(param->method.class); in phpdbg_clear_param()
84 efree(param->method.name); in phpdbg_clear_param()
87 efree(param->str); in phpdbg_clear_param()
96 PHPDBG_API char* phpdbg_param_tostring(const phpdbg_param_t *param, char **pointer) /* {{{ */ in phpdbg_param_tostring() argument
98 switch (param->type) { in phpdbg_param_tostring()
100 ZEND_IGNORE_VALUE(asprintf(pointer, "%s", param->str)); in phpdbg_param_tostring()
104 ZEND_IGNORE_VALUE(asprintf(pointer, ZEND_ULONG_FMT, param->addr)); in phpdbg_param_tostring()
108 ZEND_IGNORE_VALUE(asprintf(pointer, ZEND_LONG_FMT, param->num)); in phpdbg_param_tostring()
112 ZEND_IGNORE_VALUE(asprintf(pointer, "%s::%s", param->method.class, param->method.name)); in phpdbg_param_tostring()
116 if (param->num) { in phpdbg_param_tostring()
117 …asprintf(pointer, "%s:"ZEND_ULONG_FMT"#"ZEND_ULONG_FMT, param->file.name, param->file.line, param-… in phpdbg_param_tostring()
119 ZEND_IGNORE_VALUE(asprintf(pointer, "%s:"ZEND_ULONG_FMT, param->file.name, param->file.line)); in phpdbg_param_tostring()
124 ZEND_IGNORE_VALUE(asprintf(pointer, "%s#"ZEND_ULONG_FMT, param->str, param->num)); in phpdbg_param_tostring()
128 …ORE_VALUE(asprintf(pointer, "%s::%s#"ZEND_ULONG_FMT, param->method.class, param->method.name, para… in phpdbg_param_tostring()
196 PHPDBG_API zend_ulong phpdbg_hash_param(const phpdbg_param_t *param) /* {{{ */ in phpdbg_hash_param() argument
198 zend_ulong hash = param->type; in phpdbg_hash_param()
200 switch (param->type) { in phpdbg_hash_param()
206 hash += zend_hash_func(param->str, param->len); in phpdbg_hash_param()
210 hash += zend_hash_func(param->method.class, strlen(param->method.class)); in phpdbg_hash_param()
211 hash += zend_hash_func(param->method.name, strlen(param->method.name)); in phpdbg_hash_param()
215 hash += zend_hash_func(param->file.name, strlen(param->file.name)); in phpdbg_hash_param()
216 hash += param->file.line; in phpdbg_hash_param()
217 if (param->num) in phpdbg_hash_param()
218 hash += param->num; in phpdbg_hash_param()
222 hash += param->addr; in phpdbg_hash_param()
226 hash += param->num; in phpdbg_hash_param()
230 hash += zend_hash_func(param->str, param->len); in phpdbg_hash_param()
231 hash += param->num; in phpdbg_hash_param()
235 hash += zend_hash_func(param->method.class, strlen(param->method.class)); in phpdbg_hash_param()
236 hash += zend_hash_func(param->method.name, strlen(param->method.name)); in phpdbg_hash_param()
237 if (param->num) in phpdbg_hash_param()
238 hash+= param->num; in phpdbg_hash_param()
326 PHPDBG_API void phpdbg_param_debug(const phpdbg_param_t *param, const char *msg) { in phpdbg_param_debug() argument
327 if (param && param->type) { in phpdbg_param_debug()
328 switch (param->type) { in phpdbg_param_debug()
330 fprintf(stderr, "%s STR_PARAM(%s=%zu)\n", msg, param->str, param->len); in phpdbg_param_debug()
334 fprintf(stderr, "%s ADDR_PARAM(" ZEND_ULONG_FMT ")\n", msg, param->addr); in phpdbg_param_debug()
338 …fprintf(stderr, "%s NUMERIC_FILE_PARAM(%s:#"ZEND_ULONG_FMT")\n", msg, param->file.name, param->fil… in phpdbg_param_debug()
342 … fprintf(stderr, "%s FILE_PARAM(%s:"ZEND_ULONG_FMT")\n", msg, param->file.name, param->file.line); in phpdbg_param_debug()
346 fprintf(stderr, "%s METHOD_PARAM(%s::%s)\n", msg, param->method.class, param->method.name); in phpdbg_param_debug()
350 …fprintf(stderr, "%s NUMERIC_METHOD_PARAM(%s::%s)\n", msg, param->method.class, param->method.name); in phpdbg_param_debug()
354 … fprintf(stderr, "%s NUMERIC_FUNCTION_PARAM(%s::"ZEND_LONG_FMT")\n", msg, param->str, param->num); in phpdbg_param_debug()
358 fprintf(stderr, "%s NUMERIC_PARAM("ZEND_LONG_FMT")\n", msg, param->num); in phpdbg_param_debug()
362 fprintf(stderr, "%s COND_PARAM(%s=%zu)\n", msg, param->str, param->len); in phpdbg_param_debug()
366 fprintf(stderr, "%s OP_PARAM(%s=%zu)\n", msg, param->str, param->len); in phpdbg_param_debug()
436 PHPDBG_API void phpdbg_stack_push(phpdbg_param_t *stack, phpdbg_param_t *param) { in phpdbg_stack_push() argument
443 *(next) = *(param); in phpdbg_stack_push()
461 PHPDBG_API void phpdbg_stack_separate(phpdbg_param_t *param) { in phpdbg_stack_separate() argument
465 stack->next = param->next; in phpdbg_stack_separate()
466 param->next = stack; in phpdbg_stack_separate()
467 stack->top = param->top; in phpdbg_stack_separate()