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

/PHP_TRUNK/Zend/
H A Dzend_compile.h891 static zend_always_inline int zend_check_arg_send_type(const zend_function *zf, uint32_t arg_num, uint32_t mask) argument
893 arg_num--;
894 if (UNEXPECTED(arg_num >= zf->common.num_args)) {
898 arg_num = zf->common.num_args;
900 return UNEXPECTED((zf->common.arg_info[arg_num].pass_by_reference & mask) != 0);
903 #define ARG_MUST_BE_SENT_BY_REF(zf, arg_num) \
904 zend_check_arg_send_type(zf, arg_num, ZEND_SEND_BY_REF)
906 #define ARG_SHOULD_BE_SENT_BY_REF(zf, arg_num) \
907 zend_check_arg_send_type(zf, arg_num, ZEND_SEND_BY_REF|ZEND_SEND_PREFER_REF)
909 #define ARG_MAY_BE_SENT_BY_REF(zf, arg_num) \
[all...]
H A Dzend_execute.c592 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
610 arg_num, fclass, fsep, fname, need_msg, need_kind, given_msg, given_kind,
613 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);
616 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);
698 static void zend_verify_internal_arg_type(zend_function *zf, uint32_t arg_num, zval *arg) argument
704 if (EXPECTED(arg_num <= zf->internal_function.num_args)) {
705 cur_arg_info = &zf->internal_function.arg_info[arg_num-1];
718 zend_verify_arg_error(zf, arg_num, need_msg, class_name, "instance of ", ZSTR_VAL(Z_OBJCE_P(arg)->name), arg);
724 zend_verify_arg_error(zf, arg_num, need_msg, class_name, zend_zval_type_name(arg), "", arg);
727 zend_verify_arg_error(zf, arg_num, "b
739 zend_verify_arg_type(zend_function *zf, uint32_t arg_num, zval *arg, zval *default_value, void **cache_slot) argument
813 zend_verify_missing_arg_type(zend_function *zf, uint32_t arg_num, void **cache_slot) argument
853 zend_verify_missing_arg(zend_execute_data *execute_data, uint32_t arg_num, void **cache_slot) argument
2329 uint32_t arg_num = opline->extended_value & ZEND_FETCH_ARG_MASK; local
[all...]
H A Dzend_vm_def.h4371 int arg_num; variable
4375 arg_num = ZEND_CALL_NUM_ARGS(EX(call)) + 1;
4383 zend_vm_stack_extend_call_frame(&EX(call), arg_num - 1, zend_hash_num_elements(ht));
4391 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num + i)) {
4409 top = ZEND_CALL_ARG(EX(call), arg_num);
4410 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
4425 arg_num++;
4454 for (; iter->funcs->valid(iter) == SUCCESS; ++arg_num) {
4483 if (ARG_MUST_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
4486 " by unpacking a Traversable, passing by-value instead", arg_num,
4555 uint32_t arg_num; variable
4686 uint32_t arg_num = opline->op1.num; variable
4708 uint32_t arg_num; variable
4713 arg_num = opline->op1.num; variable
4747 uint32_t arg_num = opline->op1.num; variable
4764 zend_verify_arg_type(EX(func), arg_num, param, NULL, CACHE_ADDR(opline->op2.num)); local
[all...]
H A Dzend_vm_execute.h941 int arg_num; local
945 arg_num = ZEND_CALL_NUM_ARGS(EX(call)) + 1;
953 zend_vm_stack_extend_call_frame(&EX(call), arg_num - 1, zend_hash_num_elements(ht));
961 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num + i)) {
979 top = ZEND_CALL_ARG(EX(call), arg_num);
980 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
995 arg_num++;
1024 for (; iter->funcs->valid(iter) == SUCCESS; ++arg_num) {
1053 if (ARG_MUST_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
1056 " by unpacking a Traversable, passing by-value instead", arg_num,
1125 uint32_t arg_num; local
1201 uint32_t arg_num = opline->op1.num; local
1223 uint32_t arg_num = opline->op1.num; local
1240 zend_verify_arg_type(EX(func), arg_num, param, NULL, CACHE_ADDR(opline->op2.num)); local
2196 uint32_t arg_num; local
2201 arg_num = opline->op1.num; local
[all...]
H A Dzend_API.c497 static const char *zend_parse_arg_impl(int arg_num, zval *arg, va_list *va, const char **spec, char **error, int *severity) /* {{{ */ argument
747 static int zend_parse_arg(int arg_num, zval *arg, va_list *va, const char **spec, int flags) /* {{{ */ argument
753 expected_type = zend_parse_arg_impl(arg_num, arg, va, spec, &error, &severity);
763 class_name, space, get_active_function_name(), arg_num, error);
768 class_name, space, get_active_function_name(), arg_num, expected_type,
781 ZEND_API int zend_parse_parameter(int flags, int arg_num, zval *arg, const char *spec, ...) argument
787 ret = zend_parse_arg(arg_num, arg, &va, &spec, flags);
H A Dzend_compile.c2649 uint32_t arg_num = i + 1; local
2682 if (fbc && ARG_SHOULD_BE_SENT_BY_REF(fbc, arg_num)) {
2684 if (ARG_MAY_BE_SENT_BY_REF(fbc, arg_num)) {
2690 if (ARG_SHOULD_BE_SENT_BY_REF(fbc, arg_num)) {
2699 BP_VAR_FUNC_ARG | (arg_num << BP_VAR_SHIFT));
2707 if (fbc && ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) {
2713 if (ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) {
2726 opline->op2.opline_num = arg_num;
2727 opline->result.var = (uint32_t)(zend_intptr_t)ZEND_CALL_ARG(NULL, arg_num);

Completed in 54 milliseconds