nlopess Tue Feb 10 13:39:07 2004 EDT
Modified files:
/phpdoc/en/appendices migration5.xml
Log:
new directives
some links
still not completed....
http://cvs.php.net/diff.php/phpdoc/en/appendices/migration5.xml?r1=1.5&r2=1.6&ty=u
Index: phpdoc/en/appendices/migration5.xml
diff -u phpdoc/en/appendices/migration5.xml:1.5 phpdoc/en/appendices/migration5.xml:1.6
--- phpdoc/en/appendices/migration5.xml:1.5 Fri Feb 6 12:20:48 2004
+++ phpdoc/en/appendices/migration5.xml Tue Feb 10 13:39:07 2004
@@ -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">
@@ -302,6 +308,10 @@
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
</simpara></listitem>
@@ -383,6 +393,35 @@
</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>