Hi all,

It seems "--enable-safe-mode" is broken for a long time...
I'm not sure if this patch is valid/ok to commit.

Let me know if you object this patch  :)

-- 
Yasuo Ohgaki

Index: main.c
===================================================================
RCS file: /repository/php4/main/main.c,v
retrieving revision 1.418
diff -u -r1.418 main.c
--- main.c      10 Jan 2002 16:00:08 -0000      1.418
+++ main.c      18 Jan 2002 02:29:05 -0000
@@ -231,7 +231,11 @@
        STD_PHP_INI_ENTRY("output_handler",                     NULL,           
PHP_INI_PERDIR|PHP_INI_SYSTEM,OnUpdateString,   output_handler,         
php_core_globals,       core_globals)
        STD_PHP_INI_BOOLEAN("register_argc_argv",       "1",            PHP_INI_ALL,   
         OnUpdateBool,                   register_argc_argv,             
php_core_globals,       core_globals)
        STD_PHP_INI_BOOLEAN("register_globals",         "1",            PHP_INI_ALL,   
         OnUpdateBool,                   register_globals,               
php_core_globals,       core_globals)
+#if PHP_SAFE_MODE
+       STD_PHP_INI_BOOLEAN("safe_mode",                        "1",            
+PHP_INI_SYSTEM,         OnUpdateBool,                   safe_mode,                    
+          php_core_globals,       core_globals)
+#else
        STD_PHP_INI_BOOLEAN("safe_mode",                        "0",            
PHP_INI_SYSTEM,         OnUpdateBool,                   safe_mode,                     
         php_core_globals,       core_globals)
+#endif
        STD_PHP_INI_ENTRY("safe_mode_include_dir",      NULL,           
PHP_INI_SYSTEM,         OnUpdateString,                 safe_mode_include_dir,  
php_core_globals,       core_globals)
        STD_PHP_INI_BOOLEAN("safe_mode_gid",                    "0",            
PHP_INI_SYSTEM,         OnUpdateBool,                   safe_mode_gid,                 
         php_core_globals,       core_globals)
        STD_PHP_INI_BOOLEAN("short_open_tag",DEFAULT_SHORT_OPEN_TAG,    
PHP_INI_SYSTEM|PHP_INI_PERDIR,          OnUpdateBool,                   short_tags,    
                         zend_compiler_globals,  compiler_globals)

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to