SOURCES: php-ini.patch - variables_order = "EGPCS" -> "GPCS" (perf...

glen glen at pld-linux.org
Tue Sep 26 11:55:51 CEST 2006


Author: glen                         Date: Tue Sep 26 09:55:51 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- variables_order = "EGPCS" -> "GPCS" (performance)
- magic_quotes_gpc = Off (performance) 
- and rediff

---- Files affected:
SOURCES:
   php-ini.patch (1.20 -> 1.21) 

---- Diffs:

================================================================
Index: SOURCES/php-ini.patch
diff -u SOURCES/php-ini.patch:1.20 SOURCES/php-ini.patch:1.21
--- SOURCES/php-ini.patch:1.20	Tue May 30 17:16:16 2006
+++ SOURCES/php-ini.patch	Tue Sep 26 11:55:46 2006
@@ -1,5 +1,5 @@
---- php-5.1.0.org/php.ini	2005-11-25 02:24:23.408519000 +0100
-+++ php-5.1.0/php.ini	2005-11-25 02:26:06.570966750 +0100
+--- php-5.1.6/php.ini~	2006-09-26 12:52:32.871369095 +0300
++++ php-5.1.6/php.ini	2006-09-26 12:50:19.858375000 +0300
 @@ -3,13 +3,18 @@
  ;;;;;;;;;;;
  ; WARNING ;
@@ -26,7 +26,7 @@
  
  ;;;;;;;;;;;;;;;;;;;
  ; About php.ini   ;
-@@ -59,11 +64,73 @@
+@@ -59,10 +64,72 @@
  ;;;;;;;;;;;;;;;;;;;
  ; About this file ;
  ;;;;;;;;;;;;;;;;;;;
@@ -36,7 +36,7 @@
 +; If you use constants in your value, and these constants belong to a
 +; dynamically loaded extension (either a PHP extension or a Zend extension),
 +; you may only use these constants *after* the line that loads the extension.
- 
++
  
 +; Below is the list of settings changed from default as specified in
 +; php.ini-recommended. These settings make PHP more secure and encourage
@@ -74,6 +74,16 @@
 +;     are emitted for non-critical errors, but that could be a symptom of a bigger
 +;     problem.  Most notably, this will cause error messages about the use
 +;     of uninitialized variables to be displayed.
++; - register_argc_argv = Off       [Performance]
++;     Disables registration of the somewhat redundant $argv and $argc global
++;     variables.
++; - magic_quotes_gpc = Off         [Performance]
++;     Input data is no longer escaped with slashes so that it can be sent into
++;     SQL databases without further manipulation.  Instead, you should use the
++;     function addslashes() on each input element you wish to send to a database.
++; - variables_order = "GPCS"       [Performance]
++;     The environment variables are not hashed into the $HTTP_ENV_VARS[].  To access
++;     environment variables, you can use getenv() instead.
 +
 +; For completeness, below is list of the rest of changes recommended for
 +; performance, but NOT applied in default php.ini in PLD (since they are
@@ -85,24 +95,13 @@
 +;     writes, and sometimes less packets sent on the wire, which can often lead to
 +;     better performance.  The gain this directive actually yields greatly depends
 +;     on which Web server you're working with, and what kind of scripts you're using.
-+; - register_argc_argv = Off       [Performance]
-+;     Disables registration of the somewhat redundant $argv and $argc global
-+;     variables.
-+; - magic_quotes_gpc = Off         [Performance]
-+;     Input data is no longer escaped with slashes so that it can be sent into
-+;     SQL databases without further manipulation.  Instead, you should use the
-+;     function addslashes() on each input element you wish to send to a database.
-+; - variables_order = "GPCS"       [Performance]
-+;     The environment variables are not hashed into the $HTTP_ENV_VARS[].  To access
-+;     environment variables, you can use getenv() instead.
 +; - allow_call_time_pass_reference = Off     [Code cleanliness]
 +;     It's not possible to decide to force a variable to be passed by reference
 +;     when calling a function.  The PHP 4 style to do this is by making the
 +;     function require the relevant argument by reference.
-+
+ 
  ;;;;;;;;;;;;;;;;;;;;
  ; Language Options ;
- ;;;;;;;;;;;;;;;;;;;;
 @@ -86,7 +153,7 @@
  asp_tags = Off
  
@@ -112,7 +111,7 @@
  
  ; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
  y2k_compliance = On
-@@ -289,14 +356,16 @@
+@@ -299,14 +366,16 @@
  ;
  ;   - Show all errors except for notices and coding standards warnings
  ;
@@ -131,7 +130,7 @@
  
  ; Even when display_errors is on, errors that occur during PHP's startup
  ; sequence are not displayed.  It's strongly recommended to keep
-@@ -306,7 +375,7 @@
+@@ -316,7 +385,7 @@
  ; Log errors into a log file (server-specific log, stderr, or error_log (below))
  ; As stated above, you're strongly advised to use error logging in place of
  ; error displaying on production web sites.
@@ -140,7 +139,40 @@
  
  ; Set maximum length of log_errors. In error_log information about the source is
  ; added. The default is 1024 and 0 allows to not apply any maximum length at all.
-@@ -458,7 +527,7 @@
+@@ -385,7 +454,7 @@
+ ; Environment and Built-in variables (G, P, C, E & S respectively, often
+ ; referred to as EGPCS or GPC).  Registration is done from left to right, newer
+ ; values override older values.
+-variables_order = "EGPCS"
++variables_order = "GPCS"
+ 
+ ; Whether or not to register the EGPCS variables as global variables.  You may
+ ; want to turn this off if you don't want to clutter your scripts' global scope
+@@ -401,12 +470,12 @@
+ ; Whether or not to register the old-style input arrays, HTTP_GET_VARS
+ ; and friends.  If you're not using them, it's recommended to turn them off,
+ ; for performance reasons.
+-register_long_arrays = On
++register_long_arrays = Off
+ 
+ ; This directive tells PHP whether to declare the argv&argc variables (that
+ ; would contain the GET information).  If you don't use these variables, you
+ ; should turn it off for increased performance.
+-register_argc_argv = On
++register_argc_argv = Off
+ 
+ ; When enabled, the SERVER and ENV variables are created when they're first
+ ; used (Just In Time) instead of when the script starts. If these variables
+@@ -422,7 +491,7 @@
+ ;
+ 
+ ; Magic quotes for incoming GET/POST/Cookie data.
+-magic_quotes_gpc = On
++magic_quotes_gpc = Off
+ 
+ ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
+ magic_quotes_runtime = Off
+@@ -468,7 +537,7 @@
  user_dir =
  
  ; Directory in which the loadable extensions (modules) reside.
@@ -149,9 +181,16 @@
  
  ; Whether or not to enable the dl() function.  The dl() function does NOT work
  ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
---- php-5.1.1/php.ini~	2005-12-19 19:44:04.000000000 +0200
-+++ php-5.1.1/php.ini	2005-12-19 20:01:09.000000000 +0200
-@@ -628,48 +628,6 @@
+@@ -529,7 +598,7 @@
+ ;;;;;;;;;;;;;;;;;;
+ 
+ ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
+-allow_url_fopen = On
++allow_url_fopen = Off
+ 
+ ; Define the anonymous ftp password (your email address)
+ ;from="john at doe.com"
+@@ -569,48 +638,6 @@
  ; needs to go here.  Specify the location of the extension with the
  ; extension_dir directive above.
  
@@ -200,40 +239,7 @@
  ;;;;;;;;;;;;;;;;;;;
  ; Module Settings ;
  ;;;;;;;;;;;;;;;;;;;
---- php-5.1.1/php.ini~	2005-12-19 20:01:09.000000000 +0200
-+++ php-5.1.1/php.ini	2005-12-19 20:04:03.000000000 +0200
-@@ -465,7 +465,7 @@
- ; This directive tells PHP whether to declare the argv&argc variables (that
- ; would contain the GET information).  If you don't use these variables, you
- ; should turn it off for increased performance.
--register_argc_argv = On
-+register_argc_argv = Off
- 
- ; When enabled, the SERVER and ENV variables are created when they're first
- ; used (Just In Time) instead of when the script starts. If these variables
---- php-5.1.1/php.ini~	2005-12-19 20:04:03.000000000 +0200
-+++ php-5.1.1/php.ini	2005-12-19 20:08:54.000000000 +0200
-@@ -460,7 +460,7 @@
- ; Whether or not to register the old-style input arrays, HTTP_GET_VARS
- ; and friends.  If you're not using them, it's recommended to turn them off,
- ; for performance reasons.
--register_long_arrays = On
-+register_long_arrays = Off
- 
- ; This directive tells PHP whether to declare the argv&argc variables (that
- ; would contain the GET information).  If you don't use these variables, you
-@@ -588,7 +588,7 @@
- ;;;;;;;;;;;;;;;;;;
- 
- ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
--allow_url_fopen = On
-+allow_url_fopen = Off
- 
- ; Define the anonymous ftp password (your email address)
- ;from="john at doe.com"
---- php-5.1.4/php.ini~	2006-05-30 16:45:33.193170093 +0300
-+++ php-5.1.4/php.ini	2006-05-30 17:42:38.109721064 +0300
-@@ -1219,7 +1219,7 @@
+@@ -1193,7 +1220,7 @@
  ; Enables or disables WSDL caching feature.
  soap.wsdl_cache_enabled=1
  ; Sets the directory name where SOAP extension will put cache files.
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/php-ini.patch?r1=1.20&r2=1.21&f=u



More information about the pld-cvs-commit mailing list