您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ zephir_create_array函数代码示例

51自学网 2021-06-03 11:58:04
  C++
这篇教程C++ zephir_create_array函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中zephir_create_array函数的典型用法代码示例。如果您正苦于以下问题:C++ zephir_create_array函数的具体用法?C++ zephir_create_array怎么用?C++ zephir_create_array使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了zephir_create_array函数的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: PHP_METHOD

/** * Returns a new /Phalcon/Mvc/Model/Transaction or an already created once * This method registers a shutdown function to rollback active connections */PHP_METHOD(Phalcon_Mvc_Model_Transaction_Manager, get) {	zval *_2$$4;	int ZEPHIR_LAST_CALL_STATUS;	zval *autoBegin_param = NULL, *_0, *_4, *_1$$3, *_3$$4;	zend_bool autoBegin;	ZEPHIR_MM_GROW();	zephir_fetch_params(1, 0, 1, &autoBegin_param);	if (!autoBegin_param) {		autoBegin = 1;	} else {		autoBegin = zephir_get_boolval(autoBegin_param);	}	_0 = zephir_fetch_nproperty_this(this_ptr, SL("_initialized"), PH_NOISY_CC);	if (!(zephir_is_true(_0))) {		_1$$3 = zephir_fetch_nproperty_this(this_ptr, SL("_rollbackPendent"), PH_NOISY_CC);		if (zephir_is_true(_1$$3)) {			ZEPHIR_INIT_VAR(_2$$4);			zephir_create_array(_2$$4, 2, 0 TSRMLS_CC);			zephir_array_fast_append(_2$$4, this_ptr);			ZEPHIR_INIT_VAR(_3$$4);			ZVAL_STRING(_3$$4, "rollbackPendent", 1);			zephir_array_fast_append(_2$$4, _3$$4);			ZEPHIR_CALL_FUNCTION(NULL, "register_shutdown_function", NULL, 351, _2$$4);			zephir_check_call_status();		}		if (1) {			zephir_update_property_this(this_ptr, SL("_initialized"), ZEPHIR_GLOBAL(global_true) TSRMLS_CC);		} else {			zephir_update_property_this(this_ptr, SL("_initialized"), ZEPHIR_GLOBAL(global_false) TSRMLS_CC);		}	}	ZEPHIR_INIT_VAR(_4);	if (autoBegin) {		ZVAL_BOOL(_4, 1);	} else {		ZVAL_BOOL(_4, 0);	}	ZEPHIR_RETURN_CALL_METHOD(this_ptr, "getorcreatetransaction", NULL, 0, _4);	zephir_check_call_status();	RETURN_MM();}
开发者ID:Dmitry-Kucher,项目名称:cphalcon,代码行数:51,


示例2: PHP_METHOD

