cvs: php4 / NEWS main.c php_globals.h

From: Date: Tue, 06 Jun 2000 19:16:57 +0000
Subject: cvs: php4 / NEWS main.c php_globals.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-59@lists.php.net to get a copy of this message
zeev Tue Jun 6 12:16:57 2000 EDT Modified files: /php4 NEWS main.c php_globals.h Log: @- Made the short_tags, asp_tags and allow_call_time_pass_reference INI directives work @ on a per-directory basis as well, e.g. from .htaccess files (Zeev) Index: php4/NEWS diff -u php4/NEWS:1.277 php4/NEWS:1.278 --- php4/NEWS:1.277 Mon Jun 5 19:15:14 2000 +++ php4/NEWS Tue Jun 6 12:16:57 2000 @@ -2,6 +2,8 @@ ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2000, Version 4.0.1 +- Fixed a problem with static variables, default function arguments and class + member variables, that contained array values. (Andi & Zeev, Zend Engine) - Fix virtual() when used with output buffering (Marc Pohl) - Clean up constants in flock() function and add optional 3rd arg which is set to true on EWOULDBLOCK (Rasmus) Index: php4/main.c diff -u php4/main.c:1.262 php4/main.c:1.263 --- php4/main.c:1.262 Mon Jun 5 16:21:57 2000 +++ php4/main.c Tue Jun 6 12:16:57 2000 @@ -19,7 +19,7 @@ */ -/* $Id: main.c,v 1.262 2000/06/05 23:21:57 sas Exp $ */ +/* $Id: main.c,v 1.263 2000/06/06 19:16:57 zeev Exp $ */ #include <stdio.h> @@ -135,15 +135,13 @@ static PHP_INI_MH(OnUpdateErrorReporting) { - PLS_FETCH(); ELS_FETCH(); if (!new_value) { - PG(error_reporting) = E_ALL & ~E_NOTICE; + EG(error_reporting) = E_ALL & ~E_NOTICE; } else { - PG(error_reporting) = atoi(new_value); + EG(error_reporting) = atoi(new_value); } - EG(error_reporting) = PG(error_reporting); return SUCCESS; } @@ -194,8 +192,8 @@ PHP_INI_ENTRY_EX("highlight.keyword", HL_KEYWORD_COLOR, PHP_INI_ALL, NULL, php_ini_color_displayer_cb) PHP_INI_ENTRY_EX("highlight.string", HL_STRING_COLOR, PHP_INI_ALL, NULL, php_ini_color_displayer_cb) - STD_PHP_INI_BOOLEAN("allow_call_time_pass_reference","1",PHP_INI_ALL, OnUpdateBool, allow_call_time_pass_reference, php_core_globals, core_globals) - STD_PHP_INI_BOOLEAN("asp_tags", "0", PHP_INI_ALL, OnUpdateBool, asp_tags, php_core_globals, core_globals) + STD_PHP_INI_BOOLEAN("allow_call_time_pass_reference","1",PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateBool, allow_call_time_pass_reference, zend_compiler_globals, compiler_globals) + STD_PHP_INI_BOOLEAN("asp_tags", "0", PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateBool, asp_tags, zend_compiler_globals, compiler_globals) STD_PHP_INI_BOOLEAN("display_errors", "1", PHP_INI_ALL, OnUpdateBool, display_errors, php_core_globals, core_globals) STD_PHP_INI_BOOLEAN("enable_dl", "1", PHP_INI_SYSTEM, OnUpdateBool, enable_dl, php_core_globals, core_globals) STD_PHP_INI_BOOLEAN("error_append_string", NULL, PHP_INI_ALL, OnUpdateString, error_append_string, php_core_globals, core_globals) @@ -211,7 +209,7 @@ 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) STD_PHP_INI_BOOLEAN("safe_mode", "0", PHP_INI_SYSTEM, OnUpdateBool, safe_mode, php_core_globals, core_globals) - STD_PHP_INI_BOOLEAN("short_open_tag", "1", PHP_INI_ALL, OnUpdateBool, short_tags, php_core_globals, core_globals) + STD_PHP_INI_BOOLEAN("short_open_tag", "1", PHP_INI_SYSTEM|PHP_INI_PERDIR, OnUpdateBool, short_tags, zend_compiler_globals, compiler_globals) STD_PHP_INI_BOOLEAN("sql.safe_mode", "0", PHP_INI_SYSTEM, OnUpdateBool, sql_safe_mode, php_core_globals, core_globals) STD_PHP_INI_BOOLEAN("track_errors", "0", PHP_INI_ALL, OnUpdateBool, track_errors, php_core_globals, core_globals) #if PHP_TRACK_VARS /* "cc -32" on IRIX 6.4 does not like (PHP_TRACK_VARS?"1":"0") - thies 991004 */ @@ -696,7 +694,6 @@ php_call_shutdown_functions(); php_ini_rshutdown(); - EG(error_reporting) = PG(error_reporting); if (PG(modules_activated)) { zend_deactivate_modules(); @@ -886,9 +883,6 @@ REGISTER_INI_ENTRIES(); - zuv.short_tags = (zend_bool) PG(short_tags); - zuv.asp_tags = (zend_bool) PG(asp_tags); - zuv.allow_call_time_pass_reference = PG(allow_call_time_pass_reference); zuv.import_use_extension = ".php"; zend_set_utility_values(&zuv); php_startup_sapi_content_types(); Index: php4/php_globals.h diff -u php4/php_globals.h:1.49 php4/php_globals.h:1.50 --- php4/php_globals.h:1.49 Mon May 29 11:45:06 2000 +++ php4/php_globals.h Tue Jun 6 12:16:57 2000 @@ -58,8 +58,6 @@ zend_bool magic_quotes_runtime; zend_bool magic_quotes_sybase; - zend_bool asp_tags; - zend_bool short_tags; zend_bool allow_call_time_pass_reference; zend_bool zend_set_utility_values; zend_bool output_buffering; @@ -72,7 +70,6 @@ long memory_limit; - int error_reporting; zend_bool track_errors; zend_bool display_errors; zend_bool log_errors;

« previous php.cvs (#59) next »