Searched refs:handler (Results 1 - 25 of 48) sorted by relevance

12

/PHP_TRUNK/ext/dba/tests/
H A Dskipif.inc5 if (!isset($handler)) {
8 $handler = 'flatfile';
12 die('skip no handler available that can be used for the test');
14 $handler = array_shift($handlers);
17 if (!in_array($handler, dba_handlers())) {
18 $HND = strtoupper($handler);
19 die("skip $HND handler not available");
22 $HND = strtoupper($handler);
H A Ddba_handler.inc3 echo "database handler: $handler\n";
6 if (($db_file = dba_open($db_filename, 'n'.$lock_flag, $handler))!==FALSE) {
12 if ($handler != 'cdb') {
17 if (($db_file = dba_open($db_filename, 'r'.$lock_flag, $handler))===FALSE) {
33 if ($handler != 'cdb') {
41 if ($handler != 'cdb') {
42 $db_writer = dba_open($db_filename, 'c'.$lock_flag, $handler);
43 if (($dba_reader = @dba_open($db_filename, 'r'.$lock_flag.($lock_flag ? 't' : ''), $handler))===false) {
68 if (($db_file = dba_open($db_filename, 'r'.$lock_flag, $handler))!
[all...]
/PHP_TRUNK/ext/spl/examples/
H A Ddbaarray.inc23 * Open database $file with $handler in read only mode.
26 * @param handler Handler to use for database access.
28 function __construct($file, $handler)
30 $this->db = dba_popen($file, "c", $handler);
H A Ddbareader.inc25 * Open database $file with $handler in read only mode.
28 * @param handler Handler to use for database access.
30 function __construct($file, $handler) {
31 if (!$this->db = dba_open($file, 'r', $handler)) {
/PHP_TRUNK/sapi/apache2handler/
H A Dphp_functions.c148 ADD_STRING(handler);
H A Dsapi_apache2.c370 php_error, /* error handler */
372 php_apache_sapi_header_handler, /* header handler */
373 php_apache_sapi_send_headers, /* send headers handler */
374 NULL, /* send header handler */
579 if (strcmp(r->handler, PHP_MAGIC_TYPE) && strcmp(r->handler, PHP_SOURCE_MAGIC_TYPE) && strcmp(r->handler, PHP_SCRIPT)) {
581 if (!AP2(xbithack) || strcmp(r->handler, "text/html") || !(r->finfo.protection & APR_UEXECUTE)) {
636 if (parent_req && parent_req->handler &&
637 strcmp(parent_req->handler, PHP_MAGIC_TYP
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_cmd.h100 phpdbg_command_handler_t handler; /* Command handler */ member in struct:_phpdbg_command_t
125 * 4) the handler is called passing the top of the stack as the only parameter
126 * 5) the stack is destroyed upon return from the handler
161 #define PHPDBG_COMMAND_D_EXP(name, tip, alias, handler, children, args, parent, flags) \
162 {PHPDBG_STRL(#name), tip, sizeof(tip)-1, alias, phpdbg_do_##handler, children, args, parent, flags}
164 #define PHPDBG_COMMAND_D_EX(name, tip, alias, handler, children, args, flags) \
165 {PHPDBG_STRL(#name), tip, sizeof(tip)-1, alias, phpdbg_do_##handler, children, args, NULL, flags}
H A Dphpdbg_help.c249 return cmd->handler(param);
H A Dphpdbg_cmd.c561 while (command && command->name && command->handler) {
650 const phpdbg_command_t *handler = NULL; local
688 handler = phpdbg_stack_resolve(phpdbg_prompt_commands, NULL, &top);
690 if (handler) {
691 if (!allow_async_unsafe && !(handler->flags & PHPDBG_ASYNC_SAFE)) {
692 phpdbg_error("signalsegv", "command=\"%s\"", "%s command is disallowed during hard interrupt", handler->name);
696 if (phpdbg_stack_verify(handler, &top) == SUCCESS) {
699 return handler->handler(top);
/PHP_TRUNK/ext/com_dotnet/
H A Dcom_handlers.c281 f.handler = PHP_FN(com_method_handler);
407 f.handler = ZEND_FN(fn); \
/PHP_TRUNK/ext/opcache/
H A Dzend_accelerator_module.c400 orig_file_exists = old_function->internal_function.handler;
401 old_function->internal_function.handler = accel_file_exists;
404 orig_is_file = old_function->internal_function.handler;
405 old_function->internal_function.handler = accel_is_file;
408 orig_is_readable = old_function->internal_function.handler;
409 old_function->internal_function.handler = accel_is_readable;
H A Dzend_accelerator_util_funcs.c383 #define zend_update_inherited_handler(handler) \
385 if (ce->handler != NULL) { \
386 ce->handler = ARENA_REALLOC(ce->handler); \
H A Dzend_shared_alloc.c124 g_shared_alloc_handler = he->handler;
H A Dzend_shared_alloc.h89 zend_shared_memory_handlers *handler; member in struct:_handler_entry
/PHP_TRUNK/ext/phar/
H A Dfunc_interceptors.c1056 PHAR_G(orig_##func) = orig->internal_function.handler; \
1057 orig->internal_function.handler = phar_##func; \
1093 orig->internal_function.handler = PHAR_G(orig_##func); \
/PHP_TRUNK/ext/xml/
H A Dxml.c455 static void xml_set_handler(zval *handler, zval *data) argument
457 /* If we have already a handler, release it */
458 if (handler) {
459 zval_ptr_dtor(handler);
466 ZVAL_UNDEF(handler);
471 ZVAL_COPY(handler, data);
476 static void xml_call_handler(xml_parser *parser, zval *handler, zend_function *function_ptr, int argc, zval *argv, zval *retval) argument
481 if (parser && handler && !EG(exception)) {
487 ZVAL_COPY_VALUE(&fci.function_name, handler);
501 if (Z_TYPE_P(handler)
[all...]
/PHP_TRUNK/ext/dba/
H A Ddba.c289 /* a DBA handler must have specific routines */
319 static dba_handler handler[] = { variable
405 for (hptr = handler; hptr->name && strcasecmp(hptr->name, handler_name); hptr++);
488 for (hptr = handler; hptr->name && strcasecmp(hptr->name, ZSTR_VAL(new_value)); hptr++);
491 php_error_docref(NULL, E_WARNING, "No such handler: %s", ZSTR_VAL(new_value));
541 for(hptr = handler; hptr->name; hptr++) {
645 /* we pass additional args to the respective handler */
694 php_error_docref2(NULL, Z_STRVAL(args[0]), Z_STRVAL(args[1]), E_WARNING, "No default handler selected");
699 for (hptr = handler; hptr->name && strcasecmp(hptr->name, Z_STRVAL(args[2])); hptr++);
703 php_error_docref2(NULL, Z_STRVAL(args[0]), Z_STRVAL(args[1]), E_WARNING, "No such handler
[all...]
/PHP_TRUNK/main/
H A Doutput.c40 const char php_output_default_handler_name[sizeof("default output handler")] = "default output handler";
41 const char php_output_devnull_handler_name[sizeof("null output handler")] = "null output handler";
59 static inline php_output_handler_status_t php_output_handler_op(php_output_handler *handler, php_output_context *context);
60 static inline int php_output_handler_append(php_output_handler *handler, const php_output_buffer *buf);
61 static inline zval *php_output_handler_status(php_output_handler *handler, zval *entry);
160 * Reset output globals and setup the output handler stack */
177 * Destroy the output handler stack */
180 php_output_handler **handler local
413 php_output_handler *handler; local
428 php_output_handler *handler; local
443 php_output_handler *handler; local
462 php_output_handler *handler; local
480 php_output_handler *handler = NULL; local
519 php_output_handler *handler; local
532 php_output_handler_set_context(php_output_handler *handler, void *opaq, void (*dtor)(void*)) argument
544 php_output_handler_start(php_output_handler *handler) argument
699 php_output_handler_dtor(php_output_handler *handler) argument
865 php_output_handler *handler; local
880 php_output_handler_append(php_output_handler *handler, const php_output_buffer *buf) argument
908 php_output_handler_op(php_output_handler *handler, php_output_context *context) argument
1092 php_output_handler *handler = *(php_output_handler **) h; local
1138 php_output_handler *handler = *(php_output_handler **) h; local
1152 php_output_handler *handler = *(php_output_handler **) h; local
1164 php_output_handler *handler = *(php_output_handler **) h; local
1174 php_output_handler_status(php_output_handler *handler, zval *entry) argument
[all...]
H A Dphp_output.h26 /* handler ops */
35 /* handler types */
39 /* handler ability flags */
45 /* handler status flags */
50 /* handler op return values */
74 /* handler hooks */
111 /* output handler context dtor */
177 extern const char php_output_default_handler_name[sizeof("default output handler")];
178 extern const char php_output_devnull_handler_name[sizeof("null output handler")];
229 PHPAPI php_output_handler *php_output_handler_create_user(zval *handler, size_
[all...]
/PHP_TRUNK/Zend/
H A Dzend_vm_gen.php464 // Generates code for opcode handler or helper
683 // Generates opcode handler
691 // Generate opcode handler's entry point according to selected threading model
703 // This handler is used by other handlers. We will add label to call it.
714 // Generate opcode handler's code
761 // to handler of undefined opcode
770 // Emit pointer to handler of undefined opcode
797 // Try to use unspecialized handler
809 // Try to use unspecialized handler
813 // Check if specialized handler i
1327 $handler = null; variable
1362 $handler = $code; variable
1380 $handler = null; variable
1402 $handler = null; variable
[all...]
H A Dzend_execute.h304 #define ZEND_USER_OPCODE_DISPATCH 2 /* call original opcode handler */
308 #define ZEND_USER_OPCODE_DISPATCH_TO 0x100 /* call original handler of returned opcode */
310 ZEND_API int zend_set_user_opcode_handler(zend_uchar opcode, user_opcode_handler_t handler);
H A Dzend_signal.c55 static int zend_signal_register(int signo, void (*handler)(int, siginfo_t*, void*));
128 /* need to just run handler if we're inactive and getting a signal */
158 * Call the previously registered handler for a signal
167 if (p_sig.handler == SIG_DFL) { /* raise default handler */
181 } else if (p_sig.handler != SIG_IGN) { /* ignore SIG_IGN */
185 SIGG(handlers)[signo-1].handler = SIG_DFL;
187 (*(void (*)(int, siginfo_t*, void*))p_sig.handler)(signo, siginfo, context);
189 (*(void (*)(int))p_sig.handler)(signo);
197 * Register a signal handler tha
236 zend_signal(int signo, void (*handler)(int)) argument
252 zend_signal_register(int signo, void (*handler)(int, siginfo_t*, void*)) argument
[all...]
H A Dzend_signal.h41 void* handler; /* signal handler or context */ member in struct:_zend_signal_entry_t
59 int running; /* in signal handler execution */
91 ZEND_API int zend_signal(int signo, void (*handler)(int));
/PHP_TRUNK/ext/dom/
H A Ddocument.c335 xmlCharEncodingHandlerPtr handler; local
344 handler = xmlFindCharEncodingHandler(Z_STRVAL_P(newval));
346 if (handler != NULL) {
347 xmlCharEncCloseFunc(handler);
/PHP_TRUNK/ext/xsl/
H A Dxsltprocessor.c186 zval handler; local
316 ZVAL_STRING(&handler, (char *) obj->stringval);
319 ZVAL_COPY_VALUE(&fci.function_name, &handler);
325 if (!zend_make_callable(&handler, &callable)) {
326 php_error_docref(NULL, E_WARNING, "Unable to call handler %s()", ZSTR_VAL(callable));
329 php_error_docref(NULL, E_WARNING, "Not allowed to call handler '%s()'", ZSTR_VAL(callable));
335 if (Z_TYPE(handler) == IS_STRING) {
336 php_error_docref(NULL, E_WARNING, "Unable to call handler %s()", Z_STRVAL(handler));
367 zval_ptr_dtor(&handler);
[all...]

Completed in 71 milliseconds

12