/** * Adds default messages to validators */PHP_METHOD(Phalcon_Validation, setDefaultMessages) {	zval *messages_param = NULL, *defaultMessages, *_0;	zval *messages = NULL;	ZEPHIR_MM_GROW();	zephir_fetch_params(1, 0, 1, &messages_param);	if (!messages_param) {		ZEPHIR_INIT_VAR(messages);		array_init(messages);	} else {		zephir_get_arrval(messages, messages_param);	}	ZEPHIR_INIT_VAR(defaultMessages);	zephir_create_array(defaultMessages, 23, 0 TSRMLS_CC);	add_assoc_stringl_ex(defaultMessages, SS("Alnum"), SL("Field :field must contain only letters and numbers"), 1);	add_assoc_stringl_ex(defaultMessages, SS("Alpha"), SL("Field :field must contain only letters"), 1);	add_assoc_stringl_ex(defaultMessages, SS("Between"), SL("Field :field must be within the range of :min to :max"), 1);	add_assoc_stringl_ex(defaultMessages, SS("Confirmation"), SL("Field :field must be the same as :with"), 1);	add_assoc_stringl_ex(defaultMessages, SS("Digit"), SL("Field :field must be numeric"), 1);	add_assoc_stringl_ex(defaultMessages, SS("Email"), SL("Field :field must be an email address"), 1);	add_assoc_stringl_ex(defaultMessages, SS("ExclusionIn"), SL("Field :field must not be a part of list: :domain"), 1);	add_assoc_stringl_ex(defaultMessages, SS("FileEmpty"), SL("Field :field must not be empty"), 1);	add_assoc_stringl_ex(defaultMessages, SS("FileIniSize"), SL("File :field exceeds the maximum file size"), 1);	add_assoc_stringl_ex(defaultMessages, SS("FileMaxResolution"), SL("File :field must not exceed :max resolution"), 1);	add_assoc_stringl_ex(defaultMessages, SS("FileMinResolution"), SL("File :field must be at least :min resolution"), 1);	add_assoc_stringl_ex(defaultMessages, SS("FileSize"), SL("File :field exceeds the size of :max"), 1);	add_assoc_stringl_ex(defaultMessages, SS("FileType"), SL("File :field must be of type: :types"), 1);	add_assoc_stringl_ex(defaultMessages, SS("FileValid"), SL("Field :field is not valid"), 1);	add_assoc_stringl_ex(defaultMessages, SS("Identical"), SL("Field :field does not have the expected value"), 1);	add_assoc_stringl_ex(defaultMessages, SS("InclusionIn"), SL("Field :field must be a part of list: :domain"), 1);	add_assoc_stringl_ex(defaultMessages, SS("Numericality"), SL("Field :field does not have a valid numeric format"), 1);	add_assoc_stringl_ex(defaultMessages, SS("PresenceOf"), SL("Field :field is required"), 1);	add_assoc_stringl_ex(defaultMessages, SS("Regex"), SL("Field :field does not match the required format"), 1);	add_assoc_stringl_ex(defaultMessages, SS("TooLong"), SL("Field :field must not exceed :max characters long"), 1);	add_assoc_stringl_ex(defaultMessages, SS("TooShort"), SL("Field :field must be at least :min characters long"), 1);	add_assoc_stringl_ex(defaultMessages, SS("Uniqueness"), SL("Field :field must be unique"), 1);	add_assoc_stringl_ex(defaultMessages, SS("Url"), SL("Field :field must be a url"), 1);	ZEPHIR_INIT_VAR(_0);	zephir_fast_array_merge(_0, &(defaultMessages), &(messages) TSRMLS_CC);	zephir_update_property_this(this_ptr, SL("_defaultMessages"), _0 TSRMLS_CC);	RETURN_MM_MEMBER(this_ptr, "_defaultMessages");}
开发者ID:JulianZhao,项目名称:cphalcon,代码行数:50,


示例3: PHP_METHOD

/** * Adds a resource to the annotations handler * A resource is a class that contains routing annotations */PHP_METHOD(Phalcon_Mvc_Router_Annotations, addResource) {	zval *_0;	zval *handler_param = NULL, *prefix_param = NULL;	zval *handler = NULL, *prefix = NULL;	ZEPHIR_MM_GROW();	zephir_fetch_params(1, 1, 1, &handler_param, &prefix_param);	if (unlikely(Z_TYPE_P(handler_param) != IS_STRING && Z_TYPE_P(handler_param) != IS_NULL)) {		zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'handler' must be a string") TSRMLS_CC);		RETURN_MM_NULL();	}	if (likely(Z_TYPE_P(handler_param) == IS_STRING)) {		zephir_get_strval(handler, handler_param);	} else {		ZEPHIR_INIT_VAR(handler);		ZVAL_EMPTY_STRING(handler);	}	if (!prefix_param) {		ZEPHIR_INIT_VAR(prefix);		ZVAL_EMPTY_STRING(prefix);	} else {	if (unlikely(Z_TYPE_P(prefix_param) != IS_STRING && Z_TYPE_P(prefix_param) != IS_NULL)) {		zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'prefix' must be a string") TSRMLS_CC);		RETURN_MM_NULL();	}	if (likely(Z_TYPE_P(prefix_param) == IS_STRING)) {		zephir_get_strval(prefix, prefix_param);	} else {		ZEPHIR_INIT_VAR(prefix);		ZVAL_EMPTY_STRING(prefix);	}	}	ZEPHIR_INIT_VAR(_0);	zephir_create_array(_0, 2, 0 TSRMLS_CC);	zephir_array_fast_append(_0, prefix);	zephir_array_fast_append(_0, handler);	zephir_update_property_array_append(this_ptr, SL("_handlers"), _0 TSRMLS_CC);	zephir_update_property_this(this_ptr, SL("_processed"), (0) ? ZEPHIR_GLOBAL(global_true) : ZEPHIR_GLOBAL(global_false) TSRMLS_CC);	RETURN_THIS();}
开发者ID:KKrushnabate,项目名称:cphalcon,代码行数:51,


