ZOO-Project
|
#include <sapi/embed/php_embed.h>
#include <zend_stream.h>
#include "service_internal_php.h"
#include "response_print.h"
Macros | |
#define | ZEND_DEBUG 0 |
#define | zval_make_ref_array(zv, len) for (int elem = 0; elem < len; elem++) ZVAL_MAKE_REF(&zv[elem]); |
#define | zval_unref_array(zv, len) for (int elem = 0; elem < len; elem++) ZVAL_UNREF(&zv[elem]); |
#define | ZOO_G(v) (zoo_globals.v) |
#define | PHP_ZOO_VERSION "1.0" |
#define | PHP_ZOO_EXTNAME "ZOO" |
#define | phpext_zoo_ptr &zoo_entry |
Functions | |
map * | php_hashtable_to_map (HashTable *tab) |
Convert a php hashtable (array) to a Zoo map. More... | |
maps * | php_array_to_maps (HashTable *arr) |
Convert a php hashtable (array) to a Zoo maps. More... | |
void | php_map_to_array (map *src, zval *arr) |
Convert a Zoo map to a php array. More... | |
void | php_maps_to_array (maps *src, zval *arr) |
Convert a Zoo struct maps to a php array. More... | |
PHP_MINIT_FUNCTION (zoo) | |
PHP_MSHUTDOWN_FUNCTION (zoo) | |
PHP_RINIT_FUNCTION (zoo) | |
PHP_FUNCTION (zoo_Translate) | |
PHP_FUNCTION (zoo_UpdateStatus) | |
PHP_FUNCTION (zoo_SERVICE_SUCCEEDED) | |
PHP_FUNCTION (zoo_SERVICE_FAILED) | |
static void | php_zoo_init_globals (zend_zoo_globals *zoo_globals) |
int | zoo_php_support (maps **main_conf, map *request, service *s, maps **real_inputs, maps **real_outputs) |
Load a PHP script then run the function corresponding to the service by passing the conf, inputs and outputs parameters by reference. More... | |
Variables | |
long | _SERVICE_SUCCEEDED |
long | _SERVICE_FAILED |
zend_module_entry | zoo_module_entry |
static zend_function_entry | zoo_functions [] |
Macro Definition Documentation
#define PHP_ZOO_EXTNAME "ZOO" |
#define PHP_ZOO_VERSION "1.0" |
#define phpext_zoo_ptr &zoo_entry |
#define ZEND_DEBUG 0 |
#define ZOO_G | ( | v | ) | (zoo_globals.v) |
#define zval_make_ref_array | ( | zv, | |
len | |||
) | for (int elem = 0; elem < len; elem++) ZVAL_MAKE_REF(&zv[elem]); |
#define zval_unref_array | ( | zv, | |
len | |||
) | for (int elem = 0; elem < len; elem++) ZVAL_UNREF(&zv[elem]); |
Function Documentation
maps * php_array_to_maps | ( | HashTable * | arr | ) |
Convert a php hashtable (array) to a Zoo maps.
- Parameters
-
arr the php hashtable to convert
- Returns
- the created struct maps*
PHP_FUNCTION | ( | zoo_Translate | ) |
PHP_FUNCTION | ( | zoo_UpdateStatus | ) |
PHP_FUNCTION | ( | zoo_SERVICE_SUCCEEDED | ) |
PHP_FUNCTION | ( | zoo_SERVICE_FAILED | ) |
map * php_hashtable_to_map | ( | HashTable * | tab | ) |
Convert a php hashtable (array) to a Zoo map.
- Parameters
-
tab the php hashtable to convert
- Returns
- the created struct map*
void php_map_to_array | ( | map * | src, |
zval * | arr | ||
) |
Convert a Zoo map to a php array.
- Parameters
-
src the struct map* to convert (source data structure) arr pointer to zval that is to hold the php array
void php_maps_to_array | ( | maps * | src, |
zval * | arr | ||
) |
Convert a Zoo struct maps to a php array.
- Parameters
-
src the struct maps* to convert (source data structure) arr pointer to zval that is to hold the php array
PHP_MINIT_FUNCTION | ( | zoo | ) |
PHP_MSHUTDOWN_FUNCTION | ( | zoo | ) |
PHP_RINIT_FUNCTION | ( | zoo | ) |
|
static |
int zoo_php_support | ( | maps ** | main_conf, |
map * | request, | ||
service * | s, | ||
maps ** | real_inputs, | ||
maps ** | real_outputs | ||
) |
Load a PHP script then run the function corresponding to the service by passing the conf, inputs and outputs parameters by reference.
- Parameters
-
main_conf the conf maps containing the main.cfg settings request the map containing the HTTP request s the service structure real_inputs the maps containing the inputs real_outputs the maps containing the outputs
Variable Documentation
long _SERVICE_FAILED |
long _SERVICE_SUCCEEDED |
|
static |
Initial value:
= {
PHP_FE(zoo_SERVICE_FAILED, NULL)
{NULL, NULL, NULL}
}
zend_module_entry zoo_module_entry |
Initial value:
= {
PHP_MINIT(zoo),
PHP_MSHUTDOWN(zoo),
PHP_RINIT(zoo),
NULL,
NULL,
STANDARD_MODULE_PROPERTIES
}
Generated on Wed Feb 5 2025 12:00:16 for ZOO-Project by 1.8.9.1