<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML ><HEAD ><TITLE >Migrating from PHP 3 to PHP 4</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="Manual PHP" HREF="index.html"><LINK REL="UP" TITLE="Anexe" HREF="appendixes.html"><LINK REL="PREVIOUS" TITLE="Error Reporting" HREF="migrating5.errorrep.html"><LINK REL="NEXT" TITLE="Running PHP 3 and PHP 4 concurrently" HREF="migration4.php4.with.php3.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-2"></HEAD ><BODY CLASS="appendix" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Manual PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="migrating5.errorrep.html" ACCESSKEY="P" >Înapoi</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="migration4.php4.with.php3.html" ACCESSKEY="N" >Înainte</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="appendix" ><H1 ><A NAME="migration4" >Anexa C. Migrating from PHP 3 to PHP 4</A ></H1 ><DIV CLASS="TOC" ><DL ><DT ><B >Cuprins</B ></DT ><DT ><A HREF="migration4.html#migration4.changes" >What has changed in PHP 4</A ></DT ><DT ><A HREF="migration4.php4.with.php3.html" >Running PHP 3 and PHP 4 concurrently</A ></DT ><DT ><A HREF="migration4.configuration.html" >Migrating Configuration Files</A ></DT ><DT ><A HREF="migration4.parser.html" >Parser behavior</A ></DT ><DT ><A HREF="migration4.error-reporting.html" >Error reporting</A ></DT ><DT ><A HREF="migration4.initializers.html" >Initializers</A ></DT ><DT ><A HREF="migration4.empty.html" ><VAR CLASS="literal" >empty("0")</VAR ></A ></DT ><DT ><A HREF="migration4.missing.html" >Missing functions</A ></DT ><DT ><A HREF="migration4.extensions.html" >PHP 3 extension</A ></DT ><DT ><A HREF="migration4.strings.html" >Variable substitution in strings</A ></DT ><DT ><A HREF="migration4.cookies.html" >Cookies</A ></DT ><DT ><A HREF="migration4.variables.html" >Handling of global variables</A ></DT ></DL ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="migration4.changes" >What has changed in PHP 4</A ></H1 ><P > PHP 4 and the integrated Zend engine have greatly improved PHP's performance and capabilities, but great care has been taken to break as little existing code as possible. So migrating your code from PHP 3 to 4 should be much easier than migrating from PHP/FI 2 to PHP 3. A lot of existing PHP 3 code should be ready to run without changes, but you should still know about the few differences and take care to test your code before switching versions in production environments. The following should give you some hints about what to look for. </P ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="migrating5.errorrep.html" ACCESSKEY="P" >Înapoi</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Acasã</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="migration4.php4.with.php3.html" ACCESSKEY="N" >Înainte</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Error Reporting</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="appendixes.html" ACCESSKEY="U" >Sus</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Running PHP 3 and PHP 4 concurrently</TD ></TR ></TABLE ></DIV ></BODY ></HTML >