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.h337 zend_uint arg_num; member in struct:_zend_function_call_entry
813 #define CHECK_ARG_SEND_TYPE(zf, arg_num, m) \
815 (EXPECTED(arg_num <= (zf)->common.num_args) \
816 ? ((zf)->common.arg_info[arg_num-1].pass_by_reference & (m)) \
820 #define ARG_MUST_BE_SENT_BY_REF(zf, arg_num) \
821 CHECK_ARG_SEND_TYPE(zf, arg_num, ZEND_SEND_BY_REF)
823 #define ARG_SHOULD_BE_SENT_BY_REF(zf, arg_num) \
824 CHECK_ARG_SEND_TYPE(zf, arg_num, ZEND_SEND_BY_REF|ZEND_SEND_PREFER_REF)
826 #define ARG_MAY_BE_SENT_BY_REF(zf, arg_num) \
827 CHECK_ARG_SEND_TYPE(zf, arg_num, ZEND_SEND_PREFER_RE
[all...]
H A Dzend_execute.c545 ZEND_API void zend_verify_arg_error(int error_type, const zend_function *zf, zend_uint arg_num, const char *need_msg, const char *need_kind, const char *given_msg, const char *given_kind, zval *arg TSRMLS_DC) argument
567 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);
569 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);
577 static void zend_verify_arg_type(zend_function *zf, zend_uint arg_num, zval *arg, ulong fetch_type TSRMLS_DC) argument
587 if (EXPECTED(arg_num <= zf->common.num_args)) {
588 cur_arg_info = &zf->common.arg_info[arg_num-1];
602 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);
606 zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, need_msg, class_name, zend_zval_type_name(arg), "", arg TSRMLS_CC);
612 zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, "be of the type array", "", zend_zval_type_name(arg), "", arg TSRMLS_CC);
616 zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, "b
626 zend_verify_missing_arg_type(zend_function *zf, zend_uint arg_num, ulong fetch_type TSRMLS_DC) argument
1765 zend_uint arg_num = opline->extended_value & ZEND_FETCH_ARG_MASK; local
[all...]
H A Dzend_compile.c2601 zend_uint arg_num = 0; local
2631 if (++arg_num == num_args) {
2839 if (fcall->arg_num != 0) {
2847 opline->extended_value = fcall->arg_num;
2857 if (fcall->arg_num > 0) {
2858 if (zend_do_convert_call_user_func(opline, fcall->arg_num TSRMLS_CC)) {
2859 fcall->arg_num--;
2864 if (fcall->arg_num == 2) {
2866 fcall->arg_num = 0;
2871 if (fcall->arg_num
[all...]
H A Dzend_vm_def.h3170 int arg_num; variable
3174 arg_num = EX(call)->num_args + 1;
3183 zend_vm_stack_extend_call_frame(&EX(call), arg_num - 1, zend_hash_num_elements(ht) TSRMLS_CC);
3191 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num + i)) {
3210 top = ZEND_CALL_ARG(EX(call), arg_num);
3211 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
3226 arg_num++;
3258 for (; iter->funcs->valid(iter TSRMLS_CC) == SUCCESS; ++arg_num) {
3287 if (ARG_MUST_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
3290 " by unpacking a Traversable, passing by-value instead", arg_num,
3352 zend_uint arg_num = 1; variable
3530 zend_uint arg_num = opline->op1.num; variable
3539 zend_verify_arg_type(EX(func), arg_num, param, opline->extended_value TSRMLS_CC); variable
3549 zend_uint arg_num = opline->op1.num; variable
3567 zend_verify_arg_type(EX(func), arg_num, param, opline->extended_value TSRMLS_CC); variable
3577 zend_uint arg_num = opline->op1.num; variable
3592 zend_verify_arg_type(EX(func), arg_num, param, opline->extended_value TSRMLS_CC); variable
[all...]
H A Dzend_vm_execute.h725 int arg_num; local
729 arg_num = EX(call)->num_args + 1;
738 zend_vm_stack_extend_call_frame(&EX(call), arg_num - 1, zend_hash_num_elements(ht) TSRMLS_CC);
746 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num + i)) {
765 top = ZEND_CALL_ARG(EX(call), arg_num);
766 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
781 arg_num++;
813 for (; iter->funcs->valid(iter TSRMLS_CC) == SUCCESS; ++arg_num) {
842 if (ARG_MUST_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
845 " by unpacking a Traversable, passing by-value instead", arg_num,
907 zend_uint arg_num = 1; local
1006 zend_uint arg_num = opline->op1.num; local
1015 zend_verify_arg_type(EX(func), arg_num, param, opline->extended_value TSRMLS_CC); local
1025 zend_uint arg_num = opline->op1.num; local
1040 zend_verify_arg_type(EX(func), arg_num, param, opline->extended_value TSRMLS_CC); local
1741 zend_uint arg_num = opline->op1.num; local
1759 zend_verify_arg_type(EX(func), arg_num, param, opline->extended_value TSRMLS_CC); local
[all...]

Completed in 50 milliseconds