[arch-commits] CVS update of arch/build/devel/php (PKGBUILD php.ini php.install)
Tobias Kieslich
tobias at archlinux.org
Fri May 4 21:46:46 UTC 2007
Date: Friday, May 4, 2007 @ 17:46:46
Author: tobias
Path: /home/cvs-arch/arch/build/devel/php
Modified: PKGBUILD (1.93 -> 1.94) php.ini (1.15 -> 1.16)
php.install (1.3 -> 1.4)
Fix the install of libraries to the root directory
added the cgi specific comments to the post_install method
brought php.ini to version 5.2.0 defaults
Thanks to Pierre Schmitz for maintaining the suhosin stuff in community
-------------+
PKGBUILD | 31 ++--
php.ini | 366 ++++++++++++++++++++++++++++++++++++++--------------------
php.install | 11 +
3 files changed, 267 insertions(+), 141 deletions(-)
Index: arch/build/devel/php/PKGBUILD
diff -u arch/build/devel/php/PKGBUILD:1.93 arch/build/devel/php/PKGBUILD:1.94
--- arch/build/devel/php/PKGBUILD:1.93 Thu May 3 19:26:39 2007
+++ arch/build/devel/php/PKGBUILD Fri May 4 17:46:46 2007
@@ -1,14 +1,15 @@
-# $Id: PKGBUILD,v 1.93 2007/05/03 23:26:39 tobias Exp $
+# $Id: PKGBUILD,v 1.94 2007/05/04 21:46:46 tobias Exp $
# Maintainer: dorphell <dorphell at archlinux.org>
# since php and php-cgi get always updated at the same time we combine
# the packages
pkgname=php
-pkgver=5.2.1
-pkgrel=4
+pkgver=5.2.2
+pkgrel=1
_suhosinver=0.9.6.2
pkgdesc="A high-level scripting language"
arch=(i686 x86_64)
+license=(PHP)
url="http://www.php.net"
backup=(etc/php.ini)
install=php.install
@@ -19,15 +20,18 @@
'net-snmp' 'libmcrypt')
conflicts=('php-cgi')
replaces=('php-cgi')
-source=(http://www.php.net/distributions/${pkgname}-${pkgver}.tar.gz
- http://www.hardened-php.net/suhosin/_media/suhosin-patch-${pkgver}-${_suhosinver}.patch.gz
+source=(http://www.php.net/distributions/${pkgname}-${pkgver}.tar.bz2
+ http://www.hardened-php.net/suhosin/_media/suhosin-patch-${pkgver}rc2-${_suhosinver}.patch.gz
php.ini)
+md5sums=('d084337867d70b50a10322577be0e44e'
+ '081fe08d584820a6ece1fe2e8629711f'
+ 'c7679454d65d9ea28d751cd1db389fcb')
build() {
- ############## BUILD php-cgi from here
export MAKEFLAGS="-j1"
+ ############## BUILD php-cgi from here
cd ${startdir}/src/${pkgname}-${pkgver}
- patch -p 1 -i ../suhosin-patch-${pkgver}-${_suhosinver}.patch || return 1
+ patch -p 1 -i ../suhosin-patch-${pkgver}rc2-${_suhosinver}.patch || return 1
./configure --prefix=/usr --enable-fastcgi --enable-cgi \
--enable-discard-path --enable-force-cgi-redirect \
--sysconfdir=/etc --with-layout=PHP \
@@ -53,10 +57,8 @@
--enable-mbstring=all --enable-mbregex --with-snmp=shared,/usr \
--enable-dbase --enable-pcntl
- # fixes a build error in sqlite support
- ln -s main/php_config.h ./config.h
make || return 1
- make INSTALL_ROOT=${startdir}/pkg install
+ make INSTALL_ROOT=${startdir}/pkg install || return 1
# here starts the cleanup
cd ${startdir}/pkg
@@ -68,7 +70,6 @@
### make standard php
cd ${startdir}/src/${pkgname}-${pkgver}
make distclean
- ./buildconf --force
./configure --with-apxs2 --prefix=/usr --sysconfdir=/etc \
--with-layout=PHP \
--with-ttf --enable-mailparse --with-config-file-scan-dir=/etc \
@@ -93,14 +94,16 @@
--with-png-dir=/usr --with-regex=php --with-zlib --enable-soap=shared \
--enable-mbstring=all --enable-mbregex --with-snmp=shared,/usr \
--enable-dbase --enable-pcntl
+
# fixes a build error in sqlite support
ln -s main/php_config.h ./config.h
+
make || return 1
mkdir -p ${startdir}/pkg/usr/lib/apache
-# cp config_vars.mk config_vars.old
-# sed "s|^INSTALL_IT.*$|INSTALL_IT = apxs -i -a -S LIBEXECDIR=${startdir}/pkg/usr/lib/apache -n php4 libs/libphp4.so|" config_vars.old >config_vars.mk
+ # cp config_vars.mk config_vars.old
+ # sed "s|^INSTALL_IT.*$|INSTALL_IT = apxs -i -a -S LIBEXECDIR=${startdir}/pkg/usr/lib/apache -n php4 libs/libphp4.so|" config_vars.old >config_vars.mk
sed -i "s|-i -a -n php5|-i -n php5|g" Makefile
- make INSTALL_ROOT=${startdir}/pkg install
+ make INSTALL_ROOT=${startdir}/pkg install || return 1
cp ../php.ini ${startdir}/pkg/etc
#FS #3395
Index: arch/build/devel/php/php.ini
diff -u arch/build/devel/php/php.ini:1.15 arch/build/devel/php/php.ini:1.16
--- arch/build/devel/php/php.ini:1.15 Fri Oct 13 14:32:04 2006
+++ arch/build/devel/php/php.ini Fri May 4 17:46:46 2007
@@ -55,10 +55,70 @@
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants *after* the line that loads the extension.
;
-; All the values in the php.ini-dist file correspond to the builtin
-; defaults (that is, if no php.ini is used, or if you delete these lines,
-; the builtin defaults will be identical).
-
+;
+;;;;;;;;;;;;;;;;;;;
+; About this file ;
+;;;;;;;;;;;;;;;;;;;
+; This is the recommended, PHP 5-style version of the php.ini-dist file. It
+; sets some non standard settings, that make PHP more efficient, more secure,
+; and encourage cleaner coding.
+;
+; The price is that with these settings, PHP may be incompatible with some
+; applications, and sometimes, more difficult to develop with. Using this
+; file is warmly recommended for production sites. As all of the changes from
+; the standard settings are thoroughly documented, you can go over each one,
+; and decide whether you want to use it or not.
+;
+; For general information about the php.ini file, please consult the php.ini-dist
+; file, included in your PHP distribution.
+;
+; This file is different from the php.ini-dist file in the fact that it features
+; different values for several directives, in order to improve performance, while
+; possibly breaking compatibility with the standard out-of-the-box behavior of
+; PHP. Please make sure you read what's different, and modify your scripts
+; accordingly, if you decide to use this file instead.
+;
+; - register_long_arrays = Off [Performance]
+; Disables registration of the older (and deprecated) long predefined array
+; variables ($HTTP_*_VARS). Instead, use the superglobals that were
+; introduced in PHP 4.1.0
+; - display_errors = Off [Security]
+; With this directive set to off, errors that occur during the execution of
+; scripts will no longer be displayed as a part of the script output, and thus,
+; will no longer be exposed to remote users. With some errors, the error message
+; content may expose information about your script, web server, or database
+; server that may be exploitable for hacking. Production sites should have this
+; directive set to off.
+; - log_errors = On [Security]
+; This directive complements the above one. Any errors that occur during the
+; execution of your script will be logged (typically, to your server's error log,
+; but can be configured in several ways). Along with setting display_errors to off,
+; this setup gives you the ability to fully understand what may have gone wrong,
+; without exposing any sensitive information to remote users.
+; - output_buffering = 4096 [Performance]
+; Set a 4KB output buffer. Enabling output buffering typically results in less
+; 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 $_ENV. To access
+; environment variables, you can use getenv() instead.
+; - error_reporting = E_ALL [Code Cleanliness, Security(?)]
+; By default, PHP suppresses errors of type E_NOTICE. These error messages
+; 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.
+; - 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 ;
@@ -76,13 +136,13 @@
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
-short_open_tag = On
+short_open_tag = Off
; Allow ASP-style <% %> tags.
asp_tags = Off
; The number of significant digits displayed in floating point numbers.
-precision = 12
+precision = 14
; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
y2k_compliance = On
@@ -94,7 +154,7 @@
; setting this directive to On. If you wish to limit the size of the buffer
; to a certain size - you can use a maximum number of bytes instead of 'On', as
; a value for this directive (e.g., output_buffering=4096).
-output_buffering = Off
+output_buffering = 4096
; You can redirect all of the output of your scripts to a function. For
; example, if you set output_handler to "mb_output_handler", character
@@ -120,6 +180,7 @@
; Note: You need to use zlib.output_handler instead of the standard
; output_handler, or otherwise the output will be corrupted.
zlib.output_compression = Off
+;zlib.output_compression_level = -1
; You cannot specify additional output handlers if zlib.output_compression
; is activated here. This setting does the same as output_handler but in
@@ -133,9 +194,9 @@
; implications and is generally recommended for debugging purposes only.
implicit_flush = Off
-; The unserialize callback function will be called (with the undefind class'
+; The unserialize callback function will be called (with the undefined class'
; name as parameter), if the unserializer finds an undefined class
-; which should be instanciated.
+; which should be instantiated.
; A warning appears if the specified function is not defined, or if the
; function doesn't include/implement the missing class.
; So only set this entry, if you really want to implement such a
@@ -156,8 +217,9 @@
; with future versions of the language (you will receive a warning each time
; you use this feature, and the argument will be passed by value instead of by
; reference).
-allow_call_time_pass_reference = On
+allow_call_time_pass_reference = Off
+;
; Safe Mode
;
safe_mode = Off
@@ -196,7 +258,7 @@
; and below. This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
-;open_basedir =
+open_basedir = /home/:/tmp/:/usr/share/pear/
; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
@@ -209,7 +271,7 @@
disable_classes =
; Colors for Syntax Highlighting mode. Anything that's acceptable in
-; <span style="color: ??????"> would work.
+; <span style="color: ???????"> would work.
;highlight.string = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
@@ -217,6 +279,20 @@
;highlight.default = #0000BB
;highlight.html = #000000
+; If enabled, the request will be allowed to complete even if the user aborts
+; the request. Consider enabling it if executing long request, which may end up
+; being interrupted by the user or a browser timing out.
+; ignore_user_abort = On
+
+; Determines the size of the realpath cache to be used by PHP. This value should
+; be increased on systems where PHP opens many files to reflect the quantity of
+; the file operations performed.
+; realpath_cache_size=16k
+
+; Duration of time, in seconds for which to cache realpath information for a given
+; file or directory. For systems with rarely changing files, consider increasing this
+; value.
+; realpath_cache_ttl=120
;
; Misc
@@ -225,7 +301,7 @@
; (e.g. by adding its signature to the Web server header). It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
-expose_php = On
+expose_php = Off
;;;;;;;;;;;;;;;;;;;
@@ -234,7 +310,7 @@
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
-memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
+memory_limit = 16M ; Maximum amount of memory a script may consume (16MB)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -245,6 +321,7 @@
; reporting level
; E_ALL - All errors and warnings (doesn't include E_STRICT)
; E_ERROR - fatal run-time errors
+; E_RECOVERABLE_ERROR - almost fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE - compile-time parse errors
; E_NOTICE - run-time notices (these are warnings which often result
@@ -268,26 +345,26 @@
;
; - Show all errors, except for notices and coding standards warnings
;
-;error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
+error_reporting = E_ALL & ~E_NOTICE
;
; - Show all errors, except for notices
;
-;error_reporting = E_ALL & ~E_NOTICE
+;error_reporting = E_ALL & ~E_NOTICE | E_STRICT
;
; - Show only errors
;
-;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
+;error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
;
-; - Show all errors except for notices
+; - Show all errors, except coding standards warnings
;
-error_reporting = E_ALL & ~E_NOTICE
+;error_reporting = E_ALL
; Print out errors (as a part of the output). For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below). Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
-display_errors = On
+display_errors = Off
; Even when display_errors is on, errors that occur during PHP's startup
; sequence are not displayed. It's strongly recommended to keep
@@ -297,7 +374,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.
-log_errors = Off
+log_errors = On
; 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.
@@ -309,13 +386,15 @@
; Ignore source of message when ignoring repeated messages. When this setting
; is On you will not log errors with repeated messages from different files or
-; sourcelines.
+; source lines.
ignore_repeated_source = Off
; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This has only effect in a debug compile, and if
; error reporting includes E_WARNING in the allowed list
-report_memleaks = On
+report_memleaks = Off
+
+;report_zend_debug = 0
; Store the last error/warning message in $php_errormsg (boolean).
track_errors = Off
@@ -344,7 +423,7 @@
;error_log = filename
; Log errors to syslog (Event Log on NT, not valid in Windows 95).
-;error_log = syslog
+error_log = syslog
;;;;;;;;;;;;;;;;;
@@ -366,7 +445,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
@@ -387,7 +466,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
@@ -399,14 +478,11 @@
; Maximum size of POST data that PHP will accept.
post_max_size = 8M
-; This directive is deprecated. Use variables_order instead.
-gpc_order = "GPC"
-
; Magic quotes
;
; 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
@@ -435,7 +511,7 @@
;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: "/path1:/path2"
-;include_path = ".:/php/includes"
+include_path = ".:/usr/share/pear"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
@@ -452,7 +528,7 @@
user_dir =
; Directory in which the loadable extensions (modules) reside.
-extension_dir = "/usr/lib/php/extensions/php"
+extension_dir = "/usr/lib/php/extensions/php/"
; 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
@@ -521,7 +597,10 @@
;;;;;;;;;;;;;;;;;;
; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
-allow_url_fopen = On
+allow_url_fopen = Off
+
+; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
+allow_url_include = Off
; Define the anonymous ftp password (your email address)
;from="john at doe.com"
@@ -549,11 +628,7 @@
;
; extension=modulename.extension
;
-; For example, on Windows:
-;
-; extension=msql.dll
-;
-; ... or under UNIX:
+; For example, under UNIX:
;
; extension=msql.so
;
@@ -561,70 +636,45 @@
; needs to go here. Specify the location of the extension with the
; extension_dir directive above.
-
-; Windows Extensions
-; Note that ODBC support is built in, so no dll is needed for it.
-; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
-; extension folders as well as the separate PECL DLL download (PHP 5).
-; Be sure to appropriately set the extension_dir directive.
-
-;extension=php_mbstring.dll
-;extension=php_bz2.dll
-;extension=php_cpdf.dll
-;extension=php_crack.dll
-;extension=php_curl.dll
-;extension=php_db.dll
-;extension=php_dba.dll
-;extension=php_dbase.dll
-;extension=php_dbx.dll
-;extension=php_domxml.dll
-;extension=php_exif.dll
-;extension=php_fdf.dll
-;extension=php_filepro.dll
-;extension=php_gd2.dll
-;extension=php_gettext.dll
-;extension=php_hyperwave.dll
-;extension=php_iconv.dll
-;extension=php_ifx.dll
-;extension=php_iisfunc.dll
-;extension=php_imap.dll
-;extension=php_interbase.dll
-;extension=php_java.dll
-;extension=php_ldap.dll
-;extension=php_mbstring.dll
-;extension=php_mcrypt.dll
-;extension=php_mhash.dll
-;extension=php_mime_magic.dll
-;extension=php_ming.dll
-;extension=php_mssql.dll
-;extension=php_msql.dll
-;extension=php_mysql.dll
-;extension=php_oci8.dll
-;extension=php_openssl.dll
-;extension=php_oracle.dll
-;extension=php_pdf.dll
-;extension=php_pgsql.dll
-;extension=php_printer.dll
-;extension=php_shmop.dll
-;extension=php_snmp.dll
-;extension=php_sockets.dll
-;extension=php_sqlite.dll
-;extension=php_sybase_ct.dll
-;extension=php_w32api.dll
-;extension=php_tidy.dll
-;extension=php_xmlrpc.dll
-;extension=php_xsl.dll
-;extension=php_yaz.dll
-;extension=php_zip.dll
-
-
;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;
[Date]
; Defines the default timezone used by the date functions
-;date.timezone =
+;date.timezone =
+
+;date.default_latitude = 31.7667
+;date.default_longitude = 35.2333
+
+;date.sunrise_zenith = 90.583333
+;date.sunset_zenith = 90.583333
+
+[filter]
+;filter.default = unsafe_raw
+;filter.default_flags =
+
+[iconv]
+;iconv.input_encoding = ISO-8859-1
+;iconv.internal_encoding = ISO-8859-1
+;iconv.output_encoding = ISO-8859-1
+
+[sqlite]
+;sqlite.assoc_case = 0
+
+[xmlrpc]
+;xmlrpc_error_number = 0
+;xmlrpc_errors = 0
+
+[Pcre]
+;PCRE library backtracking limit.
+;pcre.backtrack_limit=100000
+
+;PCRE library recursion limit.
+;Please note that if you set this value to a high number you may consume all
+;the available process stack and eventually crash PHP (due to reaching the
+;stack size limit imposed by the Operating System).
+;pcre.recursion_limit=100000
[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
@@ -635,10 +685,10 @@
[mail function]
; For Win32 only.
SMTP = localhost
-smtp_port=25
+smtp_port = 25
; For Win32 only.
-sendmail_from = me at localhost.com
+;sendmail_from = me at localhost.org
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
@@ -715,14 +765,14 @@
; file will be able to reveal the password as well.
mysql.default_password =
-; Maximum time (in secondes) for connect timeout. -1 means no limimt
+; Maximum time (in seconds) for connect timeout. -1 means no limit
mysql.connect_timeout = 60
; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
-; SQL-Erros will be displayed.
+; SQL-Errors will be displayed.
mysql.trace_mode = Off
-[MySQLI]
+[MySQLi]
; Maximum number of links. -1 means no limit.
mysqli.max_links = -1
@@ -763,6 +813,37 @@
; Maximum number of links (persistent+non persistent). -1 means no limit.
msql.max_links = -1
+[OCI8]
+; enables privileged connections using external credentials (OCI_SYSOPER, OCI_SYSDBA)
+;oci8.privileged_connect = Off
+
+; Connection: The maximum number of persistent OCI8 connections per
+; process. Using -1 means no limit.
+;oci8.max_persistent = -1
+
+; Connection: The maximum number of seconds a process is allowed to
+; maintain an idle persistent connection. Using -1 means idle
+; persistent connections will be maintained forever.
+;oci8.persistent_timeout = -1
+
+; Connection: The number of seconds that must pass before issuing a
+; ping during oci_pconnect() to check the connection validity. When
+; set to 0, each oci_pconnect() will cause a ping. Using -1 disables
+; pings completely.
+;oci8.ping_interval = 60
+
+; Tuning: This option enables statement caching, and specifies how
+; many statements to cache. Using 0 disables statement caching.
+;oci8.statement_cache_size = 20
+
+; Tuning: Enables statement prefetching and sets the default number of
+; rows that will be fetched automatically after statement execution.
+;oci8.default_prefetch = 10
+
+; Compatibility. Using On means oci_close() will not close
+; oci_connect() and oci_new_connect() connections.
+;oci8.old_oci_close_semantics = Off
+
[PostgresSQL]
; Allow or prevent persistent links.
pgsql.allow_persistent = On
@@ -803,10 +884,10 @@
; Minimum message severity to display.
sybase.min_message_severity = 10
-; Compatability mode with old versions of PHP 3.0.
+; Compatibility mode with old versions of PHP 3.0.
; If on, this will cause PHP to automatically assign types to results according
; to their Sybase type, instead of treating them all as strings. This
-; compatability mode will probably not stay around forever, so try applying
+; compatibility mode will probably not stay around forever, so try applying
; whatever necessary changes to your code, and turn it off.
sybase.compatability_mode = Off
@@ -915,6 +996,8 @@
; Whether to use cookies.
session.use_cookies = 1
+;session.cookie_secure =
+
; This option enables administrators to make their users invulnerable to
; attacks which involve passing session ids in URLs; defaults to 0.
; session.use_only_cookies = 1
@@ -934,6 +1017,9 @@
; The domain for which the cookie is valid.
session.cookie_domain =
+; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
+session.cookie_httponly =
+
; Handler used to serialize data. php is the standard serializer of PHP.
session.serialize_handler = php
@@ -944,7 +1030,7 @@
; on each request.
session.gc_probability = 1
-session.gc_divisor = 100
+session.gc_divisor = 1000
; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
@@ -964,7 +1050,7 @@
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled.
-session.bug_compat_42 = 1
+session.bug_compat_42 = 0
session.bug_compat_warn = 1
; Check HTTP Referer to invalidate externally stored URLs containing ids.
@@ -1018,7 +1104,7 @@
; add a hidden <input> field with the info which is otherwise appended
; to URLs. If you want XHTML conformity, remove the form entry.
; Note that all valid entries require a "=", even if no value follows.
-url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
+url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
[MSSQL]
; Allow or prevent persistent links.
@@ -1036,7 +1122,7 @@
; Minimum message severity to display.
mssql.min_message_severity = 10
-; Compatability mode with old versions of PHP 3.0.
+; Compatibility mode with old versions of PHP 3.0.
mssql.compatability_mode = Off
; Connect timeout
@@ -1062,8 +1148,15 @@
; Use NT authentication when connecting to the server
mssql.secure_connection = Off
-; Specify max number of processes. Default = 25
-;mssql.max_procs = 25
+; Specify max number of processes. -1 = library default
+; msdlib defaults to 25
+; FreeTDS defaults to 4096
+;mssql.max_procs = -1
+
+; Specify client character set.
+; If empty or not set the client charset from freetds.comf is used
+; This is only used when compiled with FreeTDS
+;mssql.charset = "ISO-8859-1"
[Assertion]
; Assert(expr); active by default.
@@ -1127,7 +1220,7 @@
; Use the system read() function instead of the php_read() wrapper.
sockets.use_system_read = On
-[com]
+[COM]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
;com.typelib_file =
; allow Distributed-COM calls
@@ -1136,7 +1229,7 @@
;com.autoregister_typelib = true
; register constants casesensitive
;com.autoregister_casesensitive = false
-; show warnings on duplicate constat registrations
+; show warnings on duplicate constant registrations
;com.autoregister_verbose = true
[Printer]
@@ -1183,9 +1276,13 @@
; 4: Overload ereg*() functions
;mbstring.func_overload = 0
+; enable strict encoding detection.
+;mbstring.strict_encoding = Off
+
[FrontBase]
;fbsql.allow_persistent = On
;fbsql.autocommit = On
+;fbsql.show_timestamp_decimals = Off
;fbsql.default_database =
;fbsql.default_database_password =
;fbsql.default_host =
@@ -1203,6 +1300,12 @@
; dictionary files. Include the base filename, but not the file extension.
; crack.default_dictionary = "c:\php\lib\cracklib_dict"
+[gd]
+; Tell the jpeg decode to libjpeg warnings and try to create
+; a gd image. The warning will then be displayed as notices
+; disabled by default
+;gd.jpeg_ignore_warning = 0
+
[exif]
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
; With mbstring support this will automatically be converted into the encoding
@@ -1230,37 +1333,54 @@
soap.wsdl_cache_enabled=1
; Sets the directory name where SOAP extension will put cache files.
soap.wsdl_cache_dir="/tmp"
-; (time to live) Sets the number of second while cached file will be used
+; (time to live) Sets the number of second while cached file will be used
; instead of original one.
soap.wsdl_cache_ttl=86400
+; available extensions
extension=bcmath.so
extension=bz2.so
extension=calendar.so
+extension=ftp.so
;extension=mcrypt.so
;extension=fam.so
-extension=ftp.so
;extension=gd.so
+;extension=ldap.so
+;extension=mcrypt.so
+;extension=mysql.so
+;extension=mysqli.so
+;extension=odbc.so
;extension=pdo.so
;extension=pdo_mysql.so
;extension=pdo_odbc.so
;extension=pdo_pgsql.so
;extension=pdo_sqlite.so
-;extension=ldap.so
-;extension=mysql.so
-;extension=mysqli.so
-;extension=odbc.so
;extension=pgsql.so
-;extension=soap.so
+;extension=posix.so
+;extension=shmop.so
;extension=snmp.so
-extension=posix.so
-extension=shmop.so
-extension=sockets.so
+;extension=soap.so
+;extension=sockets.so
;extension=sqlite.so
;extension=sysvmsg.so
-extension=sysvsem.so
-extension=sysvshm.so
+;extension=sysvsem.so
+;extension=sysvshm.so
+extension=posix.so
+extension=shmop.so
+
+; install php-apc in order to use this extension
+;extension=apc.so
+;apc.shm_size=64
+
+; install php-fileinfo in order to use this extension
+;extension=fileinfo.so
+
+; install php-suhosin-extension in order to use this extension
+;extension=suhosin.so
+; uncomment this if you use APC 3.0.12p* together with suhosin
+;suhosin.apc_bug_workaround=On
+
; Local Variables:
; tab-width: 4
Index: arch/build/devel/php/php.install
diff -u arch/build/devel/php/php.install:1.3 arch/build/devel/php/php.install:1.4
--- arch/build/devel/php/php.install:1.3 Tue Feb 13 16:20:51 2007
+++ arch/build/devel/php/php.install Fri May 4 17:46:46 2007
@@ -1,5 +1,5 @@
post_install() {
-cat << _EOF
+ /bin/cat << ENDOFMESSAGE
==>
==> PHP has been built with some optional modules.
==> To enable these modules, uncomment the modules from php.ini
@@ -14,9 +14,13 @@
==> - odbc : unixodbc
==> - snmp : net-snmp
==> - mcrypt : mcrypt
-==>
-_EOF
+==> FOR PHP-CGI usage:
+==> There are several cgi relevant settings in your /etc/php.ini. Make sure
+==> you understand them and adjust them according to your needs. At least you
+==> should activate the cgi.fix_pathinfo directive in php.ini by setting it
+==> to 1 and uncommenting it.
+ENDOFMESSAGE
}
post_upgrade() {
@@ -26,4 +30,3 @@
op=$1
shift
$op $*
-
More information about the arch-commits
mailing list