本文整理汇总了C++中PHP_ME函数的典型用法代码示例。如果您正苦于以下问题:C++ PHP_ME函数的具体用法?C++ PHP_ME怎么用?C++ PHP_ME使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PHP_ME函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: air_arr_idx_find
zval *service = air_arr_idx_find(services, id);
if(service){
air_call_static_method(air_async_scheduler_ce, "loop", NULL, 0, NULL);
data = air_arr_idx_find(responses, id);
}
}
if(data){
RETURN_ZVAL(data, 1, 0);
}
RETURN_NULL();
}
/* }}} */
/* {{{ air_async_waiter_methods */
zend_function_entry air_async_waiter_methods[] = {
PHP_ME(air_async_waiter, __construct, air_async_waiter_construct_arginfo, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
PHP_ME(air_async_waiter, serve, air_async_waiter_serve_arginfo, ZEND_ACC_PUBLIC)
//PHP_ME(air_async_waiter, _response, NULL, ZEND_ACC_PUBLIC)
PHP_ME(air_async_waiter, acquire, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
PHP_ME(air_async_waiter, response, air_async_waiter_resp_arginfo, ZEND_ACC_PUBLIC)
{NULL, NULL, NULL}
};
/* }}} */
/* {{{ AIR_MINIT_FUNCTION */
AIR_MINIT_FUNCTION(air_async_waiter) {
zend_class_entry ce;
INIT_CLASS_ENTRY(ce, "air\\async\\waiter", air_async_waiter_methods);
air_async_waiter_ce = zend_register_internal_class_ex(&ce, NULL, NULL TSRMLS_CC);
示例2: RETURN_ZVAL
return;
}
if (!sxe->iter.data || sxe->iter.type == SXE_ITER_ATTRLIST) {
return; /* return NULL */
}
RETURN_ZVAL(sxe->iter.data, 1, 0);
}
/* {{{ arginfo */
ZEND_BEGIN_ARG_INFO(arginfo_simplexmliterator__void, 0)
ZEND_END_ARG_INFO()
/* }}} */
static const zend_function_entry funcs_SimpleXMLIterator[] = {
PHP_ME(ce_SimpleXMLIterator, rewind, arginfo_simplexmliterator__void, ZEND_ACC_PUBLIC)
PHP_ME(ce_SimpleXMLIterator, valid, arginfo_simplexmliterator__void, ZEND_ACC_PUBLIC)
PHP_ME(ce_SimpleXMLIterator, current, arginfo_simplexmliterator__void, ZEND_ACC_PUBLIC)
PHP_ME(ce_SimpleXMLIterator, key, arginfo_simplexmliterator__void, ZEND_ACC_PUBLIC)
PHP_ME(ce_SimpleXMLIterator, next, arginfo_simplexmliterator__void, ZEND_ACC_PUBLIC)
PHP_ME(ce_SimpleXMLIterator, hasChildren, arginfo_simplexmliterator__void, ZEND_ACC_PUBLIC)
PHP_ME(ce_SimpleXMLIterator, getChildren, arginfo_simplexmliterator__void, ZEND_ACC_PUBLIC)
{NULL, NULL, NULL}
};
/* }}} */
PHP_MINIT_FUNCTION(sxe) /* {{{ */
{
zend_class_entry **pce;
zend_class_entry sxi;
示例3: ZEND_EXTERN_MODULE_GLOBALS
#include "../php_mongo.h"
#include "log.h"
zend_class_entry *mongo_ce_Log;
ZEND_EXTERN_MODULE_GLOBALS(mongo);
static long set_value(char *setting, zval *return_value TSRMLS_DC);
static void get_value(char *setting, zval *return_value TSRMLS_DC);
#if PHP_VERSION_ID >= 50300
static void userland_callback(int module, int level, char *message TSRMLS_DC);
#endif
static zend_function_entry mongo_log_methods[] = {
PHP_ME(MongoLog, setLevel, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
PHP_ME(MongoLog, getLevel, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
PHP_ME(MongoLog, setModule, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
PHP_ME(MongoLog, getModule, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
#if PHP_VERSION_ID >= 50300
PHP_ME(MongoLog, setCallback, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
PHP_ME(MongoLog, getCallback, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
#endif
{NULL, NULL, NULL}
};
void mongo_init_MongoLog(TSRMLS_D) {
zend_class_entry ce;
INIT_CLASS_ENTRY(ce, "MongoLog", mongo_log_methods);
mongo_ce_Log = zend_register_internal_class(&ce TSRMLS_CC);
示例4: PHP_METHOD
static
PHP_METHOD(MsgqueForPhp_MqFactoryS, __construct)
{
RETURN_ERROR("it is not allowed to create an instance og 'MqFactoryS'.");
}
ZEND_BEGIN_ARG_INFO_EX(no_arg, 0, 0, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(ident_arg, 0, 0, 1)
ZEND_ARG_INFO(0, "ident")
ZEND_END_ARG_INFO()
static const zend_function_entry NS(MqFactoryS_functions)[] = {
PHP_ME(MsgqueForPhp_MqFactoryS, __construct, NULL, ZEND_ACC_PRIVATE|ZEND_ACC_CTOR)
PHP_ME(MsgqueForPhp_MqFactoryS, New, no_arg, ZEND_ACC_PUBLIC)
PHP_ME(MsgqueForPhp_MqFactoryS, Copy, ident_arg, ZEND_ACC_PUBLIC)
{NULL, NULL, NULL}
};
/*****************************************************************************/
/* */
/* public */
/* */
/*****************************************************************************/
void NS(MqFactoryS_New) (zval *return_value, struct MqFactoryS *factory TSRMLS_DC)
{
if (factory == NULL) {
示例5: ZEND_BEGIN_ARG_INFO_EX
/* {{{ arginfo */
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_processinginstruction_construct, 0, 0, 1)
ZEND_ARG_INFO(0, name)
ZEND_ARG_INFO(0, value)
ZEND_END_ARG_INFO();
/* }}} */
/*
* class DOMProcessingInstruction extends DOMNode
*
* URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-1004215813
* Since:
*/
const zend_function_entry php_dom_processinginstruction_class_functions[] = {
PHP_ME(domprocessinginstruction, __construct, arginfo_dom_processinginstruction_construct, ZEND_ACC_PUBLIC)
PHP_FE_END
};
/* {{{ proto void DOMProcessingInstruction::__construct(string name, [string value]); */
PHP_METHOD(domprocessinginstruction, __construct)
{
zval *id;
xmlNodePtr nodep = NULL, oldnode = NULL;
dom_object *intern;
char *name, *value = NULL;
size_t name_len, value_len;
int name_valid;
zend_error_handling error_handling;
zend_replace_error_handling(EH_THROW, dom_domexception_class_entry, &error_handling);
示例6: PHP_METHOD
PHP_METHOD(Phalcon_Validation_Message, __toString);
PHP_METHOD(Phalcon_Validation_Message, __set_state);
ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message___construct, 0, 0, 1)
ZEND_ARG_INFO(0, message)
ZEND_ARG_INFO(0, field)
ZEND_ARG_INFO(0, type)
ZEND_ARG_INFO(0, code)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_validation_message___set_state, 0, 0, 1)
ZEND_ARG_INFO(0, message)
ZEND_END_ARG_INFO()
static const zend_function_entry phalcon_validation_message_method_entry[] = {
PHP_ME(Phalcon_Validation_Message, __construct, arginfo_phalcon_validation_message___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR)
PHP_ME(Phalcon_Validation_Message, setType, arginfo_phalcon_validation_messageinterface_settype, ZEND_ACC_PUBLIC)
PHP_ME(Phalcon_Validation_Message, getType, NULL, ZEND_ACC_PUBLIC)
PHP_ME(Phalcon_Validation_Message, setCode, arginfo_phalcon_validation_messageinterface_setcode, ZEND_ACC_PUBLIC)
PHP_ME(Phalcon_Validation_Message, getCode, NULL, ZEND_ACC_PUBLIC)
PHP_ME(Phalcon_Validation_Message, setMessage, arginfo_phalcon_validation_messageinterface_setmessage, ZEND_ACC_PUBLIC)
PHP_ME(Phalcon_Validation_Message, getMessage, NULL, ZEND_ACC_PUBLIC)
PHP_ME(Phalcon_Validation_Message, setField, arginfo_phalcon_validation_messageinterface_setfield, ZEND_ACC_PUBLIC)
PHP_ME(Phalcon_Validation_Message, getField, NULL, ZEND_ACC_PUBLIC)
PHP_ME(Phalcon_Validation_Message, __toString, NULL, ZEND_ACC_PUBLIC)
PHP_ME(Phalcon_Validation_Message, __set_state, arginfo_phalcon_validation_message___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
PHP_FE_END
};
/**
* Phalcon\Validation\Message initializer
示例7: PHP_ME
#include "ext/standard/php_var.h"
#include "ct_helper.h"
#include "php_pux.h"
#include "pux_mux.h"
#include "pux_functions.h"
#include "php_expandable_mux.h"
#include "pux_controller.h"
#include "annotation/scanner.h"
#include "annotation/annot.h"
zend_class_entry *ce_pux_controller;
const zend_function_entry controller_methods[] = {
PHP_ME(Controller, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR)
PHP_ME(Controller, expand, NULL, ZEND_ACC_PUBLIC)
PHP_ME(Controller, parseActionMethods, NULL, ZEND_ACC_PUBLIC)
PHP_ME(Controller, build, NULL, ZEND_ACC_PUBLIC)
PHP_ME(Controller, before, NULL, ZEND_ACC_PUBLIC)
PHP_ME(Controller, after, NULL, ZEND_ACC_PUBLIC)
PHP_ME(Controller, toJson, NULL, ZEND_ACC_PUBLIC)
// PHP_ME(Controller, __destruct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_DTOR)
PHP_FE_END
};
static char * translate_method_name_to_path(const char *method_name, int * path_len);
static void zend_parse_action_annotations(zend_class_entry *ce, zval *retval, int parent TSRMLS_DC);
示例8: ZEND_BEGIN_ARG_INFO_EX
/* {{{ arginfo */
ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_cdatasection_construct, 0, 0, 1)
ZEND_ARG_INFO(0, value)
ZEND_END_ARG_INFO();
/* }}} */
/*
* class DOMCdataSection extends DOMText
*
* URL: https://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-667469212
* Since:
*/
const zend_function_entry php_dom_cdatasection_class_functions[] = {
PHP_ME(domcdatasection, __construct, arginfo_dom_cdatasection_construct, ZEND_ACC_PUBLIC)
PHP_FE_END
};
/* {{{ proto DOMCdataSection::__construct(string value); */
PHP_METHOD(domcdatasection, __construct)
{
zval *id = getThis();
xmlNodePtr nodep = NULL, oldnode = NULL;
dom_object *intern;
char *value = NULL;
size_t value_len;
if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "s", &value, &value_len) == FAILURE) {
return;
示例9: sp_artistbrowse_create
sp_artistbrowse *tmpbrowse = sp_artistbrowse_create(p->session, p->artist, SP_ARTISTBROWSE_FULL, artistbrowse_complete, p);
while (!sp_artistbrowse_is_loaded(tmpbrowse)) {
sp_session_process_events(p->session, &timeout);
}
RETURN_TRUE;
}
PHP_METHOD(SpotifyArtist, __toString)
{
spotifyartist_object *p = (spotifyartist_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
RETURN_STRING(sp_artist_name(p->artist), 1);
}
zend_function_entry spotifyartist_methods[] = {
PHP_ME(SpotifyArtist, __construct, NULL, ZEND_ACC_PRIVATE|ZEND_ACC_CTOR)
PHP_ME(SpotifyArtist, __destruct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_DTOR)
PHP_ME(SpotifyArtist, getName, NULL, ZEND_ACC_PUBLIC)
PHP_ME(SpotifyArtist, getURI, NULL, ZEND_ACC_PUBLIC)
PHP_ME(SpotifyArtist, getAlbums, NULL, ZEND_ACC_PUBLIC)
PHP_ME(SpotifyArtist, getPortrait, NULL, ZEND_ACC_PUBLIC)
PHP_ME(SpotifyArtist, getNumPortraits, NULL, ZEND_ACC_PUBLIC)
PHP_ME(SpotifyArtist, browse, NULL, ZEND_ACC_PRIVATE)
PHP_ME(SpotifyArtist, __toString, NULL, ZEND_ACC_PUBLIC)
{NULL, NULL, NULL}
};
void spotifyartist_free_storage(void *object TSRMLS_DC)
{
spotifyartist_object *obj = (spotifyartist_object*)object;
zend_hash_destroy(obj->std.properties);
示例10: PHP_ME
{
NULL,
http_request_on_path,
http_request_on_query_string,
http_request_on_url,
NULL,
http_request_on_header_field,
http_request_on_header_value,
http_request_on_headers_complete,
http_request_on_body,
http_request_message_complete
};
const zend_function_entry swoole_http_server_methods[] =
{
PHP_ME(swoole_http_server, on, arginfo_swoole_http_server_on, ZEND_ACC_PUBLIC)
PHP_ME(swoole_http_server, start, NULL, ZEND_ACC_PUBLIC)
PHP_FE_END
};
const zend_function_entry swoole_http_response_methods[] =
{
PHP_ME(swoole_http_response, cookie, NULL, ZEND_ACC_PUBLIC)
PHP_ME(swoole_http_response, status, NULL, ZEND_ACC_PUBLIC)
PHP_ME(swoole_http_response, header, NULL, ZEND_ACC_PUBLIC)
PHP_ME(swoole_http_response, end, NULL, ZEND_ACC_PUBLIC)
PHP_ME(swoole_http_response, message, NULL, ZEND_ACC_PUBLIC)
PHP_FE_END
};
static int http_request_on_path(php_http_parser *parser, const char *at, size_t length)
示例11: FNT_PROPERTY_SET
#define FNT_PROPERTY_SET(set_function_name, set_value) \
excel_font_object* fntObj = \
(excel_font_object*) zend_object_store_get_object(this_ptr TSRMLS_CC); \
if (fntObj != NULL && fntObj->pExcelFont != NULL) \
{ \
fntObj->pExcelFont->set_function_name(set_value); \
RETURN_TRUE; \
} \
RETURN_FALSE;
extern zend_object_handlers excel_font_object_handlers;
extern zend_class_entry* excel_font_ce;
zend_function_entry excel_font_methods[] = {
PHP_ME(ExcelFont, __construct, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
PHP_ME(ExcelFont, setWeight, NULL, ZEND_ACC_PUBLIC)
PHP_ME(ExcelFont, setColor, NULL, ZEND_ACC_PUBLIC)
PHP_ME(ExcelFont, setItalic, NULL, ZEND_ACC_PUBLIC)
{NULL, NULL, NULL}
};
void excel_font_free_storage(void* object TSRMLS_DC)
{
excel_font_object* obj = (excel_font_object*) object;
if (obj->pExcelFont != NULL)
{
delete obj->pExcelFont;
}
zend_object_std_dtor(&obj->std TSRMLS_CC);
efree(obj);
示例12: zend_restore_error_handling
zend_restore_error_handling(&error_handling TSRMLS_CC);
return;
}
zend_restore_error_handling(&error_handling TSRMLS_CC);
php_mongo_api_batch_ctor(intern, zcollection, MONGODB_API_COMMAND_UPDATE, write_options TSRMLS_CC);
}
/* }}} */
ZEND_BEGIN_ARG_INFO_EX(arginfo___construct, 0, ZEND_RETURN_VALUE, 1)
ZEND_ARG_OBJ_INFO(0, collection, MongoCollection, 0)
ZEND_ARG_ARRAY_INFO(0, write_options, 0)
ZEND_END_ARG_INFO()
static zend_function_entry MongoUpdateBatch_methods[] = {
PHP_ME(MongoUpdateBatch, __construct, arginfo___construct, ZEND_ACC_PUBLIC)
PHP_FE_END
};
void mongo_init_MongoUpdateBatch(TSRMLS_D)
{
zend_class_entry update_batch;
INIT_CLASS_ENTRY(update_batch, "MongoUpdateBatch", MongoUpdateBatch_methods);
update_batch.create_object = php_mongo_write_batch_object_new;
mongo_ce_UpdateBatch = zend_register_internal_class_ex(&update_batch, mongo_ce_WriteBatch, "MongoWriteBatch" TSRMLS_CC);
}
/*
* Local variables:
示例13: PHP_METHOD
#include "php_swoole.h"
static PHP_METHOD(swoole_lock, __construct);
static PHP_METHOD(swoole_lock, __destruct);
static PHP_METHOD(swoole_lock, lock);
static PHP_METHOD(swoole_lock, trylock);
static PHP_METHOD(swoole_lock, lock_read);
static PHP_METHOD(swoole_lock, trylock_read);
static PHP_METHOD(swoole_lock, unlock);
static zend_class_entry swoole_lock_ce;
zend_class_entry *swoole_lock_class_entry_ptr;
static const zend_function_entry swoole_lock_methods[] =
{
PHP_ME(swoole_lock, __construct, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
PHP_ME(swoole_lock, __destruct, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_DTOR)
PHP_ME(swoole_lock, lock, NULL, ZEND_ACC_PUBLIC)
PHP_ME(swoole_lock, trylock, NULL, ZEND_ACC_PUBLIC)
PHP_ME(swoole_lock, lock_read, NULL, ZEND_ACC_PUBLIC)
PHP_ME(swoole_lock, trylock_read, NULL, ZEND_ACC_PUBLIC)
PHP_ME(swoole_lock, unlock, NULL, ZEND_ACC_PUBLIC)
PHP_FE_END
};
void swoole_lock_init(int module_number TSRMLS_DC)
{
INIT_CLASS_ENTRY(swoole_lock_ce, "swoole_lock", swoole_lock_methods);
swoole_lock_class_entry_ptr = zend_register_internal_class(&swoole_lock_ce TSRMLS_CC);
zend_register_class_alias("Swoole\\Lock", swoole_lock_class_entry_ptr);
示例14: PHP_METHOD
PHP_METHOD(MongoRegex, __toString)
{
char *field_name;
zval *zre = zend_read_property(mongo_ce_Regex, getThis(), "regex", strlen("regex"), NOISY TSRMLS_CC);
zval *zopts = zend_read_property(mongo_ce_Regex, getThis(), "flags", strlen("flags"), NOISY TSRMLS_CC);
char *re = Z_STRVAL_P(zre);
char *opts = Z_STRVAL_P(zopts);
spprintf(&field_name, 0, "/%s/%s", re, opts);
RETVAL_STRING(field_name, 0);
}
/* }}} */
static zend_function_entry MongoRegex_methods[] = {
PHP_ME(MongoRegex, __construct, NULL, ZEND_ACC_PUBLIC)
PHP_ME(MongoRegex, __toString, NULL, ZEND_ACC_PUBLIC)
PHP_FE_END
};
void mongo_init_MongoRegex(TSRMLS_D)
{
zend_class_entry ce;
INIT_CLASS_ENTRY(ce, "MongoRegex", MongoRegex_methods);
ce.create_object = php_mongo_type_object_new;
mongo_ce_Regex = zend_register_internal_class(&ce TSRMLS_CC);
zend_declare_property_string(mongo_ce_Regex, "regex", strlen("regex"), "", ZEND_ACC_PUBLIC|MONGO_ACC_READ_ONLY TSRMLS_CC);
zend_declare_property_string(mongo_ce_Regex, "flags", strlen("flags"), "", ZEND_ACC_PUBLIC|MONGO_ACC_READ_ONLY TSRMLS_CC);
}
示例15: PHP_METHOD
#include "php_slim.h"
#include "slim_collection.h"
zend_class_entry *slim_collection_ce;
/** 构造函数 **/
PHP_METHOD(slim_collection, __construct)
{
}
/** 方法参数个数声明 **/
ZEND_BEGIN_ARG_INFO_EX(slim_collection_void_arginfo, 0, 0, 0)
ZEND_END_ARG_INFO()
zend_function_entry slim_collection_methods[] = {
PHP_ME(slim_collection, __construct, slim_collection_void_arginfo, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
{NULL, NULL, NULL}
};
SLIM_MINIT_FUNCTION(collection)
{
//声明属性,设置累修饰符等
zend_class_entry ce;
INIT_CLASS_ENTRY(ce, "Slim\\Http\\Collection", slim_collection_methods);
slim_collection_ce = zend_register_internal_class_ex(&ce, NULL, NULL TSRMLS_CC);
//slim_collection_ce->ce_flags |= ZEND_ACC_FINAL_CLASS;
return SUCCESS;
}