<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Migrating from PHP 5.1.x to PHP 5.2.x</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="PHP 手册" HREF="index.html"><LINK REL="UP" TITLE="Appendices" HREF="appendices.html"><LINK REL="PREVIOUS" TITLE="PHP 相关文章" HREF="history.php.publications.html"><LINK REL="NEXT" TITLE="Backward Incompatible Changes" HREF="migration52.incompatible.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8"></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" >PHP 手册</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="history.php.publications.html" ACCESSKEY="P" >上一页</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="migration52.incompatible.html" ACCESSKEY="N" >下一页</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="appendix" ><H1 ><A NAME="migration52" >附录 B. Migrating from PHP 5.1.x to PHP 5.2.x</A ></H1 ><DIV CLASS="TOC" ><DL ><DT ><B >目录</B ></DT ><DT ><A HREF="migration52.html#migration52.changes" >What has changed in PHP 5.2.x</A ></DT ><DT ><A HREF="migration52.incompatible.html" >Backward Incompatible Changes</A ></DT ><DT ><A HREF="migration52.error-messages.html" >New Error Messages</A ></DT ><DT ><A HREF="migration52.datetime.html" >Changes in PHP <A HREF="ref.datetime.html" >datetime</A > support</A ></DT ><DT ><A HREF="migration52.parameters.html" >New Parameters</A ></DT ><DT ><A HREF="migration52.functions.html" >New Functions</A ></DT ><DT ><A HREF="migration52.methods.html" >New Methods</A ></DT ><DT ><A HREF="migration52.removed-extensions.html" >Removed Extensions</A ></DT ><DT ><A HREF="migration52.new-extensions.html" >New Extensions</A ></DT ><DT ><A HREF="migration52.classes.html" >New Classes</A ></DT ><DT ><A HREF="migration52.global-constants.html" >New Global Constants</A ></DT ><DT ><A HREF="migration52.class-constants.html" >New Class Constants</A ></DT ><DT ><A HREF="migration52.newconf.html" >New INI Configuration Directives</A ></DT ><DT ><A HREF="migration52.errorrep.html" >Error Reporting</A ></DT ><DT ><A HREF="migration52.other.html" >Other Enhancements</A ></DT ></DL ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="migration52.changes" >What has changed in PHP 5.2.x</A ></H1 ><P > Most improvements in PHP 5.2.x have no impact on existing code. There are a <A HREF="migration52.incompatible.html" >few incompatibilities</A > and <A HREF="migration52.error-messages.html" >new error messages</A > that should be considered, and code should be tested before switching PHP versions in production environments. </P ><P > If the system is being upgraded from PHP 5.0.x, the text titled <A HREF="http://php.net/README_UPGRADE_51.php" TARGET="_top" >Upgrade Notes for PHP 5.1.x</A > should also be read. </P ><P > Similarly, if the system is being upgraded from PHP 4, the manual section titled <A HREF="migration5.html" >Migrating from PHP 4 to PHP 5</A > should be read as well. </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="history.php.publications.html" ACCESSKEY="P" >上一页</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >起始页</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="migration52.incompatible.html" ACCESSKEY="N" >下一页</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >PHP 相关文章</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="appendices.html" ACCESSKEY="U" >上一级</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Backward Incompatible Changes</TD ></TR ></TABLE ></DIV ></BODY ></HTML >