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

/PHP_TRUNK/Zend/
H A Dzend_compile.h848 static zend_always_inline int zend_check_arg_send_type(const zend_function *zf, uint32_t arg_num, uint32_t mask) argument
850 arg_num--;
851 if (UNEXPECTED(arg_num >= zf->common.num_args)) {
855 arg_num = zf->common.num_args;
857 return UNEXPECTED((zf->common.arg_info[arg_num].pass_by_reference & mask) != 0);
860 #define ARG_MUST_BE_SENT_BY_REF(zf, arg_num) \
861 zend_check_arg_send_type(zf, arg_num, ZEND_SEND_BY_REF)
863 #define ARG_SHOULD_BE_SENT_BY_REF(zf, arg_num) \
864 zend_check_arg_send_type(zf, arg_num, ZEND_SEND_BY_REF|ZEND_SEND_PREFER_REF)
866 #define ARG_MAY_BE_SENT_BY_REF(zf, arg_num) \
[all...]
H A Dzend_execute.c559 ZEND_API void zend_verify_arg_error(int error_type, 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
582 zend_error(error_type, "Argument %d passed to %s%s%s() must %s%s, %s%s given, called in %s on line %d and defined", arg_num, fclass, fsep, fname, need_msg, need_kind, given_msg, given_kind, ptr->func->op_array.filename->val, ptr->opline->lineno);
584 zend_error(error_type, "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);
591 zend_error(error_type, "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);
610 static void zend_verify_internal_arg_type(zend_function *zf, uint32_t arg_num, zval *arg) argument
616 if (EXPECTED(arg_num <= zf->internal_function.num_args)) {
617 cur_arg_info = &zf->internal_function.arg_info[arg_num-1];
631 zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, need_msg, class_name, "instance of ", Z_OBJCE_P(arg)->name->val, arg);
635 zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, need_msg, class_name, zend_zval_type_name(arg), "", arg);
641 zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, "b
655 zend_verify_arg_type(zend_function *zf, uint32_t arg_num, zval *arg, zval *default_value) argument
700 zend_verify_missing_arg_type(zend_function *zf, uint32_t arg_num) argument
735 zend_verify_missing_arg(zend_execute_data *execute_data, uint32_t arg_num) argument
1981 uint32_t arg_num = opline->extended_value & ZEND_FETCH_ARG_MASK; local
[all...]
H A Dzend_vm_def.h3574 int arg_num; variable
3578 arg_num = ZEND_CALL_NUM_ARGS(EX(call)) + 1;
3587 zend_vm_stack_extend_call_frame(&EX(call), arg_num - 1, zend_hash_num_elements(ht));
3595 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num + i)) {
3614 top = ZEND_CALL_ARG(EX(call), arg_num);
3615 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
3630 arg_num++;
3662 for (; iter->funcs->valid(iter) == SUCCESS; ++arg_num) {
3691 if (ARG_MUST_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
3694 " by unpacking a Traversable, passing by-value instead", arg_num,
3762 uint32_t arg_num; variable
3940 uint32_t arg_num = opline->op1.num; variable
3949 zend_verify_arg_type(EX(func), arg_num, param, NULL); variable
3959 uint32_t arg_num = opline->op1.num; variable
3977 zend_verify_arg_type(EX(func), arg_num, param, EX_CONSTANT(opline->op2)); variable
3987 uint32_t arg_num = opline->op1.num; variable
4004 zend_verify_arg_type(EX(func), arg_num, param, NULL); local
[all...]
H A Dzend_vm_execute.h872 int arg_num; local
876 arg_num = ZEND_CALL_NUM_ARGS(EX(call)) + 1;
885 zend_vm_stack_extend_call_frame(&EX(call), arg_num - 1, zend_hash_num_elements(ht));
893 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num + i)) {
912 top = ZEND_CALL_ARG(EX(call), arg_num);
913 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
928 arg_num++;
960 for (; iter->funcs->valid(iter) == SUCCESS; ++arg_num) {
989 if (ARG_MUST_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
992 " by unpacking a Traversable, passing by-value instead", arg_num,
1060 uint32_t arg_num; local
1160 uint32_t arg_num = opline->op1.num; local
1169 zend_verify_arg_type(EX(func), arg_num, param, NULL); local
1179 uint32_t arg_num = opline->op1.num; local
1196 zend_verify_arg_type(EX(func), arg_num, param, NULL); local
1964 uint32_t arg_num = opline->op1.num; local
1982 zend_verify_arg_type(EX(func), arg_num, param, EX_CONSTANT(opline->op2)); local
[all...]
H A Dzend_compile.c2511 uint32_t arg_num = i + 1; local
2544 if (fbc && ARG_SHOULD_BE_SENT_BY_REF(fbc, arg_num)) {
2546 if (ARG_MAY_BE_SENT_BY_REF(fbc, arg_num)) {
2552 if (ARG_SHOULD_BE_SENT_BY_REF(fbc, arg_num)) {
2561 BP_VAR_FUNC_ARG | (arg_num << BP_VAR_SHIFT));
2568 if (fbc && ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) {
2574 if (ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) {
2587 opline->op2.opline_num = arg_num;
2588 opline->result.var = (uint32_t)(zend_intptr_t)ZEND_CALL_ARG(NULL, arg_num);
H A Dzend_API.c323 static const char *zend_parse_arg_impl(int arg_num, zval *arg, va_list *va, const char **spec, char **error, int *severity) /* {{{ */ argument
573 static int zend_parse_arg(int arg_num, zval *arg, va_list *va, const char **spec, int quiet) /* {{{ */ argument
579 expected_type = zend_parse_arg_impl(arg_num, arg, va, spec, &error, &severity);
587 class_name, space, get_active_function_name(), arg_num, error);
591 class_name, space, get_active_function_name(), arg_num, expected_type,
604 ZEND_API int zend_parse_parameter(int flags, int arg_num, zval *arg, const char *spec, ...) argument
611 ret = zend_parse_arg(arg_num, arg, &va, &spec, quiet);

Completed in 48 milliseconds