Lines Matching refs:param

46 PHPDBG_API const char *phpdbg_get_param_type(const phpdbg_param_t *param TSRMLS_DC) /* {{{ */  in phpdbg_get_param_type()
48 switch (param->type) { in phpdbg_get_param_type()
72 PHPDBG_API void phpdbg_clear_param(phpdbg_param_t *param TSRMLS_DC) /* {{{ */ in phpdbg_clear_param()
74 if (param) { in phpdbg_clear_param()
75 switch (param->type) { in phpdbg_clear_param()
77 efree(param->file.name); in phpdbg_clear_param()
80 efree(param->method.class); in phpdbg_clear_param()
81 efree(param->method.name); in phpdbg_clear_param()
84 efree(param->str); in phpdbg_clear_param()
93 PHPDBG_API char* phpdbg_param_tostring(const phpdbg_param_t *param, char **pointer TSRMLS_DC) /* {{… in phpdbg_param_tostring() argument
95 switch (param->type) { in phpdbg_param_tostring()
98 "%s", param->str); in phpdbg_param_tostring()
103 "%#lx", param->addr); in phpdbg_param_tostring()
109 param->num); in phpdbg_param_tostring()
115 param->method.class, in phpdbg_param_tostring()
116 param->method.name); in phpdbg_param_tostring()
120 if (param->num) { in phpdbg_param_tostring()
123 param->file.name, in phpdbg_param_tostring()
124 param->file.line, in phpdbg_param_tostring()
125 param->num); in phpdbg_param_tostring()
129 param->file.name, in phpdbg_param_tostring()
130 param->file.line); in phpdbg_param_tostring()
136 "%s#%lu", param->str, param->num); in phpdbg_param_tostring()
142 param->method.class, in phpdbg_param_tostring()
143 param->method.name, in phpdbg_param_tostring()
144 param->num); in phpdbg_param_tostring()
213 PHPDBG_API zend_ulong phpdbg_hash_param(const phpdbg_param_t *param TSRMLS_DC) /* {{{ */ in phpdbg_hash_param()
215 zend_ulong hash = param->type; in phpdbg_hash_param()
217 switch (param->type) { in phpdbg_hash_param()
223 hash += zend_inline_hash_func(param->str, param->len); in phpdbg_hash_param()
227 hash += zend_inline_hash_func(param->method.class, strlen(param->method.class)); in phpdbg_hash_param()
228 hash += zend_inline_hash_func(param->method.name, strlen(param->method.name)); in phpdbg_hash_param()
232 hash += zend_inline_hash_func(param->file.name, strlen(param->file.name)); in phpdbg_hash_param()
233 hash += param->file.line; in phpdbg_hash_param()
234 if (param->num) in phpdbg_hash_param()
235 hash += param->num; in phpdbg_hash_param()
239 hash += param->addr; in phpdbg_hash_param()
243 hash += param->num; in phpdbg_hash_param()
247 hash += zend_inline_hash_func(param->str, param->len); in phpdbg_hash_param()
248 hash += param->num; in phpdbg_hash_param()
252 hash += zend_inline_hash_func(param->method.class, strlen(param->method.class)); in phpdbg_hash_param()
253 hash += zend_inline_hash_func(param->method.name, strlen(param->method.name)); in phpdbg_hash_param()
254 if (param->num) in phpdbg_hash_param()
255 hash+= param->num; in phpdbg_hash_param()
343 PHPDBG_API void phpdbg_param_debug(const phpdbg_param_t *param, const char *msg) { in phpdbg_param_debug() argument
344 if (param && param->type) { in phpdbg_param_debug()
345 switch (param->type) { in phpdbg_param_debug()
347 fprintf(stderr, "%s STR_PARAM(%s=%lu)\n", msg, param->str, param->len); in phpdbg_param_debug()
351 fprintf(stderr, "%s ADDR_PARAM(%lu)\n", msg, param->addr); in phpdbg_param_debug()
355 fprintf(stderr, "%s NUMERIC_FILE_PARAM(%s:#%lu)\n", msg, param->file.name, param->file.line); in phpdbg_param_debug()
359 fprintf(stderr, "%s FILE_PARAM(%s:%lu)\n", msg, param->file.name, param->file.line); in phpdbg_param_debug()
363 fprintf(stderr, "%s METHOD_PARAM(%s::%s)\n", msg, param->method.class, param->method.name); in phpdbg_param_debug()
367 …fprintf(stderr, "%s NUMERIC_METHOD_PARAM(%s::%s)\n", msg, param->method.class, param->method.name); in phpdbg_param_debug()
371 fprintf(stderr, "%s NUMERIC_FUNCTION_PARAM(%s::%ld)\n", msg, param->str, param->num); in phpdbg_param_debug()
375 fprintf(stderr, "%s NUMERIC_PARAM(%ld)\n", msg, param->num); in phpdbg_param_debug()
379 fprintf(stderr, "%s COND_PARAM(%s=%lu)\n", msg, param->str, param->len); in phpdbg_param_debug()
383 fprintf(stderr, "%s OP_PARAM(%s=%lu)\n", msg, param->str, param->len); in phpdbg_param_debug()
444 PHPDBG_API void phpdbg_stack_push(phpdbg_param_t *stack, phpdbg_param_t *param) { in phpdbg_stack_push() argument
450 *(next) = *(param); in phpdbg_stack_push()