示例4: PHP_METHOD

PHP_METHOD(Test_NativeArray, testArray16) {	zval a;	zval *this_ptr = getThis();	ZVAL_UNDEF(&a);	ZEPHIR_MM_GROW();	ZEPHIR_INIT_VAR(&a);	zephir_create_array(&a, 3, 0 TSRMLS_CC);	add_assoc_double_ex(&a, SL("hello1"), 1.0);	add_assoc_double_ex(&a, SL("hello2"), 2.0);	add_assoc_double_ex(&a, SL("hello3"), 3.0);	RETURN_CCTOR(&a);}
开发者ID:phalcon,项目名称:zephir,代码行数:17,


示例5: PHP_METHOD

PHP_METHOD(Test_Issue1521, test) {	zval _0;	zval *this_ptr = getThis();	ZVAL_UNDEF(&_0);	ZEPHIR_MM_GROW();	ZEPHIR_INIT_VAR(&_0);	zephir_create_array(&_0, 2, 0 TSRMLS_CC);	add_assoc_stringl_ex(&_0, SL("merchantNumber"), SL("0818217122"));	add_assoc_stringl_ex(&_0, SL("zero"), SL("0"));	zephir_update_property_zval(this_ptr, SL("params"), &_0);	RETURN_MM_MEMBER(getThis(), "params");}
开发者ID:dreamsxin,项目名称:zephir,代码行数:17,


示例6: zephir_init_static_properties_Ansi_Color

void zephir_init_static_properties_Ansi_Color(TSRMLS_D) {	zval *_1;	zval *_0;	ZEPHIR_MM_GROW();	ZEPHIR_INIT_VAR(_0);	array_init(_0);	zephir_update_static_property_ce(ansi_color_ce, SL("_fg_arr"), &_0 TSRMLS_CC);	ZEPHIR_INIT_VAR(_1);	zephir_create_array(_1, 1, 0 TSRMLS_CC);	add_index_long(_1, 1, 1);	zephir_update_static_property_ce(ansi_color_ce, SL("_bg_arr"), &_1 TSRMLS_CC);	ZEPHIR_MM_RESTORE();}
开发者ID:jiaojie1989,项目名称:zephir-console-ansi,代码行数:17,


示例7: zephir_init_static_properties_Cake_Core_Configure

void zephir_init_static_properties_Cake_Core_Configure(TSRMLS_D) {	zval *_1;	zval *_0;	ZEPHIR_MM_GROW();	ZEPHIR_INIT_VAR(_0);	array_init(_0);	zephir_update_static_property_ce(cake_core_configure_ce, SL("_engines"), &_0 TSRMLS_CC);	ZEPHIR_INIT_VAR(_1);	zephir_create_array(_1, 1, 0 TSRMLS_CC);	add_assoc_long_ex(_1, SS("debug"), 0);	zephir_update_static_property_ce(cake_core_configure_ce, SL("_values"), &_1 TSRMLS_CC);	ZEPHIR_MM_RESTORE();}
开发者ID:ivyhjk,项目名称:zephir-cake,代码行数:17,


