cvs: phpdoc-zh /appendices migration.xml
| From: | Xiaoyu Huang | Date: | Fri, 02 Aug 2002 01:58:34 +0000 |
| Subject: | cvs: phpdoc-zh /appendices migration.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-246@lists.php.net to get a copy of this message | ||
class007 Thu Aug 1 21:58:34 2002 EDT
Modified files:
/phpdoc-zh/appendices migration.xml
Log:
working
Index: phpdoc-zh/appendices/migration.xml
diff -u phpdoc-zh/appendices/migration.xml:1.1 phpdoc-zh/appendices/migration.xml:1.2
--- phpdoc-zh/appendices/migration.xml:1.1 Thu Aug 1 07:09:21 2002
+++ phpdoc-zh/appendices/migration.xml Thu Aug 1 21:58:34 2002
@@ -1,49 +1,33 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
+<!-- $AUTHOR$ -->
+<!-- EN-Revision: 1.1 Maintainer: class007 Status: ready -->
<appendix id="migration">
<title>´Ó PHP/FI 2 ÒÆÖ²µ½ PHP 3</title>
<section id="migration.about">
- <title>About the incompatibilities in 3.0</title>
+ <title>¹ØÓÚ PHP 3.0 µÄ²»¼æÈÝÐÔ</title>
<simpara>
- PHP 3.0 is rewritten from the ground up. It has a proper parser
- that is much more robust and consistent than 2.0's. 3.0 is also
- significantly faster, and uses less memory. However, some of
- these improvements have not been possible without compatibility
- changes, both in syntax and functionality.
+ PHP 3.0 ´Óµ×²ãÖØÐ´ÁË´úÂë¡£ËüÓÐ×Å±È 2.0
¸ü½¡×³ºÍͳһµÄ½âÎöÆ÷¡£3.0
Ò²¸ü¿ì¡¢Õ¼ÓøüÉÙµÄÄÚ´æ¡£µ«ÊÇ£¬ÕâЩ¸Ä½øÄÑÒÔ±ÜÃâ¼æÈÝÐÔµÄÏ÷Èõ£¬°üÀ¨Óï·¨ºÍ¹¦ÄÜÉϼæÈÝÐÔµÄÏ÷Èõ¡£
</simpara>
<simpara>
- In addition, PHP's developers have tried to clean up both PHP's
- syntax and semantics in version 3.0, and this has also caused some
- incompatibilities. In the long run, we believe that these changes
- are for the better.
- </simpara>
+ ÁíÍ⣬PHP µÄ¿ª·¢Õß³¢ÊÔÔÚ°æ±¾ 3.0 ÖÐʹµÃ PHP
µÄÓï·¨ºÍÓïÒå¸ü¼Ó¼ò½à£¬ÕâÒ²µ¼ÖÂÁËһЩ²»¼æÈÝ¡£×îºó£¬ÎÒÃÇÏàÐÅÕâЩ¸Ä±äÊÇÖµµÃµÄ¡£
</simpara>
<simpara>
- This chapter will try to guide you through the incompatibilities
- you might run into when going from PHP/FI 2.0 to PHP 3.0 and help
- you resolve them. New features are not mentioned here unless
- necessary.
+ ±¾Õ½«»áÖ¸µ¼ÄãÈÏʶ´Ó PHP/FI 2.0 µ½ PHP 3.0
Éý¼¶Ëù´øÀ´µÄµÄÕϰ²¢°ïÖúÄã½â¾öËü¡£ÕâÀïûÓÐÌáµ½ 3.0
µÄй¦ÄÜ£¬³ý·Ç±ØÒª¡£
</simpara>
<simpara>
- A conversion program that can automatically convert your old
- PHP/FI 2.0 scripts exists. It can be found in the
- <filename class="directory">convertor</filename> subdirectory of the PHP
3.0
- distribution. This program only catches the syntax changes though,
- so you should read this chapter carefully anyway.
- </simpara>
+ Ò»¸öת»»³ÌÐò¿ÉÒÔ°ïÖúÄú×Ô¶¯×ª»»¾ÉÓÐµÄ PHP/FI 2.0
½Å±¾¡£Õâ¸ö³ÌÐò¿ÉÒÔÔÚ PHP 3.0 ·¢²¼°üÖÐµÄ <filename
class="directory">convertor</filename>
×ÓĿ¼ÖÐÕÒµ½¡£¿ÉÊÇ£¬¸Ã³ÌÐòÖ»ÄÜת»»Óï·¨µÄ¸Ä±ä£¬Òò´Ë£¬ÄúÈÔÈ»ÐèÒª×ÐϸÔĶÁÏÂÃæµÄ²¿·Ö¡£
</simpara>
</section>
<section id="migration.startendtags">
- <title>Start/end tags</title>
+ <title>¿ªÊ¼/½áÊø±ê¼Ç</title>
<para>
- The first thing you probably will notice is that PHP's start and end
- tags have changed. The old <literal><? ></literal> form has been
- replaced by three new possible forms:
+ Ê×ÏÈÄúÓ¦¸Ã×¢Òâ PHP µÄ¿ªÊ¼/½áÊø±ê¼ÇÒѾ¸Ä±ä¡£ÀϵÄ
<literal><? ></literal>
ÒѾ±»ÈýÖÖеÄÐÎʽËùÌæ»»£º
<example>
<title>Migration: old start/end tags</title>
<programlisting role="php">