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

/PHP_TRUNK/Zend/
H A Dzend_API.c305 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
685 static int zend_parse_arg(int arg_num, zval **arg, va_list *va, const char **spec, int quiet TSRMLS_DC) /* {{{ */ argument
691 expected_type = zend_parse_arg_impl(arg_num, arg, va, spec, &error, &severity TSRMLS_CC);
699 class_name, space, get_active_function_name(TSRMLS_C), arg_num, error);
703 class_name, space, get_active_function_name(TSRMLS_C), arg_num, expected_type,
716 ZEND_API int zend_parse_parameter(int flags, int arg_num TSRMLS_DC, zval **arg, const char *spec, ...)
723 ret = zend_parse_arg(arg_num, arg, &va, &spec, quiet TSRMLS_CC);
H A Dzend_execute.c588 ZEND_API int 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 TSRMLS_DC) argument
604 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->op_array->filename, ptr->opline->lineno);
606 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);
611 static inline int zend_verify_arg_type(zend_function *zf, zend_uint arg_num, zval *arg, ulong fetch_type TSRMLS_DC) argument
621 if (arg_num <= zf->common.num_args) {
622 cur_arg_info = &zf->common.arg_info[arg_num-1];
634 return zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, need_msg, class_name, "none", "" TSRMLS_CC);
639 return zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, need_msg, class_name, "instance of ", Z_OBJCE_P(arg)->name TSRMLS_CC);
643 return zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, need_msg, class_name, zend_zval_type_name(arg), "" TSRMLS_CC);
649 return zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, "b
1716 zend_uint arg_num = opline->extended_value & ZEND_FETCH_ARG_MASK; local
[all...]
H A Dzend_compile.h368 zend_uint arg_num; member in struct:_zend_function_call_entry
840 #define CHECK_ARG_SEND_TYPE(zf, arg_num, m) \
842 (arg_num <= (zf)->common.num_args \
843 ? ((zf)->common.arg_info[arg_num-1].pass_by_reference & (m)) \
847 #define ARG_MUST_BE_SENT_BY_REF(zf, arg_num) \
848 CHECK_ARG_SEND_TYPE(zf, arg_num, ZEND_SEND_BY_REF)
850 #define ARG_SHOULD_BE_SENT_BY_REF(zf, arg_num) \
851 CHECK_ARG_SEND_TYPE(zf, arg_num, ZEND_SEND_BY_REF|ZEND_SEND_PREFER_REF)
853 #define ARG_MAY_BE_SENT_BY_REF(zf, arg_num) \
854 CHECK_ARG_SEND_TYPE(zf, arg_num, ZEND_SEND_PREFER_RE
[all...]
H A Dzend_vm_def.h3226 int arg_num; variable
3230 arg_num = opline->op2.num + EX(call)->num_additional_args + 1;
3242 zend_hash_move_forward_ex(ht, &pos), ++arg_num
3255 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->fbc, arg_num)) {
3299 for (; iter->funcs->valid(iter TSRMLS_CC) == SUCCESS; ++arg_num) {
3328 if (ARG_MUST_BE_SENT_BY_REF(EX(call)->fbc, arg_num)) {
3331 " by unpacking a Traversable, passing by-value instead", arg_num,
3372 zend_uint arg_num = opline->op1.num; variable
3373 zval **param = zend_vm_stack_get_arg(arg_num TSRMLS_CC);
3377 if (zend_verify_arg_type((zend_function *) EG(active_op_array), arg_num, NUL
3414 zend_uint arg_num = opline->op1.num; variable
3453 zend_uint arg_num = opline->op1.num; variable
[all...]
H A Dzend_vm_execute.h713 int arg_num; local
717 arg_num = opline->op2.num + EX(call)->num_additional_args + 1;
729 zend_hash_move_forward_ex(ht, &pos), ++arg_num
742 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->fbc, arg_num)) {
786 for (; iter->funcs->valid(iter TSRMLS_CC) == SUCCESS; ++arg_num) {
815 if (ARG_MUST_BE_SENT_BY_REF(EX(call)->fbc, arg_num)) {
818 " by unpacking a Traversable, passing by-value instead", arg_num,
859 zend_uint arg_num = opline->op1.num; local
860 zval **param = zend_vm_stack_get_arg(arg_num TSRMLS_CC);
864 if (zend_verify_arg_type((zend_function *) EG(active_op_array), arg_num, NUL
900 zend_uint arg_num = opline->op1.num; local
1619 zend_uint arg_num = opline->op1.num; local
[all...]

Completed in 39 milliseconds