示例8: PHP_METHOD

PHP_METHOD(Test_Fibonnaci, fibArray) {	int i = 0, n = 0, k = 0, j = 0;	zval fib, a, b, c, _0;		zval this_zv;	zval *this_ptr = getThis();	if (EXPECTED(this_ptr)) {		ZVAL_OBJ(&this_zv, Z_OBJ_P(this_ptr));		this_ptr = &this_zv;	} else this_ptr = NULL;		ZVAL_UNDEF(&fib);	ZVAL_UNDEF(&a);	ZVAL_UNDEF(&b);	ZVAL_UNDEF(&c);	ZVAL_UNDEF(&_0);	ZEPHIR_MM_GROW();	ZEPHIR_INIT_VAR(&fib);	zephir_create_array(&fib, 2, 0 TSRMLS_CC);	ZEPHIR_INIT_VAR(&_0);	ZVAL_LONG(&_0, 0);	zephir_array_fast_append(&fib, &_0);	ZEPHIR_INIT_NVAR(&_0);	ZVAL_LONG(&_0, 1);	zephir_array_fast_append(&fib, &_0);	i = 2;	n = 10;	while (1) {		if (!(i < n)) {			break;		}		k = (i - 1);		j = (i - 2);		zephir_array_fetch_long(&a, &fib, k, PH_NOISY | PH_READONLY, "test/fibonnaci.zep", 51 TSRMLS_CC);		zephir_array_fetch_long(&b, &fib, j, PH_NOISY | PH_READONLY, "test/fibonnaci.zep", 52 TSRMLS_CC);		ZEPHIR_INIT_NVAR(&c);		zephir_add_function(&c, &a, &b);		zephir_array_update_long(&fib, i, &c, PH_COPY | PH_SEPARATE ZEPHIR_DEBUG_PARAMS_DUMMY);		i++;	}	RETURN_CCTOR(fib);}
开发者ID:Mrhjx2,项目名称:zephir,代码行数:45,


示例9: PHP_METHOD

PHP_METHOD(Test_Vars, testVarExport) {	zval __$false, a, ar, ret, _0, _1, _2;		zval this_zv;	zval *this_ptr = getThis();	if (EXPECTED(this_ptr)) {		ZVAL_OBJ(&this_zv, Z_OBJ_P(this_ptr));		this_ptr = &this_zv;	} else this_ptr = NULL;		ZVAL_BOOL(&__$false, 0);	ZVAL_UNDEF(&a);	ZVAL_UNDEF(&ar);	ZVAL_UNDEF(&ret);	ZVAL_UNDEF(&_0);	ZVAL_UNDEF(&_1);	ZVAL_UNDEF(&_2);	ZEPHIR_MM_GROW();	ZEPHIR_INIT_VAR(&a);	ZVAL_STRING(&a, "hello");	ZEPHIR_INIT_VAR(&ar);	zephir_create_array(&ar, 3, 0 TSRMLS_CC);	ZEPHIR_INIT_VAR(&_0);	ZVAL_LONG(&_0, 1);	zephir_array_fast_append(&ar, &_0);	ZEPHIR_INIT_NVAR(&_0);	ZVAL_STRING(&_0, "world");	zephir_array_fast_append(&ar, &_0);	zephir_array_fast_append(&ar, &__$false);	ZEPHIR_INIT_VAR(&_1);	ZEPHIR_CPY_WRT(&_1, &ar);	zephir_var_export(&_1 TSRMLS_CC);	ZEPHIR_INIT_VAR(&ret);	zephir_var_export_ex(&ret, &ar TSRMLS_CC);	ZEPHIR_INIT_VAR(&_2);	ZEPHIR_CPY_WRT(&_2, &a);	zephir_var_export(&_2 TSRMLS_CC);	ZEPHIR_INIT_NVAR(&ret);	zephir_var_export_ex(&ret, &a TSRMLS_CC);	RETURN_CCTOR(ret);}
开发者ID:Mrhjx2,项目名称:zephir,代码行数:44,


