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 | ZOO_G(v) (zoo_globals.v) |
#define | PHP_ZOO_VERSION "1.0" |
#define | PHP_ZOO_EXTNAME "ZOO" |
#define | phpext_zoo_ptr &zoo_entry |
Functions | |
zval * | php_Array_from_maps (maps *t) |
Convert a maps to a php Array. More... | |
zval * | php_Array_from_map (map *t) |
Convert a map to a php Array. More... | |
maps * | php_maps_from_Array (HashTable *t) |
Convert a php Array to a maps. More... | |
map * | php_map_from_HasTable (HashTable *t) |
Convert a php Array to a map. 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 [] |
#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) |
zval * php_Array_from_map | ( | map * | t | ) |
Convert a map to a php Array.
t | the map to convert |
zval * php_Array_from_maps | ( | maps * | t | ) |
Convert a maps to a php Array.
t | the maps to convert |
PHP_FUNCTION | ( | zoo_Translate | ) |
PHP_FUNCTION | ( | zoo_UpdateStatus | ) |
PHP_FUNCTION | ( | zoo_SERVICE_SUCCEEDED | ) |
PHP_FUNCTION | ( | zoo_SERVICE_FAILED | ) |
map * php_map_from_HasTable | ( | HashTable * | t | ) |
Convert a php Array to a map.
t | the php Array to convert |
Duplicate the zval so that * the orignal’s contents are not destroyed
Reset refcount & Convert
maps * php_maps_from_Array | ( | HashTable * | t | ) |
Convert a php Array to a maps.
t | the php Array to convert |
Should never actually fail since the key is known to exist.
Duplicate the zval so that * the orignal’s contents are not destroyed
Reset refcount & Convert
String Key / Associative
Toss out old copy
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.
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 |
long _SERVICE_FAILED |
long _SERVICE_SUCCEEDED |
|
static |
zend_module_entry zoo_module_entry |