Annotation of embedaddon/php/main/suhosin_globals.h, revision 1.1.1.1

1.1       misho       1: /*
                      2:    +----------------------------------------------------------------------+
                      3:    | Suhosin-Patch for PHP                                                |
                      4:    +----------------------------------------------------------------------+
                      5:    | Copyright (c) 2004-2009 Stefan Esser                                 |
                      6:    +----------------------------------------------------------------------+
                      7:    | This source file is subject to version 2.02 of the PHP license,      |
                      8:    | that is bundled with this package in the file LICENSE, and is        |
                      9:    | available at through the world-wide-web at                           |
                     10:    | http://www.php.net/license/2_02.txt.                                 |
                     11:    | If you did not receive a copy of the PHP license and are unable to   |
                     12:    | obtain it through the world-wide-web, please send a note to          |
                     13:    | license@php.net so we can mail you a copy immediately.               |
                     14:    +----------------------------------------------------------------------+
                     15:    | Author: Stefan Esser <stefan.esser@sektioneins.de>                   |
                     16:    +----------------------------------------------------------------------+
                     17:  */
                     18: 
                     19: #ifndef SUHOSIN_GLOBALS_H
                     20: #define SUHOSIN_GLOBALS_H
                     21: 
                     22: typedef struct _suhosin_patch_globals suhosin_patch_globals_struct;
                     23: 
                     24: #ifdef ZTS
                     25: # define SPG(v) TSRMG(suhosin_patch_globals_id, suhosin_patch_globals_struct *, v)
                     26: extern int suhosin_patch_globals_id;
                     27: #else
                     28: # define SPG(v) (suhosin_patch_globals.v)
                     29: extern struct _suhosin_patch_globals suhosin_patch_globals;
                     30: #endif
                     31: 
                     32: 
                     33: struct _suhosin_patch_globals {
                     34:        /* logging */
                     35:        int log_syslog;
                     36:        int log_syslog_facility;
                     37:        int log_syslog_priority;
                     38:        int log_sapi;
                     39:        int log_script;
                     40:        int log_phpscript;
                     41:        char *log_scriptname;
                     42:        char *log_phpscriptname;
                     43:        zend_bool log_phpscript_is_safe;
                     44:        zend_bool log_use_x_forwarded_for;
                     45:        
                     46:        /* memory manager canary protection */
                     47:        unsigned int canary_1;
                     48:        unsigned int canary_2;
                     49:        unsigned int canary_3;
                     50:        unsigned int dummy;
                     51: };
                     52: 
                     53: 
                     54: #endif /* SUHOSIN_GLOBALS_H */
                     55: 
                     56: /*
                     57:  * Local variables:
                     58:  * tab-width: 4
                     59:  * c-basic-offset: 4
                     60:  * End:
                     61:  */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>