本文整理汇总了C++中PHP_FE函数的典型用法代码示例。如果您正苦于以下问题:C++ PHP_FE函数的具体用法?C++ PHP_FE怎么用?C++ PHP_FE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PHP_FE函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: ZEND_GET_MODULE
#include "php_swap.h"
#if COMPILE_DL_SWAP
ZEND_GET_MODULE(swap)
#endif
static const zend_function_entry swap_functions[] = {
PHP_FE(swap, NULL)
PHP_FE_END
};
zend_module_entry swap_module_entry = {
STANDARD_MODULE_HEADER,
"Swap", // your extension name
swap_functions, // where you define your functions
NULL, // PHP_MINIT(swap), // for module initialization
NULL, // PHP_MSHUTDOWN(swap), // for module shutdown process
NULL, // PHP_RINIT(swap) // for request initialization
NULL, // PHP_RSHUTDOWN(swap) // for reqeust shutdown process
NULL, // PHP_MINFO(swap), // for providing module information
"0.1",
STANDARD_MODULE_PROPERTIES
};
// Remove the comment if you want to initiazlie something (class entry, resource entry, constants ... etc)
/*
PHP_MINIT_FUNCTION(swap) {
return SUCCESS;
}
PHP_MSHUTDOWN_FUNCTION(swap) {
return SUCCESS;
开发者ID:ffbli666,项目名称:php-extension-examples,代码行数:31,代码来源:php_swap.c
示例2: ZEND_END_ARG_INFO
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_filter_has_var, 0, 0, 2)
ZEND_ARG_INFO(0, type)
ZEND_ARG_INFO(0, variable_name)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_filter_id, 0, 0, 1)
ZEND_ARG_INFO(0, filtername)
ZEND_END_ARG_INFO()
/* }}} */
/* {{{ filter_functions[]
*/
static const zend_function_entry filter_functions[] = {
PHP_FE(filter_input, arginfo_filter_input)
PHP_FE(filter_var, arginfo_filter_var)
PHP_FE(filter_input_array, arginfo_filter_input_array)
PHP_FE(filter_var_array, arginfo_filter_var_array)
PHP_FE(filter_list, arginfo_filter_list)
PHP_FE(filter_has_var, arginfo_filter_has_var)
PHP_FE(filter_id, arginfo_filter_id)
PHP_FE_END
};
/* }}} */
/* {{{ filter_module_entry
*/
zend_module_entry filter_module_entry = {
STANDARD_MODULE_HEADER,
"filter",
开发者ID:Distrotech,项目名称:php-src,代码行数:31,代码来源:filter.c
示例3: ZEND_ARG_INFO
ZEND_ARG_INFO(0, xml)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_xmlrpc_server_add_introspection_data, 0, 0, 2)
ZEND_ARG_INFO(0, server)
ZEND_ARG_INFO(0, desc)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_xmlrpc_server_register_introspection_callback, 0, 0, 2)
ZEND_ARG_INFO(0, server)
ZEND_ARG_INFO(0, function)
ZEND_END_ARG_INFO()
/* }}} */
const zend_function_entry xmlrpc_functions[] = {
PHP_FE(xmlrpc_encode, arginfo_xmlrpc_encode)
PHP_FE(xmlrpc_decode, arginfo_xmlrpc_decode)
PHP_FE(xmlrpc_decode_request, arginfo_xmlrpc_decode_request)
PHP_FE(xmlrpc_encode_request, arginfo_xmlrpc_encode_request)
PHP_FE(xmlrpc_get_type, arginfo_xmlrpc_encode)
PHP_FE(xmlrpc_set_type, arginfo_xmlrpc_set_type)
PHP_FE(xmlrpc_is_fault, arginfo_xmlrpc_is_fault)
PHP_FE(xmlrpc_server_create, arginfo_xmlrpc_server_create)
PHP_FE(xmlrpc_server_destroy, arginfo_xmlrpc_server_destroy)
PHP_FE(xmlrpc_server_register_method, arginfo_xmlrpc_server_register_method)
PHP_FE(xmlrpc_server_call_method, arginfo_xmlrpc_server_call_method)
PHP_FE(xmlrpc_parse_method_descriptions, arginfo_xmlrpc_parse_method_descriptions)
PHP_FE(xmlrpc_server_add_introspection_data, arginfo_xmlrpc_server_add_introspection_data)
PHP_FE(xmlrpc_server_register_introspection_callback, arginfo_xmlrpc_server_register_introspection_callback)
PHP_FE_END
};
开发者ID:13572293130,项目名称:php-src,代码行数:31,代码来源:xmlrpc-epi-php.c
示例4: ZEND_ARG_INFO
ZEND_ARG_INFO(0, word)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_enchant_dict_store_replacement, 0, 0, 3)
ZEND_ARG_INFO(0, dict)
ZEND_ARG_INFO(0, mis)
ZEND_ARG_INFO(0, cor)
ZEND_END_ARG_INFO()
/* }}} */
/* {{{ enchant_functions[]
*
* Every user visible function must have an entry in enchant_functions[].
*/
zend_function_entry enchant_functions[] = {
PHP_FE(enchant_broker_init, arginfo_enchant_broker_init)
PHP_FE(enchant_broker_free, arginfo_enchant_broker_free)
PHP_FE(enchant_broker_get_error, arginfo_enchant_broker_free)
PHP_FE(enchant_broker_set_dict_path, arginfo_enchant_broker_set_dict_path)
PHP_FE(enchant_broker_get_dict_path, arginfo_enchant_broker_get_dict_path)
PHP_FE(enchant_broker_list_dicts, arginfo_enchant_broker_free)
PHP_FE(enchant_broker_request_dict, arginfo_enchant_broker_request_dict)
PHP_FE(enchant_broker_request_pwl_dict, arginfo_enchant_broker_request_pwl_dict)
PHP_FE(enchant_broker_free_dict, arginfo_enchant_broker_free_dict)
PHP_FE(enchant_broker_dict_exists, arginfo_enchant_broker_request_dict)
PHP_FE(enchant_broker_set_ordering, arginfo_enchant_broker_set_ordering)
PHP_FE(enchant_broker_describe, arginfo_enchant_broker_free)
PHP_FE(enchant_dict_check, arginfo_enchant_dict_check)
PHP_FE(enchant_dict_suggest, arginfo_enchant_dict_check)
PHP_FE(enchant_dict_add_to_personal, arginfo_enchant_dict_check)
PHP_FE(enchant_dict_add_to_session, arginfo_enchant_dict_check)
开发者ID:rogerhu,项目名称:dd-wrt,代码行数:31,代码来源:enchant.c
示例5: PHP_FUNCTION
// {{{ helloworld userspace function
PHP_FUNCTION(helloworld) {
php_printf("Hello World!\n");
}
// }}}
// {{{ Check if extension is built as shared module
#ifdef COMPILE_DL_HELLOWORLD
ZEND_GET_MODULE(helloworld)
#endif
// }}}
// {{{ Structure telling ZE address of our function(s)
static const zend_function_entry helloworld_functions[] = {
PHP_FE(helloworld, NULL)
PHP_FE_END
};
// }}}
// {{{ Setup module
zend_module_entry helloworld_module_entry = {
STANDARD_MODULE_HEADER,
"helloworld", // Name
helloworld_functions, // Functions
NULL, // MINIT
NULL, // MSHUTDOWN
NULL, // RINIT
NULL, // RSHUTDOWN
PHP_MINFO(helloworld), // MINFO
NO_VERSION_YET, // Version
开发者ID:rpetrano,项目名称:zgphp_osnove-php-ekstenzija,代码行数:30,代码来源:helloworld.c
示例6: ZEND_BEGIN_ARG_INFO_EX
ZEND_BEGIN_ARG_INFO_EX(arginfo_shmop_write, 0, 0, 3)
ZEND_ARG_INFO(0, shmid)
ZEND_ARG_INFO(0, data)
ZEND_ARG_INFO(0, offset)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_shmop_delete, 0, 0, 1)
ZEND_ARG_INFO(0, shmid)
ZEND_END_ARG_INFO()
/* }}} */
/* {{{ shmop_functions[]
*/
const zend_function_entry shmop_functions[] = {
PHP_FE(shmop_open, arginfo_shmop_open)
PHP_FE(shmop_read, arginfo_shmop_read)
PHP_FE(shmop_close, arginfo_shmop_close)
PHP_FE(shmop_size, arginfo_shmop_size)
PHP_FE(shmop_write, arginfo_shmop_write)
PHP_FE(shmop_delete, arginfo_shmop_delete)
PHP_FE_END
};
/* }}} */
/* {{{ shmop_module_entry
*/
zend_module_entry shmop_module_entry = {
STANDARD_MODULE_HEADER,
"shmop",
shmop_functions,
开发者ID:m4ster-git,项目名称:nginx-on-heroku,代码行数:30,代码来源:shmop.c
示例7: seaslog_throw_exception_hook
void seaslog_throw_exception_hook(zval *exception TSRMLS_DC);
static void process_event(int event_type, int type, char * error_filename, uint error_lineno, char * msg TSRMLS_DC);
ZEND_DECLARE_MODULE_GLOBALS(seaslog)
static int le_seaslog;
static char *last_logger = "default";
static char *base_path = "";
static zend_bool disting_type = 0;
static zend_bool disting_by_hour = 0;
static zend_bool use_buffer = 0;
static int buffer_size = 0;
static int level = 0;
const zend_function_entry seaslog_functions[] = {
PHP_FE(seaslog_get_version, NULL)
PHP_FE(seaslog_get_author, NULL)
{NULL, NULL, NULL}
};
const zend_function_entry seaslog_methods[] = {
PHP_ME(SEASLOG_RES_NAME, __construct, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
PHP_ME(SEASLOG_RES_NAME, __destruct, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_DTOR)
PHP_ME(SEASLOG_RES_NAME, setBasePath, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
PHP_ME(SEASLOG_RES_NAME, getBasePath, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
PHP_ME(SEASLOG_RES_NAME, setLogger, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
PHP_ME(SEASLOG_RES_NAME, getLastLogger, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
PHP_ME(SEASLOG_RES_NAME, analyzerCount, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
PHP_ME(SEASLOG_RES_NAME, analyzerDetail,NULL, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
PHP_ME(SEASLOG_RES_NAME, getBuffer, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
开发者ID:niuxiaosai,项目名称:SeasLog,代码行数:31,代码来源:seaslog.c
示例8: printf
#include "acseg_tree.h"
#define DD printf("debug:%d %s\n",__LINE__,__FILE__);
/* If you declare any globals in php_acfilter.h uncomment this:
ZEND_DECLARE_MODULE_GLOBALS(acfilter)
*/
/* True global resources - no need for thread safety here */
static int le_acfilter;
#define le_acfilter_name "Acfilter Index"
/* {{{ acfilter_functions[]
*
* Every user visible function must have an entry in acfilter_functions[].
*/
zend_function_entry acfilter_functions[] = {
PHP_FE(confirm_acfilter_compiled, NULL) /* For testing, remove later. */
PHP_FE(acfilter_new, NULL)
PHP_FE(acfilter_load_dict, NULL)
PHP_FE(acfilter_add_word, NULL)
PHP_FE(acfilter_prepare, NULL)
PHP_FE(acfilter_check_text, NULL)
PHP_FE(acfilter_close, NULL)
//PHP_FE(array_experiments,NULL)
{NULL, NULL, NULL} /* Must be the last line in acfilter_functions[] */
};
/* }}} */
/* {{{ acfilter_module_entry
*/
zend_module_entry acfilter_module_entry = {
#if ZEND_MODULE_API_NO >= 20010901
开发者ID:abulo,项目名称:acfilter,代码行数:31,代码来源:acfilter.c
示例9: ZEND_ARG_INFO
ZEND_ARG_INFO(0, value)
ZEND_ARG_INFO(0, options)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_json_decode, 0, 0, 1)
ZEND_ARG_INFO(0, json)
ZEND_ARG_INFO(0, assoc)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO(arginfo_json_last_error, 0)
ZEND_END_ARG_INFO()
/* }}} */
/* {{{ json_functions[] */
static const function_entry json_functions[] = {
PHP_FE(json_encode, arginfo_json_encode)
PHP_FE(json_decode, arginfo_json_decode)
PHP_FE(json_last_error, arginfo_json_last_error)
{NULL, NULL, NULL}
};
/* }}} */
/* {{{ MINIT */
static PHP_MINIT_FUNCTION(json)
{
REGISTER_LONG_CONSTANT("JSON_HEX_TAG", PHP_JSON_HEX_TAG, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("JSON_HEX_AMP", PHP_JSON_HEX_AMP, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("JSON_HEX_APOS", PHP_JSON_HEX_APOS, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("JSON_HEX_QUOT", PHP_JSON_HEX_QUOT, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("JSON_FORCE_OBJECT", PHP_JSON_FORCE_OBJECT, CONST_CS | CONST_PERSISTENT);
开发者ID:vpj,项目名称:PHP-Extension-API,代码行数:30,代码来源:json.c
示例10: ZEND_ARG_INFO
ZEND_ARG_INFO(0, value)
ZEND_END_ARG_INFO()
FASTLZ_ARGINFO_STATIC
ZEND_BEGIN_ARG_INFO(php_fastlz_decompress_arginfo, 0)
ZEND_ARG_INFO(0, compressed)
ZEND_END_ARG_INFO()
/* }}} */
/* {{{ fastlz_functions[]
*
* Every user visible function must have an entry in fastlz_functions[].
*/
zend_function_entry fastlz_functions[] = {
PHP_FE(fastlz_compress, php_fastlz_compress_arginfo)
PHP_FE(fastlz_decompress, php_fastlz_decompress_arginfo)
{NULL, NULL, NULL} /* Must be the last line in fastlz_functions[] */
};
/* }}} */
/* {{{ fastlz_module_entry
*/
zend_module_entry fastlz_module_entry = {
STANDARD_MODULE_HEADER,
"fastlz",
fastlz_functions,
PHP_MINIT(fastlz),
PHP_MSHUTDOWN(fastlz),
NULL,
NULL,
开发者ID:jordiclariana,项目名称:php-fastlz,代码行数:31,代码来源:php_fastlz.c
示例11: CP_INTERNAL_NORMAL_SEND
})
#define CP_INTERNAL_NORMAL_SEND(send_data)\
({ \
CP_INTERNAL_SEND_ROW(send_data,CP_SIGEVENT_TURE)\
})
#define CP_SEND_EXCEPTION do{zval *str;CP_SEND_EXCEPTION_ARGS(&str);cp_zval_ptr_dtor(&str);}while(0);
#define CP_INTERNAL_NORMAL_SEND_RETURN(send_data)({CP_INTERNAL_NORMAL_SEND(send_data);return CP_TRUE;})
#define CP_INTERNAL_ERROR_SEND_RETURN(send_data) ({ CP_INTERNAL_ERROR_SEND(send_data);return CP_FALSE;})
#define CP_SEND_EXCEPTION_RETURN do{CP_SEND_EXCEPTION;return CP_FALSE;}while(0);
#define CP_TEST_RETURN_TRUE(flag) ({if(flag==CP_CONNECT_PING)return CP_TRUE;})
const zend_function_entry cp_functions[] = {
PHP_FE(pool_server_create, NULL)
PHP_FE(pool_server_shutdown, NULL)
PHP_FE(pool_server_reload, NULL)
PHP_FE(pool_server_version, NULL)
PHP_FE_END /* Must be the last line in cp_functions[] */
};
ZEND_BEGIN_ARG_INFO_EX(__call_args, 0, 0, 2)
ZEND_ARG_INFO(0, function_name)
ZEND_ARG_INFO(0, arguments)
ZEND_END_ARG_INFO()
const zend_function_entry pdo_connect_pool_methods[] = {
PHP_ME(pdo_connect_pool, __construct, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
PHP_ME(pdo_connect_pool, __destruct, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
PHP_ME(pdo_connect_pool, __call, __call_args, ZEND_ACC_PUBLIC)
开发者ID:aslijiasheng,项目名称:php-cp,代码行数:31,代码来源:connect_pool.c
示例12: ZEND_BEGIN_ARG_INFO_EX
#include "Zend/zend_object_handlers.h"
#include "Zend/zend_interfaces.h"
#include "Zend/zend_exceptions.h"
ZEND_BEGIN_ARG_INFO_EX(twig_template_get_attribute_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 6)
ZEND_ARG_INFO(0, template)
ZEND_ARG_INFO(0, object)
ZEND_ARG_INFO(0, item)
ZEND_ARG_INFO(0, arguments)
ZEND_ARG_INFO(0, type)
ZEND_ARG_INFO(0, isDefinedTest)
ZEND_END_ARG_INFO()
zend_function_entry twig_functions[] = {
PHP_FE(twig_template_get_attributes, twig_template_get_attribute_args)
{NULL, NULL, NULL}
};
zend_module_entry twig_module_entry = {
#if ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
#endif
"twig",
twig_functions,
PHP_MINIT(twig),
PHP_MSHUTDOWN(twig),
PHP_RINIT(twig),
PHP_RSHUTDOWN(twig),
PHP_MINFO(twig),
开发者ID:derickr,项目名称:twig-ext,代码行数:30,代码来源:twig.c
示例13: _php_libmemcached_connection_resource_dtor
/* True global resources - no need for thread safety here */
static int le_memc;
static int le_servers;
static zend_class_entry *memcached_entry_ptr = NULL;
static void _php_libmemcached_connection_resource_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC);
static void _php_libmemcached_create(zval *obj TSRMLS_DC);
static int _php_libmemcached_get_value(const char *, memcached_st *, zval * TSRMLS_DC);
static void _get_value_from_zval(smart_str *, zval *, uint32_t * TSRMLS_DC);
/* {{{ libmemcached_functions[]
*
* Every user visible function must have an entry in libmemcached_functions[].
*/
zend_function_entry libmemcached_functions[] = {
PHP_FE(memcached_ctor, NULL)
PHP_FE(memcached_server_add, NULL)
PHP_FE(memcached_add, NULL)
PHP_FE(memcached_add_by_key, NULL)
PHP_FE(memcached_append, NULL)
PHP_FE(memcached_append_by_key, NULL)
PHP_FE(memcached_behavior_get, NULL)
PHP_FE(memcached_behavior_set, NULL)
PHP_FE(memcached_cas, NULL)
PHP_FE(memcached_cas_by_key, NULL)
PHP_FE(memcached_delete, NULL)
PHP_FE(memcached_delete_by_key, NULL)
PHP_FE(memcached_get, NULL)
PHP_FE(memcached_get_by_key, NULL)
PHP_FE(memcached_set, NULL)
PHP_FE(memcached_set_by_key, NULL)
开发者ID:fujimoto,项目名称:php-libmemcached,代码行数:31,代码来源:libmemcached.c
示例14: PHP_FE
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "php.h"
#include "fizzy.h"
#include "../../fizzy.h"
static zend_function_entry fizzy_functions[] = {
PHP_FE(fizzy, NULL)
{ NULL, NULL, NULL }
};
zend_module_entry fizzy_module_entry = {
#if ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
#endif
PHP_FIZZY_EXTNAME,
fizzy_functions,
NULL,
NULL,
NULL,
NULL,
NULL,
#if ZEND_MODULE_API_NO >= 20010901
PHP_FIZZY_VERSION,
#endif
STANDARD_MODULE_PROPERTIES
};
#ifdef COMPILE_DL_FIZZY
开发者ID:Flushot,项目名称:sandbox,代码行数:31,代码来源:fizzy.c
示例15: PHP_FE
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* $Id$ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "php.h"
#include "php_hello.h"
static function_entry hello_functions[] = {
PHP_FE(hello_world, NULL)
{NULL, NULL, NULL}
};
zend_module_entry hello_module_entry = {
#if ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
#endif
PHP_HELLO_WORLD_EXTNAME,
hello_functions,
NULL,
NULL,
NULL,
NULL,
NULL,
#if ZEND_MODULE_API_NO >= 20010901
开发者ID:YahavGB,项目名称:php-extension-builder,代码行数:31,代码来源:php_hello.c
示例16: ZEND_BEGIN_ARG_INFO_EX
#ifdef HAVE_SETPRIORITY
ZEND_BEGIN_ARG_INFO_EX(arginfo_pcntl_setpriority, 0, 0, 1)
ZEND_ARG_INFO(0, priority)
ZEND_ARG_INFO(0, pid)
ZEND_ARG_INFO(0, process_identifier)
ZEND_END_ARG_INFO()
#endif
ZEND_BEGIN_ARG_INFO_EX(arginfo_pcntl_strerror, 0, 0, 1)
ZEND_ARG_INFO(0, errno)
ZEND_END_ARG_INFO()
/* }}} */
const zend_function_entry pcntl_functions[] = {
PHP_FE(pcntl_fork, arginfo_pcntl_void)
PHP_FE(pcntl_waitpid, arginfo_pcntl_waitpid)
PHP_FE(pcntl_wait, arginfo_pcntl_wait)
PHP_FE(pcntl_signal, arginfo_pcntl_signal)
PHP_FE(pcntl_signal_dispatch, arginfo_pcntl_void)
PHP_FE(pcntl_wifexited, arginfo_pcntl_wifexited)
PHP_FE(pcntl_wifstopped, arginfo_pcntl_wifstopped)
PHP_FE(pcntl_wifsignaled, arginfo_pcntl_wifsignaled)
PHP_FE(pcntl_wexitstatus, arginfo_pcntl_wifexitstatus)
PHP_FE(pcntl_wtermsig, arginfo_pcntl_wtermsig)
PHP_FE(pcntl_wstopsig, arginfo_pcntl_wstopsig)
PHP_FE(pcntl_exec, arginfo_pcntl_exec)
PHP_FE(pcntl_alarm, arginfo_pcntl_alarm)
PHP_FE(pcntl_get_last_error, arginfo_pcntl_void)
PHP_FALIAS(pcntl_errno, pcntl_get_last_error, NULL)
PHP_FE(pcntl_strerror, arginfo_pcntl_strerror)
开发者ID:rvanvelzen,项目名称:php-src,代码行数:30,代码来源:pcntl.c
示例17: ZEND_DECLARE_MODULE_GLOBALS
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#include <SAPI.h>
#include "php.h"
#include "php_ini.h"
#include "php_fiftyone_degrees_v3_extension.h"
ZEND_DECLARE_MODULE_GLOBALS(fiftyone_degrees)
// list of custom PHP functions provided by this extension
// set {NULL, NULL, NULL} as the last record to mark the end of list
static zend_function_entry fiftyone_degrees_detector_functions[] = {
PHP_FE(fiftyone_info, NULL)
PHP_FE(fiftyone_match, NULL)
PHP_FE(fiftyone_match_with_useragent, NULL)
PHP_FE(fiftyone_match_with_headers, NULL)
PHP_FE(fiftyone_degrees_get_properties, NULL)
PHP_FE(fiftyone_get_http_headers, NULL)
{NULL, NULL, NULL}
};
// the following code creates an entry for the module and registers it with Zend.
zend_module_entry fiftyone_degrees_detector_module_entry = {
#if ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
#endif
PHP_EXTENSION_EXTNAME,
fiftyone_degrees_detector_functions,
开发者ID:ben51testing,项目名称:Device-Detection,代码行数:31,代码来源:fiftyone_degrees_v3_extension.c
示例18: ZEND_END_ARG_INFO
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO(arginfo_bitset_xorop, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO(arginfo_bitset___tostring, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO(arginfo_bitset_getrawvalue, 0)
ZEND_END_ARG_INFO()
/* }}} */
/* {{{ bitset_functions[]
*/
const zend_function_entry bitset_functions[] = {
PHP_FE(bitset_empty, arginfo_bitset_empty)
PHP_FE(bitset_incl, arginfo_bitset_incl)
PHP_FE(bitset_excl, arginfo_bitset_excl)
PHP_FE(bitset_in, arginfo_bitset_in)
PHP_FE(bitset_fill, arginfo_bitset_fill)
PHP_FE(bitset_intersection, arginfo_bitset_intersection)
PHP_FE(bitset_union, arginfo_bitset_union)
PHP_FE(bitset_invert, arginfo_bitset_invert)
PHP_FE(bitset_subset, arginfo_bitset_subset)
PHP_FE(bitset_equal, arginfo_bitset_equal)
PHP_FE(bitset_to_string, arginfo_bitset_to_string)
PHP_FE(bitset_from_string, arginfo_bitset_from_string)
PHP_FE(bitset_to_hash, arginfo_bitset_to_hash)
PHP_FE(bitset_from_hash, arginfo_bitset_from_hash)
PHP_FE(bitset_to_array, arginfo_bitset_to_array)
PHP_FE(bitset_from_array, arginfo_bitset_from_array)
开发者ID:remicollet,项目名称:pecl-numbers-bitset,代码行数:31,代码来源:bitset.c
示例19: ZEND_END_ARG_INFO
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_wddx_add_vars, 0, 0, 2)
ZEND_ARG_INFO(0, packet_id)
ZEND_ARG_VARIADIC_INFO(0, var_names)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_wddx_deserialize, 0, 0, 1)
ZEND_ARG_INFO(0, packet)
ZEND_END_ARG_INFO()
/* }}} */
/* {{{ wddx_functions[]
*/
const zend_function_entry wddx_functions[] = {
PHP_FE(wddx_serialize_value, arginfo_wddx_serialize_value)
PHP_FE(wddx_serialize_vars, arginfo_wddx_serialize_vars)
PHP_FE(wddx_packet_start, arginfo_wddx_serialize_start)
PHP_FE(wddx_packet_end, arginfo_wddx_packet_end)
PHP_FE(wddx_add_vars, arginfo_wddx_add_vars)
PHP_FE(wddx_deserialize, arginfo_wddx_deserialize)
PHP_FE_END
};
/* }}} */
PHP_MINIT_FUNCTION(wddx);
PHP_MINFO_FUNCTION(wddx);
/* {{{ dynamically loadable module stuff */
#ifdef COMPILE_DL_WDDX
ZEND_GET_MODULE(wddx)
开发者ID:KomaBeyond,项目名称:php-src,代码行数:31,代码来源:wddx.c
示例20: spprintf
addr_len = spprintf(&addr, 0, "0x%0lx", (long)value);
add_assoc_stringl(return_value, "address", addr, addr_len, 0);
add_assoc_long(return_value, "refcount", value->RUNKIT_REFCOUNT);
add_assoc_bool(return_value, "is_ref", value->RUNKIT_IS_REF);
add_assoc_long(return_value, "type", value->type);
}
/* }}} */
/* {{{ runkit_functions[]
*/
zend_function_entry runkit_functions[] = {
PHP_FE(runkit_zval_inspect, NULL)
#ifdef ZEND_ENGINE_2
PHP_FE(runkit_object_id, NULL)
#endif
PHP_FE(runkit_return_value_used, NULL)
#ifdef PHP_RUNKIT_SUPERGLOBALS
PHP_FE(runkit_superglobals, NULL)
#endif
#ifdef PHP_RUNKIT_MANIPULATION
PHP_FE(runkit_class_emancipate, NULL)
PHP_FE(runkit_class_adopt, NULL)
PHP_FE(runkit_import, NULL)
PHP_FE(runkit_function_add, NULL)
开发者ID:ee99ee,项目名称:runkit,代码行数:30,代码来源:runkit.c
注:本文中的PHP_FE函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论