Searched defs:arg_num (Results 1 - 5 of 5) 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_execute.c536 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
558 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);
560 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);
568 static void zend_verify_arg_type(zend_function *zf, uint32_t arg_num, zval *arg, zend_ulong fetch_type TSRMLS_DC) argument
578 if (EXPECTED(arg_num <= zf->common.num_args)) {
579 cur_arg_info = &zf->common.arg_info[arg_num-1];
593 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);
597 zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, need_msg, class_name, zend_zval_type_name(arg), "", arg TSRMLS_CC);
603 zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, "be of the type array", "", zend_zval_type_name(arg), "", arg TSRMLS_CC);
607 zend_verify_arg_error(E_RECOVERABLE_ERROR, zf, arg_num, "b
617 zend_verify_missing_arg_type(zend_function *zf, uint32_t arg_num, zend_ulong fetch_type TSRMLS_DC) argument
1759 uint32_t arg_num = opline->extended_value & ZEND_FETCH_ARG_MASK; local
[all...]
H A Dzend_compile.c4011 uint32_t arg_num = i + 1; local
4043 if (fbc && ARG_SHOULD_BE_SENT_BY_REF(fbc, arg_num)) {
4045 if (ARG_MAY_BE_SENT_BY_REF(fbc, arg_num)) {
4051 if (ARG_SHOULD_BE_SENT_BY_REF(fbc, arg_num)) {
4060 BP_VAR_FUNC_ARG | (arg_num << BP_VAR_SHIFT) TSRMLS_CC);
4067 if (fbc && ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) {
4073 if (ARG_MUST_BE_SENT_BY_REF(fbc, arg_num)) {
4086 opline->op2.opline_num = arg_num;
H A Dzend_vm_def.h3176 int arg_num; variable
3180 arg_num = EX(call)->num_args + 1;
3189 zend_vm_stack_extend_call_frame(&EX(call), arg_num - 1, zend_hash_num_elements(ht) TSRMLS_CC);
3197 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num + i)) {
3216 top = ZEND_CALL_ARG(EX(call), arg_num);
3217 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
3232 arg_num++;
3264 for (; iter->funcs->valid(iter TSRMLS_CC) == SUCCESS; ++arg_num) {
3293 if (ARG_MUST_BE_SENT_BY_REF(EX(call)->func, arg_num)) {
3296 " by unpacking a Traversable, passing by-value instead", arg_num,
3358 uint32_t arg_num = 1; variable
3536 uint32_t arg_num = opline->op1.num; variable
3545 zend_verify_arg_type(EX(func), arg_num, param, opline->extended_value TSRMLS_CC); variable
3555 uint32_t arg_num = opline->op1.num; variable
3573 zend_verify_arg_type(EX(func), arg_num, param, opline->extended_value TSRMLS_CC); variable
3583 uint32_t arg_num = opline->op1.num; variable
3598 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
1740 uint32_t arg_num = opline->op1.num; local
1758 zend_verify_arg_type(EX(func), arg_num, param, opline->extended_value TSRMLS_CC); local
[all...]

Completed in 57 milliseconds