File: migration5.xml

package info (click to toggle)
php-doc 20100521-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 59,992 kB
  • ctags: 4,085
  • sloc: xml: 796,833; php: 21,338; cpp: 500; sh: 117; makefile: 58; awk: 28
file content (123 lines) | stat: -rw-r--r-- 4,192 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 297028 $ -->
 <chapter xml:id="faq.migration5" xmlns="http://docbook.org/ns/docbook">
  <title>Migrating from PHP 4 to PHP 5</title>
  <titleabbrev>Migrating from PHP 4 to PHP 5</titleabbrev>

  <para>
   This faq section will help you migrate from PHP 4 to PHP 5.
  </para>

  <qandaset>
   <qandaentry xml:id="faq.migration5.php45">
    <question>
     <para>
      Migrating from PHP 4 to PHP 5
     </para>
    </question>
    <answer>
     <para>
      Although PHP 5 offers many new features, it's designed to be as
      compatible with earlier versions of PHP as possible with little
      functionality being broken in the process.
     </para>
     <para>
      Be sure to read the appropriate <link linkend="migration5">PHP 5
      migration appendix</link> of this manual as it contains even more
      information on the topic of migrating to PHP 5.
     </para>
    </answer>
   </qandaentry>
   
   <qandaentry xml:id="faq.migration5.mysql">
    <question>
     <para>
      Does MySQL work in PHP 5?  It seemed to have disappeared.
     </para>
    </question>
    <answer>
     <para>
      <link linkend="ref.mysql">MySQL</link> is supported with the only
      change being that MySQL support is no longer enabled by 
      <emphasis>default</emphasis> in PHP 5.  This essentially means that
      PHP doesn't include the <option role="configure">--with-mysql</option>
      option in the <link linkend="configuration">configure</link> line so 
      that you must now manually do this when compiling PHP. Windows users will 
      edit &php.ini; and enable the <filename>php_mysql.dll</filename> DLL as
      in PHP 4 no such DLL existed, it was simply built into your Windows
      PHP binaries.
     </para>
     <para>
      Also, the MySQL client libraries are no longer bundled with PHP.  More
      details on this topic are covered in 
      <link linkend="faq.databases.mysql.php5">the following FAQ</link> and
      be sure to read the <link linkend="ref.mysql">MySQL section</link>
      for details on installing MySQL.  An example configure line would be 
      <option role="configure">--with-mysql=/usr</option> while Windows users
      will need the <filename>libmySQL.dll</filename> available to the system.
     </para>
    </answer>
   </qandaentry>

   <qandaentry xml:id="faq.migration5.oop">
    <question>
     <para>
      I hear PHP 5 has an entirely new OOP model, will my existing OOP code
      work?  Where do I find information on these new OOP features? 
     </para>
    </question>
    <answer>
     <para>
      The main change in PHP 5 is to the OOP model as PHP 5 now uses
      the <emphasis>Zend Engine 2.0</emphasis>.  The <link 
      linkend="ini.zend.ze1-compatibility-mode">
      zend.ze1_compatibility_mode</link> directive enables compatability
      with the <literal>Zend Engine 1.0</literal> (PHP 4).
     </para>
     <para>
      The new OOP model is documented in the <link linkend="language.oop5">
      OOP language reference</link> and <link linkend="migration5.oop">OOP
      migration appendix</link> sections.
     </para>
    </answer>
   </qandaentry>
   
   <qandaentry xml:id="faq.migration5.changes">
    <question>
     <para>
      So besides the new OOP model, what else has changed in PHP 5?  Also, is
      there a PHP 5 specific version of the PHP manual?
     </para>
    </question>
    <answer>
     <para>
      Few other changes exist, see the <link linkend="migration5">migration
      5 appendix</link> for details.  There won't be a PHP 5 specific
      version of the manual as the bulk of PHP remains the same.
     </para>
    </answer>
   </qandaentry>
   
  </qandaset>
 </chapter>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->