示例10: PHP_METHOD

/** * Appends a NOT BETWEEN condition to the current conditions * *<code> *	$criteria->notBetweenWhere('price', 100.25, 200.50); *</code> */PHP_METHOD(Phalcon_Mvc_Model_Criteria, notBetweenWhere) {	zval *_1;	int ZEPHIR_LAST_CALL_STATUS;	zval *expr_param = NULL, *minimum, *maximum, *hiddenParam = NULL, *nextHiddenParam = NULL, *minimumKey = NULL, *maximumKey = NULL, *_0;	zval *expr = NULL;	ZEPHIR_MM_GROW();	zephir_fetch_params(1, 3, 0, &expr_param, &minimum, &maximum);	if (unlikely(Z_TYPE_P(expr_param) != IS_STRING && Z_TYPE_P(expr_param) != IS_NULL)) {		zephir_throw_exception_string(spl_ce_InvalidArgumentException, SL("Parameter 'expr' must be a string") TSRMLS_CC);		RETURN_MM_NULL();	}	if (likely(Z_TYPE_P(expr_param) == IS_STRING)) {		zephir_get_strval(expr, expr_param);	} else {		ZEPHIR_INIT_VAR(expr);		ZVAL_EMPTY_STRING(expr);	}	ZEPHIR_OBS_VAR(hiddenParam);	zephir_read_property_this(&hiddenParam, this_ptr, SL("_hiddenParamNumber"), PH_NOISY_CC);	ZEPHIR_INIT_VAR(nextHiddenParam);	ZVAL_LONG(nextHiddenParam, (zephir_get_numberval(hiddenParam) + 1));	ZEPHIR_INIT_VAR(minimumKey);	ZEPHIR_CONCAT_SV(minimumKey, "ACP", hiddenParam);	ZEPHIR_INIT_VAR(maximumKey);	ZEPHIR_CONCAT_SV(maximumKey, "ACP", nextHiddenParam);	ZEPHIR_INIT_VAR(_0);	ZEPHIR_CONCAT_VSVSVS(_0, expr, " NOT BETWEEN :", minimumKey, ": AND :", maximumKey, ":");	ZEPHIR_INIT_VAR(_1);	zephir_create_array(_1, 2, 0 TSRMLS_CC);	zephir_array_update_zval(&_1, minimumKey, &minimum, PH_COPY);	zephir_array_update_zval(&_1, maximumKey, &maximum, PH_COPY);	ZEPHIR_CALL_METHOD(NULL, this_ptr, "andwhere", NULL, 0, _0, _1);	zephir_check_call_status();	ZEPHIR_SEPARATE(nextHiddenParam);	zephir_increment(nextHiddenParam);	zephir_update_property_this(this_ptr, SL("_hiddenParamNumber"), nextHiddenParam TSRMLS_CC);	RETURN_THIS();}
开发者ID:8V017UW2RQ70,项目名称:cphalcon,代码行数:51,


示例11: PHP_METHOD

PHP_METHOD(Owl_Http_Response_Json, __construct) {	int ZEPHIR_LAST_CALL_STATUS;	zval *_1;	zval *_0;	ZEPHIR_MM_GROW();	ZEPHIR_INIT_VAR(_0);	object_init_ex(_0, owl_std_arraybag_ce);	ZEPHIR_INIT_VAR(_1);	zephir_create_array(_1, 1, 0 TSRMLS_CC);	add_assoc_stringl_ex(_1, SS("Content-Type"), SL("application/json"), 1);	ZEPHIR_CALL_METHOD(NULL, _0, "__construct", NULL, 3, _1);	zephir_check_call_status();	zephir_update_property_this(this_ptr, SL("headers"), _0 TSRMLS_CC);	ZEPHIR_MM_RESTORE();}
开发者ID:noikiy,项目名称:owl,代码行数:19,


