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

/PHP_TRUNK/Zend/
H A Dzend_compile.h647 static zend_always_inline int zend_check_arg_send_type(const zend_function *zf, uint32_t arg_num, uint32_t mask) argument
652 if (UNEXPECTED(arg_num > zf->common.num_args)) {
656 arg_num = zf->common.num_args;
658 return UNEXPECTED((zf->common.arg_info[arg_num-1].pass_by_reference & mask) != 0);
661 #define ARG_MUST_BE_SENT_BY_REF(zf, arg_num) \
662 zend_check_arg_send_type(zf, arg_num, ZEND_SEND_BY_REF)
664 #define ARG_SHOULD_BE_SENT_BY_REF(zf, arg_num) \
665 zend_check_arg_send_type(zf, arg_num, ZEND_SEND_BY_REF|ZEND_SEND_PREFER_REF)
667 #define ARG_MAY_BE_SENT_BY_REF(zf, arg_num) \
668 zend_check_arg_send_type(zf, arg_num, ZEND_SEND_PREFER_RE
[all...]
H A Dzend_API.c366 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
779 static int zend_parse_arg(int arg_num, zval *arg, va_list *va, const char **spec, int quiet TSRMLS_DC) /* {{{ */ argument
785 expected_type = zend_parse_arg_impl(arg_num, arg, va, spec, &error, &severity TSRMLS_CC);
793 class_name, space, get_active_function_name(TSRMLS_C), arg_num, error);
797 class_name, space, get_active_function_name(TSRMLS_C), arg_num, expected_type,
810 ZEND_API int zend_parse_parameter(int flags, int arg_num TSRMLS_DC, zval *arg, const char *spec, ...)
817 ret = zend_parse_arg(arg_num, arg, &va, &spec, quiet TSRMLS_CC);
H A Dzend_compile.c2402 uint32_t arg_num = i + 1; local
2434 if (fbc && ARG_SHOULD_BE_SENT_BY_REF(fbc, arg_num)) {
2436 if (ARG_MAY_BE_SENT_BY_REF(fbc, arg_num)) {
2442 if (ARG_SHOULD_BE_SENT_BY_REF(fbc, arg_num)) {
2451 BP_VAR_FUNC_ARG | (arg_num << BP_VAR_SHIFT) TSRMLS_CC);
2458 if (fbc && ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) {
2464 if (ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) {
2477 opline->op2.opline_num = arg_num;
H A Dzend_execute.c567 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
589 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);
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);
599 static void zend_verify_arg_type(zend_function *zf, uint32_t arg_num, zval *arg TSRMLS_DC) argument
609 if (EXPECTED(arg_num <= zf->common.num_args)) {
610 cur_arg_info = &zf->common.arg_info[arg_num-1];
624 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);
628 zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, need_msg, class_name, zend_zval_type_name(arg), "", arg TSRMLS_CC);
634 zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, "be of the type array", "", zend_zval_type_name(arg), "", arg TSRMLS_CC);
638 zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, "b
1715 uint32_t arg_num = opline->extended_value & ZEND_FETCH_ARG_MASK; local
[all...]
H A Dzend_vm_def.h3128 int arg_num; variable
3132 arg_num = EX(call)->num_args + 1;
3141 zend_vm_stack_extend_call_frame(&EX(call), arg_num - 1, zend_hash_num_elements(ht) TSRMLS_CC);
3149 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num + i)) {
3168 top = ZEND_CALL_ARG(EX(call), arg_num);
3169 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
3184 arg_num++;
3216 for (; iter->funcs->valid(iter TSRMLS_CC) == SUCCESS; ++arg_num) {
3245 if (ARG_MUST_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
3248 " by unpacking a Traversable, passing by-value instead", arg_num,
3310 uint32_t arg_num = 1; variable
3488 uint32_t arg_num = opline->op1.num; variable
3497 zend_verify_arg_type(EX(func), arg_num, param TSRMLS_CC); variable
3507 uint32_t arg_num = opline->op1.num; variable
3525 zend_verify_arg_type(EX(func), arg_num, param TSRMLS_CC); variable
3535 uint32_t arg_num = opline->op1.num; variable
3550 zend_verify_arg_type(EX(func), arg_num, param TSRMLS_CC); variable
[all...]
H A Dzend_vm_execute.h691 int arg_num; local
695 arg_num = EX(call)->num_args + 1;
704 zend_vm_stack_extend_call_frame(&EX(call), arg_num - 1, zend_hash_num_elements(ht) TSRMLS_CC);
712 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num + i)) {
731 top = ZEND_CALL_ARG(EX(call), arg_num);
732 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
747 arg_num++;
779 for (; iter->funcs->valid(iter TSRMLS_CC) == SUCCESS; ++arg_num) {
808 if (ARG_MUST_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
811 " by unpacking a Traversable, passing by-value instead", arg_num,
873 uint32_t arg_num = 1; local
972 uint32_t arg_num = opline->op1.num; local
981 zend_verify_arg_type(EX(func), arg_num, param TSRMLS_CC); local
991 uint32_t arg_num = opline->op1.num; local
1006 zend_verify_arg_type(EX(func), arg_num, param TSRMLS_CC); local
1698 uint32_t arg_num = opline->op1.num; local
1716 zend_verify_arg_type(EX(func), arg_num, param TSRMLS_CC); local
[all...]

Completed in 52 milliseconds