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

/PHP_TRUNK/Zend/
H A Dzend_API.c391 static const char *zend_parse_arg_impl(int arg_num, zval *arg, va_list *va, const char **spec, char **error, int *severity TSRMLS_DC) /* {{{ */ argument
804 static int zend_parse_arg(int arg_num, zval *arg, va_list *va, const char **spec, int quiet TSRMLS_DC) /* {{{ */ argument
810 expected_type = zend_parse_arg_impl(arg_num, arg, va, spec, &error, &severity TSRMLS_CC);
818 class_name, space, get_active_function_name(TSRMLS_C), arg_num, error);
822 class_name, space, get_active_function_name(TSRMLS_C), arg_num, expected_type,
835 ZEND_API int zend_parse_parameter(int flags, int arg_num TSRMLS_DC, zval *arg, const char *spec, ...)
842 ret = zend_parse_arg(arg_num, arg, &va, &spec, quiet TSRMLS_CC);
H A Dzend_compile.h653 static zend_always_inline int zend_check_arg_send_type(const zend_function *zf, uint32_t arg_num, uint32_t mask) argument
658 if (UNEXPECTED(arg_num > zf->common.num_args)) {
662 arg_num = zf->common.num_args;
664 return UNEXPECTED((zf->common.arg_info[arg_num-1].pass_by_reference & mask) != 0);
667 #define ARG_MUST_BE_SENT_BY_REF(zf, arg_num) \
668 zend_check_arg_send_type(zf, arg_num, ZEND_SEND_BY_REF)
670 #define ARG_SHOULD_BE_SENT_BY_REF(zf, arg_num) \
671 zend_check_arg_send_type(zf, arg_num, ZEND_SEND_BY_REF|ZEND_SEND_PREFER_REF)
673 #define ARG_MAY_BE_SENT_BY_REF(zf, arg_num) \
674 zend_check_arg_send_type(zf, arg_num, ZEND_SEND_PREFER_RE
[all...]
H A Dzend_compile.c4010 uint32_t arg_num = i + 1; local
4042 if (fbc && ARG_SHOULD_BE_SENT_BY_REF(fbc, arg_num)) {
4044 if (ARG_MAY_BE_SENT_BY_REF(fbc, arg_num)) {
4050 if (ARG_SHOULD_BE_SENT_BY_REF(fbc, arg_num)) {
4059 BP_VAR_FUNC_ARG | (arg_num << BP_VAR_SHIFT) TSRMLS_CC);
4066 if (fbc && ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) {
4072 if (ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) {
4085 opline->op2.opline_num = arg_num;
H A Dzend_vm_def.h3165 int arg_num; variable
3169 arg_num = EX(call)->num_args + 1;
3178 zend_vm_stack_extend_call_frame(&EX(call), arg_num - 1, zend_hash_num_elements(ht) TSRMLS_CC);
3186 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num + i)) {
3205 top = ZEND_CALL_ARG(EX(call), arg_num);
3206 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
3221 arg_num++;
3253 for (; iter->funcs->valid(iter TSRMLS_CC) == SUCCESS; ++arg_num) {
3282 if (ARG_MUST_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
3285 " by unpacking a Traversable, passing by-value instead", arg_num,
3347 uint32_t arg_num = 1; variable
3525 uint32_t arg_num = opline->op1.num; variable
3534 zend_verify_arg_type(EX(func), arg_num, param, opline->extended_value TSRMLS_CC); variable
3544 uint32_t arg_num = opline->op1.num; variable
3562 zend_verify_arg_type(EX(func), arg_num, param, opline->extended_value TSRMLS_CC); variable
3572 uint32_t arg_num = opline->op1.num; variable
3587 zend_verify_arg_type(EX(func), arg_num, param, opline->extended_value TSRMLS_CC); variable
[all...]
H A Dzend_vm_execute.h723 int arg_num; local
727 arg_num = EX(call)->num_args + 1;
736 zend_vm_stack_extend_call_frame(&EX(call), arg_num - 1, zend_hash_num_elements(ht) TSRMLS_CC);
744 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num + i)) {
763 top = ZEND_CALL_ARG(EX(call), arg_num);
764 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
779 arg_num++;
811 for (; iter->funcs->valid(iter TSRMLS_CC) == SUCCESS; ++arg_num) {
840 if (ARG_MUST_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
843 " by unpacking a Traversable, passing by-value instead", arg_num,
905 uint32_t arg_num = 1; local
1004 uint32_t arg_num = opline->op1.num; local
1013 zend_verify_arg_type(EX(func), arg_num, param, opline->extended_value TSRMLS_CC); local
1023 uint32_t arg_num = opline->op1.num; local
1038 zend_verify_arg_type(EX(func), arg_num, param, opline->extended_value TSRMLS_CC); local
1726 uint32_t arg_num = opline->op1.num; local
1744 zend_verify_arg_type(EX(func), arg_num, param, opline->extended_value TSRMLS_CC); local
[all...]
H A Dzend_execute.c524 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 TSRMLS_DC) argument
546 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);
548 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);
556 static void zend_verify_arg_type(zend_function *zf, uint32_t arg_num, zval *arg, zend_ulong fetch_type TSRMLS_DC) argument
566 if (EXPECTED(arg_num <= zf->common.num_args)) {
567 cur_arg_info = &zf->common.arg_info[arg_num-1];
581 zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, need_msg, class_name, "instance of ", Z_OBJCE_P(arg)->name->val, arg TSRMLS_CC);
585 zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, need_msg, class_name, zend_zval_type_name(arg), "", arg TSRMLS_CC);
591 zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, "be of the type array", "", zend_zval_type_name(arg), "", arg TSRMLS_CC);
595 zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, "b
605 zend_verify_missing_arg_type(zend_function *zf, uint32_t arg_num, zend_ulong fetch_type TSRMLS_DC) argument
1687 uint32_t arg_num = opline->extended_value & ZEND_FETCH_ARG_MASK; local
[all...]

Completed in 63 milliseconds