cvs: phpdoc-zh /language constants.xml

From: Date: Mon, 15 Dec 2008 04:36:03 +0000
Subject: cvs: phpdoc-zh /language constants.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-3100@lists.php.net to get a copy of this message
eniac2008 Mon Dec 15 04:36:03 2008 UTC Modified files: /phpdoc-zh/language constants.xml Log: Remove the unwanted BOM header Translate some english message in the sample code http://cvs.php.net/viewvc.cgi/phpdoc-zh/language/constants.xml?r1=1.17&r2=1.18&diff_format=u Index: phpdoc-zh/language/constants.xml diff -u phpdoc-zh/language/constants.xml:1.17 phpdoc-zh/language/constants.xml:1.18 --- phpdoc-zh/language/constants.xml:1.17 Sun Dec 14 14:00:41 2008 +++ phpdoc-zh/language/constants.xml Mon Dec 15 04:36:02 2008 @@ -1,5 +1,5 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.17 $ --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.18 $ --> <!-- $Author: eniac2008 $ --> <!-- EN-Revision: 1.55 Maintainer: eniac2008 Status: ready --> <!-- CREDITS: dallas,bjori --> @@ -29,9 +29,9 @@ // 非法的常量名 define("2FOO", "something"); -// This is valid, but should be avoided: -// PHP may one day provide a magical constant -// that will break your script +// 下面的定义是合法的,但应该避免这样做:(自定义常量不要以__开头) +// 也许将来有一天PHP会定义一个__FOO__的魔术常量 +// 这样就会与你的代码相冲突 define("__FOO__", "something"); ?> @@ -121,7 +121,7 @@ <?php define("CONSTANT", "Hello world."); echo CONSTANT; // outputs "Hello world." -echo Constant; // outputs "Constant" and issues a notice. +echo Constant; // 输出 "Constant" 并发出一个提示性信息 ?> ]]> </programlisting>

« previous php.doc.zh (#3100) next »