Lines Matching refs:cls
744 zend_class_entry * ce = stmt->fetch.cls.ce; in do_fetch_class_prepare()
745 zend_fcall_info * fci = &stmt->fetch.cls.fci; in do_fetch_class_prepare()
746 zend_fcall_info_cache * fcc = &stmt->fetch.cls.fcc; in do_fetch_class_prepare()
751 stmt->fetch.cls.ce = ZEND_STANDARD_CLASS_DEF_PTR; in do_fetch_class_prepare()
759 fci->retval_ptr_ptr = &stmt->fetch.cls.retval_ptr; in do_fetch_class_prepare()
763 zend_fcall_info_args(fci, stmt->fetch.cls.ctor_args TSRMLS_CC); in do_fetch_class_prepare()
770 } else if (stmt->fetch.cls.ctor_args) { in do_fetch_class_prepare()
806 zend_fcall_info * fci = &stmt->fetch.cls.fci; in do_fetch_func_prepare()
807 zend_fcall_info_cache * fcc = &stmt->fetch.cls.fcc; in do_fetch_func_prepare()
821 if (stmt->fetch.cls.fci.size && stmt->fetch.cls.fci.params) { in do_fetch_opt_finish()
822 efree(stmt->fetch.cls.fci.params); in do_fetch_opt_finish()
823 stmt->fetch.cls.fci.params = NULL; in do_fetch_opt_finish()
825 stmt->fetch.cls.fci.size = 0; in do_fetch_opt_finish()
826 if (stmt->fetch.cls.ctor_args && free_ctor_agrs) { in do_fetch_opt_finish()
827 zval_ptr_dtor(&stmt->fetch.cls.ctor_args); in do_fetch_opt_finish()
828 stmt->fetch.cls.ctor_args = NULL; in do_fetch_opt_finish()
829 stmt->fetch.cls.fci.param_count = 0; in do_fetch_opt_finish()
933 old_ce = stmt->fetch.cls.ce; in do_fetch()
934 old_ctor_args = stmt->fetch.cls.ctor_args; in do_fetch()
935 old_arg_count = stmt->fetch.cls.fci.param_count; in do_fetch()
943 stmt->fetch.cls.ce = ZEND_STANDARD_CLASS_DEF_PTR; in do_fetch()
945 stmt->fetch.cls.ce = *cep; in do_fetch()
952 ce = stmt->fetch.cls.ce; in do_fetch()
959 if (!stmt->fetch.cls.fci.size) { in do_fetch()
966 stmt->fetch.cls.fci.object_ptr = return_value; in do_fetch()
967 stmt->fetch.cls.fcc.object_ptr = return_value; in do_fetch()
968 if (zend_call_function(&stmt->fetch.cls.fci, &stmt->fetch.cls.fcc TSRMLS_CC) == FAILURE) { in do_fetch()
972 if (stmt->fetch.cls.retval_ptr) { in do_fetch()
973 zval_ptr_dtor(&stmt->fetch.cls.retval_ptr); in do_fetch()
1150 stmt->fetch.cls.fci.params[idx] = &stmt->fetch.func.values[idx]; in do_fetch()
1164 stmt->fetch.cls.fci.object_ptr = return_value; in do_fetch()
1165 stmt->fetch.cls.fcc.object_ptr = return_value; in do_fetch()
1166 if (zend_call_function(&stmt->fetch.cls.fci, &stmt->fetch.cls.fcc TSRMLS_CC) == FAILURE) { in do_fetch()
1170 if (stmt->fetch.cls.retval_ptr) { in do_fetch()
1171 zval_ptr_dtor(&stmt->fetch.cls.retval_ptr); in do_fetch()
1177 stmt->fetch.cls.ce = old_ce; in do_fetch()
1178 stmt->fetch.cls.ctor_args = old_ctor_args; in do_fetch()
1179 stmt->fetch.cls.fci.param_count = old_arg_count; in do_fetch()
1333 old_ce = stmt->fetch.cls.ce; in PHP_METHOD()
1334 old_ctor_args = stmt->fetch.cls.ctor_args; in PHP_METHOD()
1335 old_arg_count = stmt->fetch.cls.fci.param_count; in PHP_METHOD()
1341 ALLOC_ZVAL(stmt->fetch.cls.ctor_args); in PHP_METHOD()
1342 *stmt->fetch.cls.ctor_args = *ctor_args; in PHP_METHOD()
1343 zval_copy_ctor(stmt->fetch.cls.ctor_args); in PHP_METHOD()
1345 stmt->fetch.cls.ctor_args = NULL; in PHP_METHOD()
1349 …stmt->fetch.cls.ce = zend_fetch_class(class_name, class_name_len, ZEND_FETCH_CLASS_AUTO TSRMLS_CC); in PHP_METHOD()
1351 if (!stmt->fetch.cls.ce) { in PHP_METHOD()
1356 stmt->fetch.cls.ce = zend_standard_class_def; in PHP_METHOD()
1367 stmt->fetch.cls.ce = old_ce; in PHP_METHOD()
1368 stmt->fetch.cls.ctor_args = old_ctor_args; in PHP_METHOD()
1369 stmt->fetch.cls.fci.param_count = old_arg_count; in PHP_METHOD()
1418 old_ce = stmt->fetch.cls.ce; in PHP_METHOD()
1419 old_ctor_args = stmt->fetch.cls.ctor_args; in PHP_METHOD()
1420 old_arg_count = stmt->fetch.cls.fci.param_count; in PHP_METHOD()
1429 stmt->fetch.cls.ce = zend_standard_class_def; in PHP_METHOD()
1442 stmt->fetch.cls.ctor_args = ctor_args; /* we're not going to free these */ in PHP_METHOD()
1448 …stmt->fetch.cls.ce = zend_fetch_class(Z_STRVAL_P(arg2), Z_STRLEN_P(arg2), ZEND_FETCH_CLASS_AUTO TS… in PHP_METHOD()
1449 if (!stmt->fetch.cls.ce) { in PHP_METHOD()
1543 stmt->fetch.cls.ce = old_ce; in PHP_METHOD()
1544 stmt->fetch.cls.ctor_args = old_ctor_args; in PHP_METHOD()
1545 stmt->fetch.cls.fci.param_count = old_arg_count; in PHP_METHOD()
1939 stmt->fetch.cls.ce = NULL; in pdo_stmt_setup_fetch_mode()
1954 stmt->fetch.cls.ce = *cep; in pdo_stmt_setup_fetch_mode()
1960 stmt->fetch.cls.ctor_args = NULL; in pdo_stmt_setup_fetch_mode()
1971 ALLOC_ZVAL(stmt->fetch.cls.ctor_args); in pdo_stmt_setup_fetch_mode()
1972 *stmt->fetch.cls.ctor_args = **args[skip+2]; in pdo_stmt_setup_fetch_mode()
1973 zval_copy_ctor(stmt->fetch.cls.ctor_args); in pdo_stmt_setup_fetch_mode()