Home
last modified time | relevance | path

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

12345

/php-7.4/main/
H A Doutput.c(last modified 13/03/19 08:00)38 const char php_output_default_handler_name[sizeof("default output handler")] = "default output handler";
39 const char php_output_devnull_handler_name[sizeof("null output handler")] = "null output handler";
57 static inline php_output_handler_status_t php_output_handler_op(php_output_handler *handler, php_output_context *context);
58 static inline int php_output_handler_append(php_output_handler *handler, const php_output_buffer *buf);
59 static inline zval *php_output_handler_status(php_output_handler *handler, zval *entry);
157 * Reset output globals and setup the output handler stack */
174 * Destroy the output handler stack */
177 php_output_handler **handler in php_output_deactivate() local
410 php_output_handler *handler; php_output_start_default() local
425 php_output_handler *handler; php_output_start_devnull() local
440 php_output_handler *handler; php_output_start_user() local
459 php_output_handler *handler; php_output_start_internal() local
477 php_output_handler *handler = NULL; php_output_handler_create_user() local
516 php_output_handler *handler; php_output_handler_create_internal() local
529 php_output_handler_set_context(php_output_handler *handler, void *opaq, void (*dtor)(void*)) php_output_handler_set_context() argument
541 php_output_handler_start(php_output_handler *handler) php_output_handler_start() argument
707 php_output_handler_dtor(php_output_handler *handler) php_output_handler_dtor() argument
867 php_output_handler *handler; php_output_handler_init() local
882 php_output_handler_append(php_output_handler *handler, const php_output_buffer *buf) php_output_handler_append() argument
910 php_output_handler_op(php_output_handler *handler, php_output_context *context) php_output_handler_op() argument
1094 php_output_handler *handler = *(php_output_handler **) h; php_output_stack_apply_op() local
1140 php_output_handler *handler = *(php_output_handler **) h; php_output_stack_apply_clean() local
1154 php_output_handler *handler = *(php_output_handler **) h; php_output_stack_apply_list() local
1166 php_output_handler *handler = *(php_output_handler **) h; php_output_stack_apply_status() local
1176 php_output_handler_status(php_output_handler *handler, zval *entry) php_output_handler_status() argument
[all...]
H A Dphp_output.h(last modified 13/02/19 23:05)24 /* handler ops */
33 /* handler types */
37 /* handler ability flags */
43 /* handler status flags */
48 /* handler op return values */
72 /* handler hooks */
109 /* output handler context dtor */
175 extern const char php_output_default_handler_name[sizeof("default output handler")];
176 extern const char php_output_devnull_handler_name[sizeof("null output handler")];
227 PHPAPI php_output_handler *php_output_handler_create_user(zval *handler, size_
[all...]
/php-7.4/Zend/
H A Dzend_signal.c(last modified 30/07/19 08:00)63 static int zend_signal_register(int signo, void (*handler)(int, siginfo_t*, void*));
89 /* Forward to default handler handler */ in zend_signal_handler_defer()
141 /* need to just run handler if we're inactive and getting a signal */ in zend_signal_handler_defer()
171 * Call the previously registered handler for a signal
182 p_sig.handler = SIG_DFL; in zend_signal_handler()
187 if (p_sig.handler == SIG_DFL) { /* raise default handler */ in zend_signal_handler()
209 } else if (p_sig.handler != SIG_IGN) { in zend_signal_handler()
213 SIGG(handlers)[signo-1].handler in zend_signal_handler()
269 zend_signal(int signo, void (*handler)(int)) zend_signal() argument
286 zend_signal_register(int signo, void (*handler)(int, siginfo_t*, void*)) zend_signal_register() argument
[all...]
H A Dzend_vm_gen.php(last modified 04/02/20 08:00)720 /* dispatch to invalid handler from unreachable code */
737 /* dispatch to unknown handler in unreachable code */
762 // Generates code for opcode handler or helper
915 $handler = $matches[1]; variable
916 $opcode = $opcodes[$opnames[$handler]];
923 return "ZEND_VM_TAIL_CALL(" . opcode_name($handler, $spec, $op1, $op2, $extra_spec) . $inline . "_HANDLER(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU))";
1092 // Generates opcode handler
1122 // Generate opcode handler's entry point according to selected threading model
1176 // This handler is used by other handlers. We will add label to call it.
1187 // Generate opcode handler'
2388 $handler = null; global() variable
2447 $handler = $code; global() variable
2496 $handler = $code; global() variable
2539 $handler = null; global() variable
[all...]
H A Dzend_signal.h(last modified 08/04/19 08:00)39 void* handler; /* signal handler or context */ member
57 int running; /* in signal handler execution */
94 ZEND_API int zend_signal(int signo, void (*handler)(int));
107 # define zend_signal(signo, handler) signal(signo, handler)
H A Dzend_closures.c(last modified 19/12/19 08:00)311 call.handler = zend_closure_call_magic; in zend_create_closure_from_callable()
396 invoke->internal_function.handler = ZEND_MN(Closure___invoke); in zend_get_closure_invoke_method()
733 /* wrap internal function handler to avoid memory leak */ in zend_create_closure()
734 if (UNEXPECTED(closure->func.internal_function.handler == zend_closure_internal_handler)) { in zend_create_closure()
735 /* avoid infinity recursion, by taking handler from nested closure */ in zend_create_closure()
740 closure->orig_internal_handler = closure->func.internal_function.handler; in zend_create_closure()
742 closure->func.internal_function.handler = zend_closure_internal_handler; in zend_create_closure()
H A Dzend_builtin_functions.c(last modified 26/02/20 08:00)1534 * A bit of a hack, but not a bad one: we see if the handler of the function in ZEND_FUNCTION()
1538 func->internal_function.handler != zif_display_disabled_function)); in ZEND_FUNCTION()
1626 Sets a user-defined error handler function. Returns the previously defined error handler, or false on error */
1653 if (Z_TYPE_P(error_handler) == IS_NULL) { /* unset user-defined handler */ in ZEND_FUNCTION()
1664 Restores the previously defined error handler function */
1694 Sets a user-defined exception handler function. Returns the previously defined exception handler, or false on error */
1719 if (Z_TYPE_P(exception_handler) == IS_NULL) { /* unset user-defined handler */ in ZEND_FUNCTION()
1729 Restores the previously defined exception handler functio
[all...]
H A Dzend_object_handlers.c(last modified 10/12/19 08:00)48 requested, we call __get handler. If it fails, we return uninitialized.
51 set, we call __set handler. If it fails, we do not change the array.
58 called, we cal __call handler.
192 /* __get handler is called with one argument: in zend_std_call_getter()
228 /* __set handler is called with two arguments: in zend_std_call_setter()
266 /* __unset handler is called with one argument: in zend_std_call_unsetter()
302 /* __isset handler is called with one argument: in zend_std_call_issetter()
1088 * being overwritten in an error handler. */ in zend_std_get_property_ptr_ptr()
/php-7.4/ext/session/
H A Dmod_user_class.c(last modified 13/02/19 23:05)28 php_error_docref(NULL, E_CORE_ERROR, "Cannot call default session handler"); \
35 php_error_docref(NULL, E_WARNING, "Parent session handler is not open"); \
40 Wraps the old open handler */
67 Wraps the old close handler */
74 // don't return on failure, since not closing the default handler in PHP_METHOD()
92 Wraps the old read handler */
113 Wraps the old write handler */
129 Wraps the old destroy handler */
145 Wraps the old gc handler */
165 Wraps the old create_sid handler */
[all...]
H A Dmod_files.c(last modified 12/04/19 08:00)20 * Files save handler should be used as reference implementations of session
23 * PS_OPEN_FUNC() - Create module data that manages save handler.
46 * - Save handler _MUST_ use PS_GET_MOD_DATA()/PS_SET_MOD_DATA() macro to
47 * set/get save handler module data(mod_data). mod_data contains
361 * Open save handler. Setup resources that are needed by the handler.
366 * Files save handler checks/create save_path directory and setup ps_files data.
367 * Note that files save handler supports splitting session data into multiple
441 * Files save handler closes open files and it's memory.
471 * Files save handler support
[all...]
H A Dphp_session.h(last modified 28/06/19 08:00)30 /* save handler macros */
68 /* Legacy save handler module definitions */
83 /* Legacy SID creation enabled save handler module definitions */
100 /* Update timestamp enabled save handler module definitions
203 zend_bool in_save_handler; /* state if session is in save handler or not */
204 zend_bool set_handler; /* state if session module i setting handler or not */
H A Dsession.c(last modified 01/04/20 08:00)151 /* Set session status to prevent error while restoring save handler INI value. */ in php_rshutdown_session_globals()
395 /* Open session handler first */ in php_session_initialize()
500 "defined save handler. (session.save_path: %s)", PS(save_path)); in php_session_save_current_state()
552 php_error_docref(NULL, err_type, "Cannot find save handler '%s'", ZSTR_VAL(new_value)); in PHP_INI_MH()
558 /* "user" save handler should not be set by user */ in PHP_INI_MH()
560 php_error_docref(NULL, E_RECOVERABLE_ERROR, "Cannot set 'user' save handler by ini_set() or session_module_name()"); in PHP_INI_MH()
591 php_error_docref(NULL, err_type, "Cannot find serialization handler '%s'", ZSTR_VAL(new_value)); in PHP_INI_MH()
1512 php_error_docref(NULL, E_WARNING, "Cannot find save handler '%s' - session startup failed", value); in php_session_start()
1520 php_error_docref(NULL, E_WARNING, "Cannot find serialization handler '%s' - session startup failed", value); in php_session_start()
1654 starting "URL-Rewriter" output handler
[all...]
/php-7.4/win32/
H A Dsignal.c(last modified 03/06/19 08:00)89 /* {{{ proto bool sapi_windows_set_ctrl_handler(callable handler, [, bool add = true])
90 Assigns a CTRL signal handler to a PHP function */
93 zval *handler = NULL; in PHP_FUNCTION() local
108 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z|b", &handler, &add) == FAILURE) { in PHP_FUNCTION()
112 if (IS_NULL == Z_TYPE_P(handler)) { in PHP_FUNCTION()
121 if (!zend_is_callable(handler, 0, NULL)) { in PHP_FUNCTION()
122 zend_string *func_name = zend_get_callable_name(handler); in PHP_FUNCTION()
129 zend_string *func_name = zend_get_callable_name(handler); in PHP_FUNCTION()
130 php_error_docref(NULL, E_WARNING, "Unable to attach %s as a CTRL handler", ZSTR_VAL(func_name)); in PHP_FUNCTION()
136 ZVAL_COPY(&ctrl_handler, handler); in PHP_FUNCTION()
[all...]
/php-7.4/ext/xml/
H A Dxml.c(last modified 06/06/19 08:00)536 static void xml_set_handler(zval *handler, zval *data) in xml_set_handler() argument
538 /* If we have already a handler, release it */ in xml_set_handler()
539 if (handler) { in xml_set_handler()
540 zval_ptr_dtor(handler); in xml_set_handler()
547 ZVAL_UNDEF(handler); in xml_set_handler()
552 ZVAL_COPY(handler, data); in xml_set_handler()
557 static void xml_call_handler(xml_parser *parser, zval *handler, zend_function *function_ptr, int argc, zval *argv, zval *retval) in xml_call_handler() argument
562 if (parser && handler && !EG(exception)) { in xml_call_handler()
567 ZVAL_COPY_VALUE(&fci.function_name, handler); in xml_call_handler()
580 if (Z_TYPE_P(handler) in xml_call_handler()
[all...]
/php-7.4/sapi/phpdbg/
H A Dphpdbg_cmd.h(last modified 13/02/19 23:05)101 phpdbg_command_handler_t handler; /* Command handler */ member
127 * 4) the handler is called passing the top of the stack as the only parameter
128 * 5) the stack is destroyed upon return from the handler
164 #define PHPDBG_COMMAND_D_EXP(name, tip, alias, handler, children, args, parent, flags) \
165 {PHPDBG_STRL(#name), tip, sizeof(tip)-1, alias, phpdbg_do_##handler, children, args, parent, flags}
167 #define PHPDBG_COMMAND_D_EX(name, tip, alias, handler, children, args, flags) \
168 {PHPDBG_STRL(#name), tip, sizeof(tip)-1, alias, phpdbg_do_##handler, children, args, NULL, flags}
H A Dphpdbg_cmd.c(last modified 28/03/19 08:00)578 while (command && command->name && command->handler) { in phpdbg_stack_resolve()
665 const phpdbg_command_t *handler = NULL; in phpdbg_internal_stack_execute() local
692 handler = phpdbg_stack_resolve(phpdbg_prompt_commands, NULL, &top); in phpdbg_internal_stack_execute()
694 if (handler) { in phpdbg_internal_stack_execute()
695 if (!allow_async_unsafe && !(handler->flags & PHPDBG_ASYNC_SAFE)) { in phpdbg_internal_stack_execute()
696 phpdbg_error("signalsegv", "command=\"%s\"", "%s command is disallowed during hard interrupt", handler->name); in phpdbg_internal_stack_execute()
700 if (phpdbg_stack_verify(handler, &top) == SUCCESS) { in phpdbg_internal_stack_execute()
703 return handler->handler(top); in phpdbg_internal_stack_execute()
H A Dphpdbg_sigsafe.c(last modified 13/02/19 23:05)16 zend_quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, ZEND_STRL("Tried to allocate more than " EXP_STR(PHPDBG_SIGSAFE_MEM_SIZE) " bytes from stack memory in signal handler ... bailing out of signal handler\n")); in zend_mm_mem_alloc()
22 zend_quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, ZEND_STRL("Bailed out without a bailout address in signal handler!\n")); in zend_mm_mem_alloc()
/php-7.4/sapi/apache2handler/
H A Dsapi_apache2.c(last modified 17/07/19 08:00)393 php_error, /* error handler */
395 php_apache_sapi_header_handler, /* header handler */
396 php_apache_sapi_send_headers, /* send headers handler */
397 NULL, /* send header handler */
605 if (strcmp(r->handler, PHP_MAGIC_TYPE) && strcmp(r->handler, PHP_SOURCE_MAGIC_TYPE) && strcmp(r->handler, PHP_SCRIPT)) { in php_handler()
607 if (!AP2(xbithack) || strcmp(r->handler, "text/html") || !(r->finfo.protection & APR_UEXECUTE)) { in php_handler()
662 if (parent_req && parent_req->handler && in php_handler()
663 strcmp(parent_req->handler, PHP_MAGIC_TYP in php_handler()
[all...]
/php-7.4/ext/dba/
H A Ddba.c(last modified 06/06/19 08:00)294 /* a DBA handler must have specific routines */
324 static dba_handler handler[] = { variable
415 for (hptr = handler; hptr->name && strcasecmp(hptr->name, handler_name); hptr++);
498 for (hptr = handler; hptr->name && strcasecmp(hptr->name, ZSTR_VAL(new_value)); hptr++); in ZEND_INI_MH()
501 php_error_docref(NULL, E_WARNING, "No such handler: %s", ZSTR_VAL(new_value)); in ZEND_INI_MH()
554 for(hptr = handler; hptr->name; hptr++) { in PHP_MINFO_FUNCTION()
662 /* we pass additional args to the respective handler */ in php_dba_open()
713 php_error_docref2(NULL, Z_STRVAL(args[0]), Z_STRVAL(args[1]), E_WARNING, "No default handler selected"); in php_dba_open()
718 for (hptr = handler; hptr->name && strcasecmp(hptr->name, Z_STRVAL(args[2])); hptr++); in php_dba_open()
722 php_error_docref2(NULL, Z_STRVAL(args[0]), Z_STRVAL(args[1]), E_WARNING, "No such handler in php_dba_open()
[all...]
/php-7.4/ext/xsl/
H A Dxsltprocessor.c(last modified 31/01/20 08:00)185 zval handler; in xsl_ext_function_php() local
320 ZVAL_STRING(&handler, (char *) obj->stringval); in xsl_ext_function_php()
323 ZVAL_COPY_VALUE(&fci.function_name, &handler); in xsl_ext_function_php()
328 if (!zend_make_callable(&handler, &callable)) { in xsl_ext_function_php()
329 php_error_docref(NULL, E_WARNING, "Unable to call handler %s()", ZSTR_VAL(callable)); in xsl_ext_function_php()
332 php_error_docref(NULL, E_WARNING, "Not allowed to call handler '%s()'", ZSTR_VAL(callable)); in xsl_ext_function_php()
338 if (Z_TYPE(handler) == IS_STRING) { in xsl_ext_function_php()
339 php_error_docref(NULL, E_WARNING, "Unable to call handler %s()", Z_STRVAL(handler)); in xsl_ext_function_php()
369 zval_ptr_dtor(&handler); in xsl_ext_function_php()
[all...]
/php-7.4/sapi/embed/
H A Dphp_embed.c(last modified 05/06/19 08:00)129 php_error, /* error handler */
131 NULL, /* header handler */
132 NULL, /* send headers handler */
133 php_embed_send_header, /* send header handler */
/php-7.4/ext/pcntl/
H A Dpcntl.c(last modified 23/12/19 08:00)80 ZEND_ARG_INFO(0, handler)
1054 Assigns a system signal handler to a PHP function */
1073 /* since calling malloc() from within a signal handler is not portable, in PHP_FUNCTION()
1110 php_error_docref(NULL, E_WARNING, "Specified handler \"%s\" is not callable (%s)", ZSTR_VAL(func_name), error); in PHP_FUNCTION()
1131 Gets signal handler */
1449 /* Our custom signal handler that calls the appropriate php_function */
1472 /* the head check is important, as the tick handler cannot atomically clear both in pcntl_signal_handler()
1507 /* Prevent reentrant handler calls */ in pcntl_signal_dispatch()
1526 /* Call php signal handler - Note that we do not report errors, and we ignore the return value */ in pcntl_signal_dispatch()
/php-7.4/ext/intl/transliterator/
H A Dtransliterator_class.c(last modified 15/07/19 08:00)132 /* {{{ clone handler for Transliterator */
210 /* {{{ get_property_ptr_ptr handler */
233 /* {{{ read_property handler */
259 /* {{{ write_property handler */
/php-7.4/ext/opcache/
H A Dzend_accelerator_util_funcs.c(last modified 19/12/19 08:00)247 #define zend_update_inherited_handler(handler) \
249 if (ce->handler != NULL && IN_ARENA(ce->handler)) { \
250 ce->handler = ARENA_REALLOC(ce->handler); \
/php-7.4/ext/intl/breakiterator/
H A Dbreakiterator_class.cpp(last modified 13/02/19 23:06)80 /* {{{ compare handler for BreakIterator */
98 /* {{{ clone handler for BreakIterator */
138 /* {{{ get_debug_info handler for BreakIterator */

Completed in 158 milliseconds

12345