new directives

some links
still not completed....


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@151007 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nuno Lopes 2004-02-10 18:39:07 +00:00
parent 1222cbd9db
commit f3f0b1dda2

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<appendix id="migration5">
<title>Migrating from PHP 4 to PHP 5</title>
@ -57,12 +57,14 @@
recongnized as <constant>T_DOC_COMMENT</constant>.
</simpara></listitem>
<listitem><simpara>
$_SERVER should be populated with argc and argv if variables_order
includes "S". If you have specifically configured your system to not
create $_SERVER, then of course it shouldn't be there. The change was to
always make argc and argv available in the CLI version regardless of the
variables_order setting. As in, the CLI version will now always populate
the global $argc and $argv variables.
$_SERVER should be populated with argc and argv if <link
linkend="ini.variables-order">variables_order</link> includes "S". If
you have specifically configured your system to not create $_SERVER,
then of course it shouldn't be there. The change was to always make argc
and argv available in the CLI version regardless of the <link
linkend="ini.variables-order">variables_order</link> setting. As in,
the CLI version will now always populate the global $argc and $argv
variables.
</simpara></listitem>
<listitem><simpara>
Classes must be declared before used.
@ -84,6 +86,10 @@
that php-win doesn't output anything and thus provides no console (no "dos
box" appears on the screen). This behavior is similar to php-gtk.
</para>
<para>
In PHP 5, the CLI version will always populate the global $argv and $argc
variables.
</para>
</section>
<section id="migration5.configuration">
@ -301,6 +307,10 @@ Action application/x-httpd-php "/php/php-cgi.exe"
<function>ftp_alloc</function> - Allocates space for a file to be
uploaded
</simpara></listitem>
<listitem><simpara>
<function>get_declared_interfaces</function> - Returns an array of all
declared interfaces
</simpara></listitem>
<listitem><simpara>
<function>get_headers</function> - Fetches all the headers sent by the
server in response to a HTTP request
@ -383,6 +393,35 @@ Action application/x-httpd-php "/php/php-cgi.exe"
</itemizedlist>
</section>
<section id="migration5.newconf">
<title>New Directives</title>
<para>
There were some new &php.ini; directives introduced in PHP 5. Here is a
list of them:
</para>
<itemizedlist>
<listitem><simpara>
mail.force_extra_paramaters - Force the addition of the specified
parameters to be passed as extra parameters to the sendmail binary. These
parameters will always replace the value of the 5th parameter to
<function>mail</function>, even in safe mode
</simpara></listitem>
<listitem><simpara>
<link linkend="ini.register-long-arrays">register_long_arrays</link> -
allow/disallow PHP to register the deprecated long $HTTP_*_VARS
</simpara></listitem>
<listitem><simpara>
session.hash_function - select a hash function (MD5 or SHA-1)
</simpara></listitem>
<listitem><simpara>
session.hash_bits_per_character - define how many bits are stored in
each character when converting the binary hash data to something
readable (from 4 to 6)
</simpara></listitem>
</itemizedlist>
</section>
</appendix>