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

1.1       misho       1: /*
                      2:    +----------------------------------------------------------------------+
                      3:    | Suhosin Patch for PHP                                                |
                      4:    +----------------------------------------------------------------------+
                      5:    | Copyright (c) 2004-2010 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_PATCH_H
                     20: #define SUHOSIN_PATCH_H
                     21: 
                     22: #if SUHOSIN_PATCH
                     23: 
                     24: #include "zend.h"
                     25: 
                     26: #define SUHOSIN_PATCH_VERSION "0.9.10"
                     27: 
                     28: #define SUHOSIN_LOGO_GUID "SUHO8567F54-D428-14d2-A769-00DA302A5F18"
                     29: 
                     30: #define SUHOSIN_CONFIG(idx) (suhosin_get_config(idx))
                     31: 
                     32: #define SUHOSIN_MM_USE_CANARY_PROTECTION        0
                     33: #define SUHOSIN_MM_DESTROY_FREE_MEMORY          1
                     34: #define SUHOSIN_MM_IGNORE_CANARY_VIOLATION      2
                     35: #define SUHOSIN_HT_IGNORE_INVALID_DESTRUCTOR    3
                     36: #define SUHOSIN_LL_IGNORE_INVALID_DESTRUCTOR    4
                     37: 
                     38: #define SUHOSIN_CONFIG_SET                      100
                     39: 
                     40: #include <sys/types.h>
                     41: #include <sys/stat.h>
                     42: #include <sys/mman.h>
                     43: 
                     44: #if defined(DARWIN)
                     45: #include <mach/vm_param.h>
                     46: #endif
                     47: 
                     48: #define SUHOSIN_MANGLE_PTR(ptr)   (ptr==NULL?NULL:((void *)((zend_intptr_t)(ptr)^SUHOSIN_POINTER_GUARD)))
                     49: 
                     50: #endif
                     51: 
                     52: #endif /* SUHOSIN_PATCH_H */
                     53: 
                     54: /*
                     55:  * Local variables:
                     56:  * tab-width: 4
                     57:  * c-basic-offset: 4
                     58:  * End:
                     59:  */

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