示例12: PHP_METHOD

PHP_METHOD(Cake_Core_Functions, pluginSplit) {	zend_bool dotAppend;	zval *name_param = NULL, *dotAppend_param = NULL, *plugin_param = NULL, _0, *_1, *parts, *_2;	zval *name = NULL, *plugin = NULL;	ZEPHIR_MM_GROW();	zephir_fetch_params(1, 1, 2, &name_param, &dotAppend_param, &plugin_param);	zephir_get_strval(name, name_param);	if (!dotAppend_param) {		dotAppend = 0;	} else {		dotAppend = zephir_get_boolval(dotAppend_param);	}	if (!plugin_param) {		ZEPHIR_INIT_VAR(plugin);		ZVAL_EMPTY_STRING(plugin);	} else {		zephir_get_strval(plugin, plugin_param);	}	ZEPHIR_SINIT_VAR(_0);	ZVAL_STRING(&_0, ".", 0);	ZEPHIR_INIT_VAR(_1);	zephir_fast_strpos(_1, name, &_0, 0 );	if (!ZEPHIR_IS_FALSE_IDENTICAL(_1)) {		ZEPHIR_INIT_VAR(parts);		zephir_fast_explode_str(parts, SL("."), name, 2  TSRMLS_CC);		if (dotAppend) {			ZEPHIR_INIT_VAR(_2);			ZVAL_STRING(_2, ".", 1);			zephir_array_update_long(&parts, 0, &_2, PH_COPY | PH_SEPARATE, "cake/Core/Functions.zep", 12);		}		RETURN_CCTOR(parts);	}	zephir_create_array(return_value, 2, 0 TSRMLS_CC);	zephir_array_fast_append(return_value, plugin);	zephir_array_fast_append(return_value, name);	RETURN_MM();}
开发者ID:ivyhjk,项目名称:zephir-cake,代码行数:43,


示例13: PHP_METHOD

/** * Phalcon/Assets/Inline/Css * * @param string content * @param boolean filter * @param array attributes */PHP_METHOD(Phalcon_Assets_Inline_Css, __construct) {	int ZEPHIR_LAST_CALL_STATUS;	zephir_fcall_cache_entry *_0 = NULL;	zend_bool filter;	zval *content_param = NULL, *filter_param = NULL, *attributes = NULL, *_1, *_2;	zval *content = NULL;	ZEPHIR_MM_GROW();	zephir_fetch_params(1, 1, 2, &content_param, &filter_param, &attributes);	zephir_get_strval(content, content_param);	if (!filter_param) {		filter = 1;	} else {		filter = zephir_get_boolval(filter_param);	}	if (!attributes) {		ZEPHIR_CPY_WRT(attributes, ZEPHIR_GLOBAL(global_null));	} else {		ZEPHIR_SEPARATE_PARAM(attributes);	}	if (Z_TYPE_P(attributes) == IS_NULL) {		ZEPHIR_INIT_NVAR(attributes);		zephir_create_array(attributes, 1, 0 TSRMLS_CC);		add_assoc_stringl_ex(attributes, SS("type"), SL("text/css"), 1);	}	ZEPHIR_INIT_VAR(_1);	ZVAL_STRING(_1, "css", ZEPHIR_TEMP_PARAM_COPY);	ZEPHIR_INIT_VAR(_2);	if (filter) {		ZVAL_BOOL(_2, 1);	} else {		ZVAL_BOOL(_2, 0);	}	ZEPHIR_CALL_PARENT(NULL, phalcon_assets_inline_css_ce, this_ptr, "__construct", &_0, 104, _1, content, _2, attributes);	zephir_check_temp_parameter(_1);	zephir_check_call_status();	ZEPHIR_MM_RESTORE();}
开发者ID:AmazingDreams,项目名称:cphalcon,代码行数:50,


