Skip to content
Snippets Groups Projects
Select Git revision
  • debian/8.1.33-1
  • debian/main/8.4 default protected
  • pristine-tar protected
  • debian/main/8.5 protected
  • upstream/8.5 protected
  • upstream/8.4 protected
  • debian/main/8.3 protected
  • upstream/8.3 protected
  • debian/main/8.2 protected
  • debian/main/8.1 protected
  • debian/main/8.0 protected
  • debian/main/7.4 protected
  • debian/main/7.3 protected
  • debian/main/7.2 protected
  • debian/main/7.1 protected
  • debian/main/7.0 protected
  • debian/main/5.6 protected
  • debian/bookworm/8.2
  • upstream/8.1 protected
  • upstream/8.2 protected
  • debian/bullseye/7.4
  • debian/8.5.0-1 protected
  • upstream/8.5.0 protected
  • debian/8.4.15-1 protected
  • upstream/8.4.15 protected
  • debian/8.3.28-1 protected
  • upstream/8.3.28 protected
  • debian/8.5.0_rc5-3 protected
  • debian/8.4.14-3 protected
  • debian/8.3.27-3 protected
  • debian/8.2.29-7 protected
  • debian/8.1.33-4 protected
  • debian/1%8.0.30-17 protected
  • debian/1%7.4.33-23 protected
  • debian/7.3.33-27 protected
  • debian/7.2.34-58 protected
  • debian/7.1.33-71 protected
  • debian/7.0.33-83 protected
  • debian/5.6.40-89 protected
  • debian/8.5.0_rc5-1 protected
  • upstream/8.5.0_rc5 protected
41 results

php-phpdbg.postinst.extra

Blame
  • sapi_apache2.c 20.48 KiB
    /*
       +----------------------------------------------------------------------+
       | PHP Version 7                                                        |
       +----------------------------------------------------------------------+
       | Copyright (c) The PHP Group                                          |
       +----------------------------------------------------------------------+
       | This source file is subject to version 3.01 of the PHP license,      |
       | that is bundled with this package in the file LICENSE, and is        |
       | available through the world-wide-web at the following url:           |
       | http://www.php.net/license/3_01.txt                                  |
       | If you did not receive a copy of the PHP license and are unable to   |
       | obtain it through the world-wide-web, please send a note to          |
       | license@php.net so we can mail you a copy immediately.               |
       +----------------------------------------------------------------------+
       | Authors: Sascha Schumann <sascha@schumann.cx>                        |
       |          Parts based on Apache 1.3 SAPI module by                    |
       |          Rasmus Lerdorf and Zeev Suraski                             |
       +----------------------------------------------------------------------+
     */
    
    #define ZEND_INCLUDE_FULL_WINDOWS_HEADERS
    
    #include "php.h"
    #include "php_main.h"
    #include "php_ini.h"
    #include "php_variables.h"
    #include "SAPI.h"
    
    #include <fcntl.h>
    
    #include "zend_smart_str.h"
    #include "ext/standard/php_standard.h"
    
    #include "apr_strings.h"
    #include "ap_config.h"
    #include "util_filter.h"
    #include "httpd.h"
    #include "http_config.h"
    #include "http_request.h"
    #include "http_core.h"
    #include "http_protocol.h"
    #include "http_log.h"
    #include "http_main.h"
    #include "util_script.h"
    #include "http_core.h"
    #include "ap_mpm.h"
    
    #include "php_apache.h"
    
    /* UnixWare define shutdown to _shutdown, which causes problems later
     * on when using a structure member named shutdown. Since this source
     * file does not use the system call shutdown, it is safe to #undef it.
     */
    #undef shutdown
    
    #define PHP_MAGIC_TYPE "application/x-httpd-php"
    #define PHP_SOURCE_MAGIC_TYPE "application/x-httpd-php-source"
    #define PHP_SCRIPT "php7-script"
    
    /* A way to specify the location of the php.ini dir in an apache directive */
    char *apache2_php_ini_path_override = NULL;
    #if defined(PHP_WIN32) && defined(ZTS)
    ZEND_TSRMLS_CACHE_DEFINE()
    #endif
    
    static size_t
    php_apache_sapi_ub_write(const char *str, size_t str_length)
    {
    	request_rec *r;
    	php_struct *ctx;