Searched defs:arg_num (Results 1 - 6 of 6) sorted by relevance

/PHP_TRUNK/Zend/
H A Dzend_compile.h861 static zend_always_inline int zend_check_arg_send_type(const zend_function *zf, uint32_t arg_num, uint32_t mask) argument
863 arg_num--;
864 if (UNEXPECTED(arg_num >= zf->common.num_args)) {
868 arg_num = zf->common.num_args;
870 return UNEXPECTED((zf->common.arg_info[arg_num].pass_by_reference & mask) != 0);
873 #define ARG_MUST_BE_SENT_BY_REF(zf, arg_num) \
874 zend_check_arg_send_type(zf, arg_num, ZEND_SEND_BY_REF)
876 #define ARG_SHOULD_BE_SENT_BY_REF(zf, arg_num) \
877 zend_check_arg_send_type(zf, arg_num, ZEND_SEND_BY_REF|ZEND_SEND_PREFER_REF)
879 #define ARG_MAY_BE_SENT_BY_REF(zf, arg_num) \
[all...]
H A Dzend_execute.c601 ZEND_API void zend_verify_arg_error(const zend_function *zf, uint32_t arg_num, const char *need_msg, const char *need_kind, const char *given_msg, const char *given_kind, zval *arg) argument
625 arg_num, fclass, fsep, fname, need_msg, need_kind, given_msg, given_kind,
628 zend_type_error("Argument %d passed to %s%s%s() must %s%s, %s%s given", arg_num, fclass, fsep, fname, need_msg, need_kind, given_msg, given_kind);
635 zend_type_error("Argument %d passed to %s%s%s() must %s%s, %s%s given", arg_num, fclass, fsep, fname, need_msg, need_kind, given_msg, given_kind);
715 static void zend_verify_internal_arg_type(zend_function *zf, uint32_t arg_num, zval *arg) argument
721 if (EXPECTED(arg_num <= zf->internal_function.num_args)) {
722 cur_arg_info = &zf->internal_function.arg_info[arg_num-1];
735 zend_verify_arg_error(zf, arg_num, need_msg, class_name, "instance of ", Z_OBJCE_P(arg)->name->val, arg);
741 zend_verify_arg_error(zf, arg_num, need_msg, class_name, zend_zval_type_name(arg), "", arg);
744 zend_verify_arg_error(zf, arg_num, "b
756 zend_verify_arg_type(zend_function *zf, uint32_t arg_num, zval *arg, zval *default_value) argument
797 zend_verify_missing_arg_type(zend_function *zf, uint32_t arg_num) argument
828 zend_verify_missing_arg(zend_execute_data *execute_data, uint32_t arg_num) argument
2099 uint32_t arg_num = opline->extended_value & ZEND_FETCH_ARG_MASK; local
[all...]
H A Dzend_vm_def.h4066 int arg_num; variable
4071 arg_num = ZEND_CALL_NUM_ARGS(EX(call)) + 1;
4080 zend_vm_stack_extend_call_frame(&EX(call), arg_num - 1, zend_hash_num_elements(ht));
4088 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num + i)) {
4106 top = ZEND_CALL_ARG(EX(call), arg_num);
4107 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
4122 arg_num++;
4154 for (; iter->funcs->valid(iter) == SUCCESS; ++arg_num) {
4183 if (ARG_MUST_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
4186 " by unpacking a Traversable, passing by-value instead", arg_num,
4255 uint32_t arg_num; variable
4434 uint32_t arg_num = opline->op1.num; variable
4443 zend_verify_arg_type(EX(func), arg_num, param, NULL); variable
4453 uint32_t arg_num = opline->op1.num; variable
4471 zend_verify_arg_type(EX(func), arg_num, param, EX_CONSTANT(opline->op2)); variable
4481 uint32_t arg_num = opline->op1.num; variable
4498 zend_verify_arg_type(EX(func), arg_num, param, NULL); local
[all...]
H A Dzend_vm_execute.h927 int arg_num; local
932 arg_num = ZEND_CALL_NUM_ARGS(EX(call)) + 1;
941 zend_vm_stack_extend_call_frame(&EX(call), arg_num - 1, zend_hash_num_elements(ht));
949 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num + i)) {
967 top = ZEND_CALL_ARG(EX(call), arg_num);
968 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
983 arg_num++;
1015 for (; iter->funcs->valid(iter) == SUCCESS; ++arg_num) {
1044 if (ARG_MUST_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
1047 " by unpacking a Traversable, passing by-value instead", arg_num,
1116 uint32_t arg_num; local
1216 uint32_t arg_num = opline->op1.num; local
1225 zend_verify_arg_type(EX(func), arg_num, param, NULL); local
1235 uint32_t arg_num = opline->op1.num; local
1252 zend_verify_arg_type(EX(func), arg_num, param, NULL); local
2067 uint32_t arg_num = opline->op1.num; local
2085 zend_verify_arg_type(EX(func), arg_num, param, EX_CONSTANT(opline->op2)); local
[all...]
H A Dzend_API.c503 static const char *zend_parse_arg_impl(int arg_num, zval *arg, va_list *va, const char **spec, char **error, int *severity) /* {{{ */ argument
753 static int zend_parse_arg(int arg_num, zval *arg, va_list *va, const char **spec, int flags) /* {{{ */ argument
759 expected_type = zend_parse_arg_impl(arg_num, arg, va, spec, &error, &severity);
767 class_name, space, get_active_function_name(), arg_num, error); local
771 class_name, space, get_active_function_name(), arg_num, expected_type, local
784 ZEND_API int zend_parse_parameter(int flags, int arg_num, zval *arg, const char *spec, ...) argument
790 ret = zend_parse_arg(arg_num, arg, &va, &spec, flags);
H A Dzend_compile.c2585 uint32_t arg_num = i + 1; local
2618 if (fbc && ARG_SHOULD_BE_SENT_BY_REF(fbc, arg_num)) {
2620 if (ARG_MAY_BE_SENT_BY_REF(fbc, arg_num)) {
2626 if (ARG_SHOULD_BE_SENT_BY_REF(fbc, arg_num)) {
2635 BP_VAR_FUNC_ARG | (arg_num << BP_VAR_SHIFT));
2642 if (fbc && ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) {
2648 if (ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) {
2661 opline->op2.opline_num = arg_num;
2662 opline->result.var = (uint32_t)(zend_intptr_t)ZEND_CALL_ARG(NULL, arg_num);

Completed in 56 milliseconds