示例14: PHP_METHOD

/** * Listen for uncaught exceptions */PHP_METHOD(Phalcon_Debug, listenExceptions) {	zval *_1;	zval *_0;	int ZEPHIR_LAST_CALL_STATUS;	ZEPHIR_MM_GROW();	ZEPHIR_INIT_VAR(_0);	zephir_create_array(_0, 2, 0 TSRMLS_CC);	zephir_array_fast_append(_0, this_ptr);	ZEPHIR_INIT_VAR(_1);	ZVAL_STRING(_1, "onUncaughtException", 1);	zephir_array_fast_append(_0, _1);	ZEPHIR_CALL_FUNCTION(NULL, "set_exception_handler", NULL, 155, _0);	zephir_check_call_status();	RETURN_THIS();}
开发者ID:bschantz,项目名称:cphalcon,代码行数:22,


示例15: PHP_METHOD

/** * Unregisters this instance as an autoloader. */PHP_METHOD(Xpl_ClassLoader, unregister) {	zval *_1;	zval *_0;	int ZEPHIR_LAST_CALL_STATUS;	ZEPHIR_MM_GROW();	ZEPHIR_INIT_VAR(_0);	zephir_create_array(_0, 2, 0 TSRMLS_CC);	zephir_array_fast_append(_0, this_ptr);	ZEPHIR_INIT_VAR(_1);	ZVAL_STRING(_1, "loadClass", 1);	zephir_array_fast_append(_0, _1);	ZEPHIR_CALL_FUNCTION(NULL, "spl_autoload_unregister", NULL, 54, _0);	zephir_check_call_status();	ZEPHIR_MM_RESTORE();}
开发者ID:wells5609,项目名称:xpl,代码行数:22,


示例16: PHP_METHOD

PHP_METHOD(PhalconPlus_Db_UnitOfWork, update) {	zend_long ZEPHIR_LAST_CALL_STATUS;	zend_bool assign, _0;	zval *initial_data = NULL, *_1;	zval *name, *model, *initial_data_param = NULL, *assign_param = NULL;	ZEPHIR_MM_GROW();	zephir_fetch_params(1, 2, 2, &name, &model, &initial_data_param, &assign_param);	if (!initial_data_param) {		ZEPHIR_INIT_VAR(initial_data);		array_init(initial_data);	} else {		zephir_get_arrval(initial_data, initial_data_param);	}	if (!assign_param) {		assign = 1;	} else {		assign = zephir_get_boolval(assign_param);	}	_0 = !(ZEPHIR_IS_EMPTY(initial_data));	if (_0) {		_0 = assign == 1;	}	if (_0) {		ZEPHIR_CALL_METHOD(NULL, model, "assign", NULL, 0, initial_data);		zephir_check_call_status();	}	ZEPHIR_CALL_METHOD(NULL, this_ptr, "detach", NULL, 0, model);	zephir_check_call_status();	ZEPHIR_INIT_VAR(_1);	zephir_create_array(_1, 3, 0 TSRMLS_CC);	add_assoc_stringl_ex(_1, SS("method"), SL("update"), 1);	zephir_array_update_string(&_1, SL("name"), &name, PH_COPY | PH_SEPARATE);	zephir_array_update_string(&_1, SL("initial_data"), &initial_data, PH_COPY | PH_SEPARATE);	ZEPHIR_CALL_METHOD(NULL, this_ptr, "attach", NULL, 0, model, _1);	zephir_check_call_status();	ZEPHIR_MM_RESTORE();}
开发者ID:bullsoft,项目名称:phalconplus,代码行数:43,



注:本文中的zephir_create_array函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ zephir_fast_array_merge函数代码示例
C++ zephir_concat_self函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。