Lines Matching refs:cls

621 	zend_class_entry *ce = stmt->fetch.cls.ce;  in do_fetch_class_prepare()
622 zend_fcall_info *fci = &stmt->fetch.cls.fci; in do_fetch_class_prepare()
623 zend_fcall_info_cache *fcc = &stmt->fetch.cls.fcc; in do_fetch_class_prepare()
628 stmt->fetch.cls.ce = ZEND_STANDARD_CLASS_DEF_PTR; in do_fetch_class_prepare()
634 fci->retval = &stmt->fetch.cls.retval; in do_fetch_class_prepare()
638 zend_fcall_info_args_ex(fci, ce->constructor, &stmt->fetch.cls.ctor_args); in do_fetch_class_prepare()
643 } else if (!Z_ISUNDEF(stmt->fetch.cls.ctor_args)) { in do_fetch_class_prepare()
679 zend_fcall_info *fci = &stmt->fetch.cls.fci; in do_fetch_func_prepare()
680 zend_fcall_info_cache *fcc = &stmt->fetch.cls.fcc; in do_fetch_func_prepare()
694 if (stmt->fetch.cls.fci.size && stmt->fetch.cls.fci.params) { in do_fetch_opt_finish()
695 if (!Z_ISUNDEF(stmt->fetch.cls.ctor_args)) { in do_fetch_opt_finish()
697 zend_fcall_info_args_clear(&stmt->fetch.cls.fci, 1); in do_fetch_opt_finish()
699 efree(stmt->fetch.cls.fci.params); in do_fetch_opt_finish()
701 stmt->fetch.cls.fci.params = NULL; in do_fetch_opt_finish()
704 stmt->fetch.cls.fci.size = 0; in do_fetch_opt_finish()
705 if (!Z_ISUNDEF(stmt->fetch.cls.ctor_args) && free_ctor_agrs) { in do_fetch_opt_finish()
706 zval_ptr_dtor(&stmt->fetch.cls.ctor_args); in do_fetch_opt_finish()
707 ZVAL_UNDEF(&stmt->fetch.cls.ctor_args); in do_fetch_opt_finish()
708 stmt->fetch.cls.fci.param_count = 0; in do_fetch_opt_finish()
816 old_ce = stmt->fetch.cls.ce; in do_fetch()
817 ZVAL_COPY_VALUE(&old_ctor_args, &stmt->fetch.cls.ctor_args); in do_fetch()
818 old_arg_count = stmt->fetch.cls.fci.param_count; in do_fetch()
827 stmt->fetch.cls.ce = ZEND_STANDARD_CLASS_DEF_PTR; in do_fetch()
829 stmt->fetch.cls.ce = cep; in do_fetch()
836 ce = stmt->fetch.cls.ce; in do_fetch()
847 if (!stmt->fetch.cls.fci.size) { in do_fetch()
854 stmt->fetch.cls.fci.object = Z_OBJ_P(return_value); in do_fetch()
855 stmt->fetch.cls.fcc.object = Z_OBJ_P(return_value); in do_fetch()
856 if (zend_call_function(&stmt->fetch.cls.fci, &stmt->fetch.cls.fcc) == FAILURE) { in do_fetch()
861 if (!Z_ISUNDEF(stmt->fetch.cls.retval)) { in do_fetch()
862 zval_ptr_dtor(&stmt->fetch.cls.retval); in do_fetch()
863 ZVAL_UNDEF(&stmt->fetch.cls.retval); in do_fetch()
1021 ZVAL_COPY_VALUE(&stmt->fetch.cls.fci.params[idx], &stmt->fetch.func.values[idx]); in do_fetch()
1034 stmt->fetch.cls.fci.object = Z_OBJ_P(return_value); in do_fetch()
1035 stmt->fetch.cls.fcc.object = Z_OBJ_P(return_value); in do_fetch()
1036 if (zend_call_function(&stmt->fetch.cls.fci, &stmt->fetch.cls.fcc) == FAILURE) { in do_fetch()
1041 if (!Z_ISUNDEF(stmt->fetch.cls.retval)) { in do_fetch()
1042 zval_ptr_dtor(&stmt->fetch.cls.retval); in do_fetch()
1048 stmt->fetch.cls.ce = old_ce; in do_fetch()
1049 ZVAL_COPY_VALUE(&stmt->fetch.cls.ctor_args, &old_ctor_args); in do_fetch()
1050 stmt->fetch.cls.fci.param_count = old_arg_count; in do_fetch()
1197 old_ce = stmt->fetch.cls.ce; in PHP_METHOD()
1198 ZVAL_COPY_VALUE(&old_ctor_args, &stmt->fetch.cls.ctor_args); in PHP_METHOD()
1199 old_arg_count = stmt->fetch.cls.fci.param_count; in PHP_METHOD()
1204 ZVAL_ARR(&stmt->fetch.cls.ctor_args, zend_array_dup(Z_ARRVAL_P(ctor_args))); in PHP_METHOD()
1206 ZVAL_UNDEF(&stmt->fetch.cls.ctor_args); in PHP_METHOD()
1209 stmt->fetch.cls.ce = ce; in PHP_METHOD()
1211 stmt->fetch.cls.ce = zend_standard_class_def; in PHP_METHOD()
1220 stmt->fetch.cls.ce = old_ce; in PHP_METHOD()
1221 ZVAL_COPY_VALUE(&stmt->fetch.cls.ctor_args, &old_ctor_args); in PHP_METHOD()
1222 stmt->fetch.cls.fci.param_count = old_arg_count; in PHP_METHOD()
1271 old_ce = stmt->fetch.cls.ce; in PHP_METHOD()
1272 ZVAL_COPY_VALUE(&old_ctor_args, &stmt->fetch.cls.ctor_args); in PHP_METHOD()
1273 old_arg_count = stmt->fetch.cls.fci.param_count; in PHP_METHOD()
1287 stmt->fetch.cls.ce = zend_fetch_class(Z_STR_P(arg2), ZEND_FETCH_CLASS_AUTO); in PHP_METHOD()
1288 if (!stmt->fetch.cls.ce) { in PHP_METHOD()
1293 stmt->fetch.cls.ce = zend_standard_class_def; in PHP_METHOD()
1297 ZVAL_COPY_VALUE(&stmt->fetch.cls.ctor_args, ctor_args); /* we're not going to free these */ in PHP_METHOD()
1299 ZVAL_UNDEF(&stmt->fetch.cls.ctor_args); in PHP_METHOD()
1395 stmt->fetch.cls.ce = old_ce; in PHP_METHOD()
1396 ZVAL_COPY_VALUE(&stmt->fetch.cls.ctor_args, &old_ctor_args); in PHP_METHOD()
1397 stmt->fetch.cls.fci.param_count = old_arg_count; in PHP_METHOD()
1769 ZVAL_UNDEF(&stmt->fetch.cls.ctor_args); in pdo_stmt_setup_fetch_mode()
1779 stmt->fetch.cls.ce = NULL; in pdo_stmt_setup_fetch_mode()
1818 stmt->fetch.cls.ce = cep; in pdo_stmt_setup_fetch_mode()
1822 ZVAL_ARR(&stmt->fetch.cls.ctor_args, zend_array_dup(constructor_args)); in pdo_stmt_setup_fetch_mode()