Skip to content
Snippets Groups Projects
Select Git revision
  • v17.10.3
  • gitlab/15-0-stable-salsa default
  • 18-2-stable-salsa protected
  • 18-1-stable-salsa protected
  • 18-0-stable-salsa protected
  • 17-11-stable-salsa protected
  • 17-10-stable-salsa protected
  • 17-9-stable-salsa protected
  • 17-8-stable-salsa protected
  • 17-7-stable-salsa protected
  • 17-6-stable-salsa protected
  • 17-5-stable-salsa protected
  • 17-4-stable-salsa protected
  • 17-3-stable-salsa protected
  • 17-2-stable-salsa protected
  • 17-1-stable-salsa protected
  • 17-0-stable-salsa protected
  • 16-11-stable-salsa protected
  • 16-10-stable-salsa protected
  • 16-9-stable-salsa protected
  • 16-8-stable-salsa protected
  • 16-7-stable-salsa protected
  • v18.2.8-salsa-1 protected
  • v18.1.6-salsa-2 protected
  • v18.3.5
  • v18.4.3
  • v18.5.1
  • v18.5.0
  • v18.5.0-rc43
  • v18.5.0-rc42
  • v18.2.8
  • v18.3.4
  • v18.4.2
  • v18.2.7
  • v18.3.3
  • v18.4.1
  • v18.4.0
  • v18.4.0-rc43
  • v18.4.0-rc42
  • v18.1.6
  • v18.1.6-salsa-1 protected
  • v18.2.6
42 results

fogbugz_import.rb

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;