Skip to Main Content
Upgrading to PHP 5
book

Upgrading to PHP 5

by Adam Trachtenberg
July 2004
Intermediate to advanced content levelIntermediate to advanced
350 pages
10h 9m
English
O'Reilly Media, Inc.
Content preview from Upgrading to PHP 5

New Configuration Directives

Besides zend.ze1_compatibility_mode, PHP 5 has some new configuration directives:

mail.force_extra_parameters

Extra parameters to always pass to the sendmail program, such as -oi and -t. This setting overrides the options provided as the fifth argument of mail( ). It defaults to the empty string.

register_long_arrays

Whether to register the deprecated input arrays, such as $HTTP_POST_VARS and $HTTP_GET_VARS, in addition to $_POST and $_GET. This should be enabled only for legacy code. This is set to On in php.ini-dist and to Off in php.ini-recommended.

session.hash_function

Sets the hash function used by the session module. A value of 0 means use MD5, a 128-bit algorithm, and a value of 1 means use SHA-1, a 160-bit algorithm. It defaults to 0.

session.hash_bits_per_character

Sets the number of bits stored per character. Possible values are 4, 5, and 6; the default value is 4.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Expert PHP and MySQL®

Expert PHP and MySQL®

Andrew Curioso, Ronald Bradford, Patrick Galbraith
Pro PHP Programming

Pro PHP Programming

Peter MacIntyre, Brian Danchilla, Mladen Gogala
Mastering PHP 7

Mastering PHP 7

Branko Ajzele

Publisher Resources

ISBN: 0596006365Supplemental ContentCatalog PageErrata