cvs: phpdoc-zh /reference/math reference.xml /reference/mysql reference.xml /reference/oci8 constants.xml reference.xml /reference/oracle
reference.xml /reference/outcontrol reference.xml /reference/pcre reference.xml /reference/pgsql constants.xml reference.xml /reference/regex
reference.xml /reference/snmp reference.xml /reference/strings reference.xml /reference/url reference.xml /reference/var reference.xml
/reference/w32api reference.xml /reference/xml reference.xml /reference/xmlrpc reference.xml
| From: | Dallas Thunder | Date: | Mon, 29 Aug 2005 21:28:43 +0000 |
| Subject: | cvs: phpdoc-zh /reference/math reference.xml /reference/mysql reference.xml /reference/oci8 constants.xml reference.xml /reference/oracle reference.xml /reference/outcontrol reference.xml /reference/pcre reference.xml /reference/pgsql constants.xml reference.xml /reference/regex reference.xml /reference/snmp reference.xml /reference/strings reference.xml /reference/url reference.xml /reference/var reference.xml /reference/w32api reference.xml /reference/xml reference.xml /reference/xmlrpc reference.xml |
||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-2553@lists.php.net to get a copy of this message | ||
dallas Mon Aug 29 17:28:43 2005 EDT
Modified files:
/phpdoc-zh/reference/math reference.xml
/phpdoc-zh/reference/mysql reference.xml
/phpdoc-zh/reference/oci8 constants.xml reference.xml
/phpdoc-zh/reference/oracle reference.xml
/phpdoc-zh/reference/outcontrol reference.xml
/phpdoc-zh/reference/pcre reference.xml
/phpdoc-zh/reference/pgsql constants.xml reference.xml
/phpdoc-zh/reference/regex reference.xml
/phpdoc-zh/reference/snmp reference.xml
/phpdoc-zh/reference/strings reference.xml
/phpdoc-zh/reference/url reference.xml
/phpdoc-zh/reference/var reference.xml
/phpdoc-zh/reference/w32api reference.xml
/phpdoc-zh/reference/xml reference.xml
/phpdoc-zh/reference/xmlrpc reference.xml
Log:
Updated.
http://cvs.php.net/diff.php/phpdoc-zh/reference/math/reference.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-zh/reference/math/reference.xml diff -u phpdoc-zh/reference/math/reference.xml:1.6 phpdoc-zh/reference/math/reference.xml:1.7 --- phpdoc-zh/reference/math/reference.xml:1.6 Fri Mar 21 01:56:22 2003 +++ phpdoc-zh/reference/math/reference.xml Mon Aug 29 17:28:39 2005 @@ -1,28 +1,31 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Author: gregory $ --> -<!-- $Revision: 1.6 $ --> +<!-- $Author: dallas $ --> +<!-- $Revision: 1.7 $ --> <!-- EN-Revision: 1.6 Maintainer: yincheng Status: ready --> <reference id="ref.math"> - <title>Êýѧº¯Êý¿â</title> + <title>Math Êýѧº¯Êý</title> <titleabbrev>Math</titleabbrev> - + <partintro> <section id="math.intro"> &reftitle.intro; <para> - ÕâЩÊýѧº¯Êý½öÄÜ´¦ÀíÔÚÄã¼ÆËã»úÉÏ<type>ÕûÐÍ</type>ºÍ<type>¸¡µãÐÍ</type>·¶Î§ÄÚµÄÖµ£¨Õ⵱ǰ·ûºÏ - C ÀàÐÍÖÐµÄ long ºÍ double)¡£Èç¹ûÄãÒª´¦Àí¸ü´óµÄÊý×Ö£¬²Î¿´<link linkend="ref.bc">ÈÎÒ⾫¶ÈÊýѧº¯Êý¿â</link>¡£ + ÕâЩÊýѧº¯Êý½öÄÜ´¦ÀíÔÚÄã¼ÆËã»úÉÏ <type>integer</type> ºÍ + <type>float</type>·¶Î§ÄÚµÄÖµ£¨Õ⵱ǰ·ûºÏ + C ÀàÐÍÖÐµÄ long ºÍ double)¡£Èç¹ûÒª´¦Àí¸ü´óµÄÊý×Ö£¬²Î¿´<link + linkend="ref.bc">ÈÎÒ⾫¶ÈÊýѧº¯Êý</link>¡£ </para> - <simpara> - Çë²ÎÔÄÊÖ²áÖС°<link linkend="language.operators.arithmetic">ËãÊõ²Ù×÷·û</link>¡±µÄÓйØÕ½Ú. - </simpara> + <simpara> + Çë²ÎÔÄÊÖ²áÖÐ<link + linkend="language.operators.arithmetic">ËãÊõÔËËã·û</link>µÄÓйØÕ½ڡ£ + </simpara> </section> <section id="math.requirements"> &reftitle.required; &no.requirement; </section> - + <section id="math.installation"> &reftitle.install; &no.install; http://cvs.php.net/diff.php/phpdoc-zh/reference/mysql/reference.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-zh/reference/mysql/reference.xml diff -u phpdoc-zh/reference/mysql/reference.xml:1.10 phpdoc-zh/reference/mysql/reference.xml:1.11 --- phpdoc-zh/reference/mysql/reference.xml:1.10 Wed Aug 10 20:43:19 2005 +++ phpdoc-zh/reference/mysql/reference.xml Mon Aug 29 17:28:40 2005 @@ -1,16 +1,16 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.21 Maintainer: Gregory Status: ready --> <reference id="ref.mysql"> - <title>MySQL º¯Êý¿â</title> + <title>MySQL º¯Êý</title> <titleabbrev>MySQL</titleabbrev> <partintro> <section id="mysql.intro"> &reftitle.intro; <para> - Äã¿ÉÒÔʹÓøú¯Êý¿â·ÃÎÊ MySQL Êý¾Ý¿â·þÎñÆ÷¡£ÓÐ¹Ø MySQL µÄÏêϸÐÅÏ¢¿ÉÒÔµ½ <ulink + ¿ÉÒÔʹÓñ¾ÀຯÊý·ÃÎÊ MySQL Êý¾Ý¿â·þÎñÆ÷¡£ÓÐ¹Ø MySQL µÄÏêϸÐÅÏ¢¿ÉÒÔµ½ <ulink url="&url.mysql;">&url.mysql;</ulink> ²éѯ¡£ </para> <para> @@ -22,7 +22,7 @@ <section id="mysql.requirements"> &reftitle.required; <para> - ΪÁËÄܹ»Ë³ÀûµÄʹÓøú¯Êý¿â£¬Äã±ØÐëÔÚ±àÒë PHP µÄʱºòÌí¼Ó MySQL µÄÖ§³Ö¡£ + ΪÁËÄܹ»Ë³ÀûµÄʹÓñ¾ÀຯÊý£¬±ØÐëÔÚ±àÒë PHP µÄʱºòÌí¼Ó MySQL µÄÖ§³Ö¡£ </para> </section> @@ -54,7 +54,7 @@ <section id="mysql.examples"> &reftitle.examples; <para> - Õâ¸ö¼òµ¥µÄÀý×ÓÑÝʾÈçºÎÁ¬½ÓÊý¾Ý¿â£¬Ö´ÐвéѯÓï¾ä£¬´òÓ¡·µ»Ø½á¹û¼¯ºÍ¶Ï¿ªÊý¾Ý¿âµÈһϵÁлù±¾µÄ + ÏÂÃæµÄ¼òµ¥Àý×ÓÑÝʾÈçºÎÁ¬½ÓÊý¾Ý¿â£¬Ö´ÐвéѯÓï¾ä£¬´òÓ¡·µ»Ø½á¹û¼¯ºÍ¶Ï¿ªÊý¾Ý¿âµÈһϵÁлù±¾µÄ MySQL ²Ù×÷¡£ <example> <title>MySQL À©Õ¹·¶Àý</title> http://cvs.php.net/diff.php/phpdoc-zh/reference/oci8/constants.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-zh/reference/oci8/constants.xml diff -u phpdoc-zh/reference/oci8/constants.xml:1.2 phpdoc-zh/reference/oci8/constants.xml:1.3 --- phpdoc-zh/reference/oci8/constants.xml:1.2 Fri Jun 27 01:28:35 2003 +++ phpdoc-zh/reference/oci8/constants.xml Mon Aug 29 17:28:41 2005 @@ -1,349 +1,387 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- $Author: yincheng $ --> -<!-- EN-Revision: 1.2 Maintainer: yincheng Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.5 Maintainer: yincheng Status: partial --> <section id="oci8.constants"> &reftitle.constants; &extension.constants; <variablelist> <varlistentry> <term> - <constant>OCI_DEFAULT</constant> + <constant>OCI_DEFAULT</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Statement execution mode. Statement is not committed + automatically when using this mode. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_DESCRIBE_ONLY</constant> + <constant>OCI_DESCRIBE_ONLY</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Statement execution mode. Use this mode if you don't want + to really execute query, but only get select-list description. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_COMMIT_ON_SUCCESS</constant> + <constant>OCI_COMMIT_ON_SUCCESS</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Statement execution mode. Statement is automatically committed after + <function>oci_execute</function> call. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_EXACT_FETCH</constant> + <constant>OCI_EXACT_FETCH</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Statement fetch mode. Used when the application knows + in advance exactly how many rows it will be fetching. + This mode turns prefetching off for Oracle release 8 + or later mode. Cursor is cancelled after the desired + rows are fetched and may result in reduced server-side + resource usage. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>SQLT_BFILEE</constant> + <constant>OCI_SYSDATE</constant> (<type>integer</type>) </term> <listitem> <simpara> - + </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>SQLT_CFILEE</constant> + <constant>OCI_B_BFILE</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_bind_by_name</function> when + binding BFILEs. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>SQLT_CLOB</constant> + <constant>OCI_B_CFILEE</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_bind_by_name</function> when + binding CFILEs. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>SQLT_BLOB</constant> + <constant>OCI_B_CLOB</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_bind_by_name</function> when + binding CLOBs. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>SQLT_RDD</constant> + <constant>OCI_B_BLOB</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_bind_by_name</function> when + binding BLOBs. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_B_SQLT_NTY</constant> + <constant>OCI_B_ROWID</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_bind_by_name</function> when + binding ROWIDs. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_SYSDATE</constant> + <constant>OCI_B_CURSOR</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_bind_by_name</function> when + binding cursors, previously allocated with <function>oci_new_descriptor</function>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_B_BFILE</constant> + <constant>OCI_B_NTY</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_bind_by_name</function> when + binding named data types. Note: in PHP < 5.0 it was called + <constant>OCI_B_SQLT_NTY</constant>. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>OCI_B_BIN</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_B_CFILEE</constant> + <constant>SQLT_BFILEE</constant> (<type>integer</type>) </term> <listitem> <simpara> - + The same as <constant>OCI_B_BFILE</constant>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_B_CLOB</constant> + <constant>SQLT_CFILEE</constant> (<type>integer</type>) </term> <listitem> <simpara> - + The same as <constant>OCI_B_CFILEE</constant>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_B_BLOB</constant> + <constant>SQLT_CLOB</constant> (<type>integer</type>) </term> <listitem> <simpara> - + The same as <constant>OCI_B_CLOB</constant>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_B_ROWID</constant> + <constant>SQLT_BLOB</constant> (<type>integer</type>) </term> <listitem> <simpara> - + The same as <constant>OCI_B_BLOB</constant>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_B_CURSOR</constant> + <constant>SQLT_RDD</constant> (<type>integer</type>) </term> <listitem> <simpara> - + The same as <constant>OCI_B_ROWID</constant>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_B_BIN</constant> + <constant>SQLT_NTY</constant> (<type>integer</type>) </term> <listitem> <simpara> - + The same as <constant>OCI_B_NTY</constant>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_FETCHSTATEMENT_BY_COLUMN</constant> + <constant>OCI_FETCHSTATEMENT_BY_COLUMN</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Default mode of <function>oci_fetch_all</function>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_FETCHSTATEMENT_BY_ROW</constant> + <constant>OCI_FETCHSTATEMENT_BY_ROW</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Alternative mode of <function>oci_fetch_all</function>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_ASSOC</constant> + <constant>OCI_ASSOC</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_fetch_all</function> and + <function>oci_fetch_array</function> to get an associative + array as a result. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_NUM</constant> + <constant>OCI_NUM</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_fetch_all</function> and + <function>oci_fetch_array</function> to get an enumerated + array as a result. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_BOTH</constant> + <constant>OCI_BOTH</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_fetch_all</function> and + <function>oci_fetch_array</function> to get an array with + both associative and number indices. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_RETURN_NULLS</constant> + <constant>OCI_RETURN_NULLS</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_fetch_array</function> to get + empty array elements if field's value is &null;. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_RETURN_LOBS</constant> + <constant>OCI_RETURN_LOBS</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_fetch_array</function> to get + value of LOB instead of the descriptor. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_DTYPE_FILE</constant> + <constant>OCI_DTYPE_FILE</constant> (<type>integer</type>) </term> <listitem> <simpara> - + This flag tells <function>oci_new_descriptor</function> to + initialize new FILE descriptor. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_DTYPE_LOB</constant> + <constant>OCI_DTYPE_LOB</constant> (<type>integer</type>) </term> <listitem> <simpara> - + This flag tells <function>oci_new_descriptor</function> to + initialize new LOB descriptor. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_DTYPE_ROWID</constant> + <constant>OCI_DTYPE_ROWID</constant> (<type>integer</type>) </term> <listitem> <simpara> - + This flag tells <function>oci_new_descriptor</function> to + initialize new ROWID descriptor. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_D_FILE</constant> + <constant>OCI_D_FILE</constant> (<type>integer</type>) </term> <listitem> <simpara> - + The same as <constant>OCI_DTYPE_FILE</constant>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_D_LOB</constant> + <constant>OCI_D_LOB</constant> (<type>integer</type>) </term> <listitem> <simpara> - + The same as <constant>OCI_DTYPE_LOB</constant>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_D_ROWID</constant> + <constant>OCI_D_ROWID</constant> (<type>integer</type>) </term> <listitem> <simpara> - + The same as <constant>OCI_DTYPE_ROWID</constant>. </simpara> </listitem> </varlistentry> http://cvs.php.net/diff.php/phpdoc-zh/reference/oci8/reference.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-zh/reference/oci8/reference.xml diff -u phpdoc-zh/reference/oci8/reference.xml:1.8 phpdoc-zh/reference/oci8/reference.xml:1.9 --- phpdoc-zh/reference/oci8/reference.xml:1.8 Thu Jul 7 03:54:17 2005 +++ phpdoc-zh/reference/oci8/reference.xml Mon Aug 29 17:28:41 2005 @@ -1,20 +1,20 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.8 $ --> -<!-- $Author: yincheng $ --> +<!-- $Revision: 1.9 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.13 Maintainer: yincheng Status: ready --> <reference id="ref.oci8"> - <title>Oracle 8 º¯Êý¿â</title> + <title>OCI8 Oracle º¯Êý</title> <titleabbrev>OCI8</titleabbrev> <partintro> <section id="oci8.intro"> &reftitle.intro; <para> - ÕâЩº¯ÊýÔÊÐíÄã·ÃÎÊ Oracle9,Oracle8 ºÍ Oracle7 - Êý¾Ý¿â¡£ÕâЩº¯ÊýʹÓà Oracle Call Interface (OCI)¡£ + ±¾ÀຯÊýÔÊÐíÄã·ÃÎÊ Oracle9,Oracle8 ºÍ Oracle7 + Êý¾Ý¿â¡£±¾ÀຯÊýʹÓà Oracle Call Interface£¨OCI£©¡£ </para> <para> - ¸ÃÀ©Õ¹±È <link linkend="ref.oracle">¾É°æ Oracle</link>À©Õ¹¸üÁé»î¡£Ö§³ÖÏò + ¸ÃÀ©Õ¹±È<link linkend="ref.oracle">¾É°æ Oracle</link> À©Õ¹¸üÁé»î¡£Ö§³ÖÏò Oracle λÖñêÖ¾·û°ó¶¨¾Ö²¿ºÍÈ«¾Ö PHP ±äÁ¿£¬È«ÃæÖ§³Ö LOB¡¢FILE ºÍ ROWID£¬ÔÊÐíÓû§Ê¹ÓÃÓû§×Ô¶¨ÒåµÄ±äÁ¿¡£ ÄãÓ¦¸Ã¾¡¿ÉÄܵÄʹÓÃÕâ¸öÀ©Õ¹À´´úÌæ @@ -72,13 +72,13 @@ <note> <title>Èç¹ûÄãµÄ web ·þÎñÆ÷²»Äܹ»Æô¶¯»òÕßÔÚÆô¶¯µÄʱºò±ÀÀ£</title> <para> - ¼ì²é Apache ÊÇ·ñʹÓÃÁË pthread ¿â: + ¼ì²é Apache ÊÇ·ñʹÓÃÁË pthread ¿â: </para> <para> <informalexample> <screen> <![CDATA[ -# ldd /www/apache/bin/httpd +# ldd /www/apache/bin/httpd libpthread.so.0 => /lib/libpthread.so.0 (0x4001c000) libm.so.6 => /lib/libm.so.6 (0x4002f000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x4004c000) @@ -111,7 +111,7 @@ </para> </note> </section> - + &reference.oci8.configure; <section id="oci8.configuration"> @@ -174,7 +174,7 @@ '$postalcode', '$country', :error_code );end;"); // This calls stored procedure sp_newaddress, with :address_id being an -// in/out variable and :error_code being an out variable. +// in/out variable and :error_code being an out variable. // Then you do the binding: OCIBindByName($sth, ":address_id", $addr_id, 10); http://cvs.php.net/diff.php/phpdoc-zh/reference/oracle/reference.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-zh/reference/oracle/reference.xml diff -u phpdoc-zh/reference/oracle/reference.xml:1.4 phpdoc-zh/reference/oracle/reference.xml:1.5 --- phpdoc-zh/reference/oracle/reference.xml:1.4 Wed Apr 27 20:56:03 2005 +++ phpdoc-zh/reference/oracle/reference.xml Mon Aug 29 17:28:41 2005 @@ -1,23 +1,23 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.4 $ --> -<!-- $Author: class007 $ --> +<!-- $Revision: 1.5 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.5 Maintainer: class007 Status: ready --> <reference id="ref.oracle"> - <title>Oracle º¯Êý¿â</title> + <title>Oracle º¯Êý</title> <titleabbrev>Oracle</titleabbrev> - + <partintro> <section id="oracle.intro"> &reftitle.intro; <para> -¸ÃÀ©Õ¹Ôö¼Ó¶Ô Oracle Êý¾Ý¿â·þÎñÆ÷·ÃÎʵÄÖ§³Ö¡£²Î¼û <link linkend="ref.oci8">OCI8</link> À©Õ¹¡£ + ±¾À©Õ¹Ôö¼Ó¶Ô Oracle Êý¾Ý¿â·þÎñÆ÷·ÃÎʵÄÖ§³Ö¡£²Î¼û <link linkend="ref.oci8">OCI8</link> À©Õ¹¡£ </para> </section> &reference.oracle.configure; - + &reference.oracle.constants; - + </partintro> &reference.oracle.functions; http://cvs.php.net/diff.php/phpdoc-zh/reference/outcontrol/reference.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-zh/reference/outcontrol/reference.xml diff -u phpdoc-zh/reference/outcontrol/reference.xml:1.6 phpdoc-zh/reference/outcontrol/reference.xml:1.7 --- phpdoc-zh/reference/outcontrol/reference.xml:1.6 Fri Nov 26 01:56:16 2004 +++ phpdoc-zh/reference/outcontrol/reference.xml Mon Aug 29 17:28:41 2005 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.6 $ --> -<!-- $Author: zhouhao007 $ --> +<!-- $Revision: 1.7 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.12 Maintainer: micky Status: ready --> <reference id="ref.outcontrol"> - <title>Êä³ö¿ØÖƺ¯Êý</title> + <title>Output Control Êä³ö¿ØÖƺ¯Êý</title> <titleabbrev>Output Control</titleabbrev> <partintro> http://cvs.php.net/diff.php/phpdoc-zh/reference/pcre/reference.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-zh/reference/pcre/reference.xml diff -u phpdoc-zh/reference/pcre/reference.xml:1.3 phpdoc-zh/reference/pcre/reference.xml:1.4 --- phpdoc-zh/reference/pcre/reference.xml:1.3 Fri Aug 19 13:02:25 2005 +++ phpdoc-zh/reference/pcre/reference.xml Mon Aug 29 17:28:41 2005 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.12 Maintainer: dallas Status: ready --> <reference id="ref.pcre"> - <title>ÕýÔò±í´ïʽº¯Êý¿â£¨Perl ¼æÈÝ£©</title> + <title>PCRE ÕýÔò±í´ïʽº¯Êý£¨Perl ¼æÈÝ£©</title> <titleabbrev>PCRE</titleabbrev> <partintro> @@ -26,7 +26,7 @@ </para> <warning> <para> - ÒªÁôÒâµ½ PCRE µÄһЩ¾ÖÏÞ¡£¸ü¶àÐÅÏ¢¼û <ulink + ÒªÁôÒâµ½ PCRE µÄһЩ¾ÖÏÞ¡£¸ü¶àÐÅÏ¢¼û <ulink url="&url.pcre.man;">&url.pcre.man;</ulink>¡£ </para> </warning> http://cvs.php.net/diff.php/phpdoc-zh/reference/pgsql/constants.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-zh/reference/pgsql/constants.xml diff -u phpdoc-zh/reference/pgsql/constants.xml:1.4 phpdoc-zh/reference/pgsql/constants.xml:1.5 --- phpdoc-zh/reference/pgsql/constants.xml:1.4 Tue Jul 22 22:02:32 2003 +++ phpdoc-zh/reference/pgsql/constants.xml Mon Aug 29 17:28:41 2005 @@ -1,209 +1,543 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- $Author: yincheng $ --> -<!-- EN-Revision: 1.2 Maintainer: dallas Status: ready --> +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.5 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.8 Maintainer: dallas Status: partial --> <section id="pgsql.constants"> &reftitle.constants; &extension.constants; + <variablelist> <varlistentry> <term> - <constant>PGSQL_ASSOC</constant> + <constant>PGSQL_ASSOC</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_fetch_array</function>. Return an associative array of field + names and values. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_NUM</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_fetch_array</function>. Return a numerically indexed array of field + numbers and values. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_BOTH</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_fetch_array</function>. Return an array of field values + that is both numerically indexed (by field number) and associated (by field name). + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_CONNECT_FORCE_NEW</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Passed to <function>pg_connect</function> to force the creation of a new connection, + rather then re-using an existing identical connection. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_NUM</constant> + <constant>PGSQL_CONNECTION_BAD</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_connection_status</function> indicating that the database + connection is in an invalid state. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_BOTH</constant> + <constant>PGSQL_CONNECTION_OK</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_connection_status</function> indicating that the database + connection is in a valid state. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_CONNECTION_BAD</constant> + <constant>PGSQL_SEEK_SET</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Passed to <function>pg_lo_seek</function>. Seek operation is to begin + from the start of the object. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_CONNECTION_OK</constant> + <constant>PGSQL_SEEK_CUR</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Passed to <function>pg_lo_seek</function>. Seek operation is to begin + from the current position. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_SEEK_SET</constant> + <constant>PGSQL_SEEK_END</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Passed to <function>pg_lo_seek</function>. Seek operation is to begin + from the end of the object. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_SEEK_CUR</constant> + <constant>PGSQL_EMPTY_QUERY</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_result_status</function>. The string sent to the server + was empty. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_SEEK_END</constant> + <constant>PGSQL_COMMAND_OK</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_result_status</function>. Successful completion of a + command returning no data. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_ESCAPE_STRING</constant> + <constant>PGSQL_TUPLES_OK</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_result_status</function>. Successful completion of a command + returning data (such as a <literal>SELECT</literal> or <literal>SHOW</literal>). </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_ESCAPE_BYTEA</constant> + <constant>PGSQL_COPY_OUT</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_result_status</function>. Copy Out (from server) data + transfer started. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_EMPTY_QUERY</constant> + <constant>PGSQL_COPY_IN</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_result_status</function>. Copy In (to server) data + transfer started. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_COMMAND_OK</constant> + <constant>PGSQL_BAD_RESPONSE</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_result_status</function>. The server's response + was not understood. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_TUPLES_OK</constant> + <constant>PGSQL_NONFATAL_ERROR</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_result_status</function>. A nonfatal error + (a notice or warning) occurred. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_COPY_OUT</constant> + <constant>PGSQL_FATAL_ERROR</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_result_status</function>. A fatal error + occurred. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_COPY_IN</constant> + <constant>PGSQL_TRANSACTION_IDLE</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_transaction_status</function>. Connection is + currently idle, not in a transaction. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_BAD_RESPONSE</constant> + <constant>PGSQL_TRANSACTION_ACTIVE</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_transaction_status</function>. A command + is in progress on the connection. A query has been sent via the connection + and not yet completed. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_NONFATAL_ERROR</constant> + <constant>PGSQL_TRANSACTION_INTRANS</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_transaction_status</function>. The connection + is idle, in a transaction block. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_FATAL_ERROR</constant> + <constant>PGSQL_TRANSACTION_INERROR</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_transaction_status</function>. The connection + is idle, in a failed transaction block. </simpara> </listitem> </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_TRANSACTION_UNKNOWN</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Returned by <function>pg_transaction_status</function>. The connection + is bad. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_SEVERITY</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + The severity; the field contents are <literal>ERROR</literal>, + <literal>FATAL</literal>, or <literal>PANIC</literal> (in an error message), or + <literal>WARNING</literal>, <literal>NOTICE</literal>, <literal>DEBUG</literal>, + <literal>INFO</literal>, or <literal>LOG</literal> (in a notice message), or a localized + translation of one of these. Always present. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_SQLSTATE</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + The SQLSTATE code for the error. The SQLSTATE code identifies the type of error + that has occurred; it can be used by front-end applications to perform specific + operations (such as error handling) in response to a particular database error. + This field is not localizable, and is always present. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_MESSAGE_PRIMARY</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + The primary human-readable error message (typically one line). Always present. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_MESSAGE_DETAIL</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + Detail: an optional secondary error message carrying more detail about the problem. May run to multiple lines. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_MESSAGE_HINT</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + Hint: an optional suggestion what to do about the problem. This is intended to differ from detail in that it + offers advice (potentially inappropriate) rather than hard facts. May run to multiple lines. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_STATEMENT_POSITION</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + A string containing a decimal integer indicating an error cursor position as an index into the original + statement string. The first character has index 1, and positions are measured in characters not bytes. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_INTERNAL_POSITION</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + This is defined the same as the <constant>PG_DIAG_STATEMENT_POSITION</constant> field, but + it is used when the cursor position refers to an internally generated + command rather than the one submitted by the client. The + <constant>PG_DIAG_INTERNAL_QUERY</constant> field will always appear when this + field appears. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_INTERNAL_QUERY</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + The text of a failed internally-generated command. This could be, for example, a + SQL query issued by a PL/pgSQL function. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_CONTEXT</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + An indication of the context in which the error occurred. Presently + this includes a call stack traceback of active procedural language + functions and internally-generated queries. The trace is one entry + per line, most recent first. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_SOURCE_FILE</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + The file name of the PostgreSQL source-code location where the error + was reported. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_SOURCE_LINE</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + The line number of the PostgreSQL source-code location where the + error was reported. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_SOURCE_FUNCTION</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + The name of the PostgreSQL source-code function reporting the error. + </simpara> + </listitem> + </varlistentry> + + <varlistentry> + <term> + <constant>PGSQL_ERRORS_TERSE</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_set_error_verbosity</function>. + Specified that returned messages include severity, primary text, + and position only; this will normally fit on a single line. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_ERRORS_DEFAULT</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_set_error_verbosity</function>. + The default mode produces messages that include the above + plus any detail, hint, or context fields (these may span + multiple lines). + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_ERRORS_VERBOSE</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_set_error_verbosity</function>. + The verbose mode includes all available fields. + </simpara> + </listitem> + </varlistentry> + + <varlistentry> + <term> + <constant>PGSQL_STATUS_LONG</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_status</function>. Indicates that + numerical result code is desired. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_STATUS_STRING</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_status</function>. Indicates that + textual result command tag is desired. + </simpara> + </listitem> + </varlistentry> + + <varlistentry> + <term> + <constant>PGSQL_CONV_IGNORE_DEFAULT</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_convert</function>. + Ignore default values in the table during conversion. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_CONV_FORCE_NULL</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_convert</function>. + Use SQL <literal>NULL</literal> in place of an empty <type>string</type>. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_CONV_IGNORE_DEFAULT</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_convert</function>. + Ignore conversion of &null; into SQL <literal>NOT NULL</literal> columns. + </simpara> + </listitem> + </varlistentry> + </variablelist> </section> http://cvs.php.net/diff.php/phpdoc-zh/reference/pgsql/reference.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-zh/reference/pgsql/reference.xml diff -u phpdoc-zh/reference/pgsql/reference.xml:1.9 phpdoc-zh/reference/pgsql/reference.xml:1.10 --- phpdoc-zh/reference/pgsql/reference.xml:1.9 Sun Feb 23 09:48:43 2003 +++ phpdoc-zh/reference/pgsql/reference.xml Mon Aug 29 17:28:41 2005 @@ -1,49 +1,54 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.15 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.25 Maintainer: dallas Status: ready --> <!-- CREDITS: Gregory --> - <reference id="ref.pgsql"> - <title>PostgreSQL Êý¾Ý¿âº¯Êý¿â</title> - <titleabbrev>PostgreSQL</titleabbrev> - - <partintro> - <section id="pgsql.intro"> - &reftitle.intro; - <para> - PostgreSQL ÊÇÒ»¸ö¿ª·ÅÔ´ÂëµÄÃâ·ÑÊý¾Ý¿âϵͳ¡£Postgres - ×î³õÓɼÓÖÝ´óѧ²®¿ËÀû·ÖУ¼ÆËã»ú¿ÆÑ§Ïµ¿ª·¢£¬³«µ¼ÁËºÜ¶à¹ØÏµ¶ÔÏóµÄ¹ÛÄÕâЩ¹ÛÄîÏÖÔÚÒѾÓÃÔÚһЩÉÌÒµÊý¾Ý¿âϵͳÖС£ËüÌṩÁË - SQL92/SQL99 ÓïÑÔÖ§³Ö£¬ÊÂÎñ´¦Àí£¬ÒýÓü¯³É£¬´æ´¢¹ý³ÌÒÔ¼°ÀàÐÍÀ©Õ¹¡£PostgreSQL ÔòÊÇ - Postgres µÄÒ»¸ö¿ª·ÅÔ´´úÂëµÄºó´ú¡£ - </para> - </section> +<reference id="ref.pgsql"> + <title>PostgreSQL Êý¾Ý¿âº¯Êý</title> + <titleabbrev>PostgreSQL</titleabbrev> - <section id="pgsql.requirements"> - &reftitle.required; - <para> - ҪʹÓà PostgreSQL Ö§³Ö£¬ÐèÒª PostgreSQL 6.5 »ò¸üа汾£¬PostgreSQL 7.0 - »ò¸üа汾À´Ê¹ÓÃËùÓÐµÄ PostgreSQL Ä£¿é¡£PostgreSQL - Ö§³Ö¶àÖÖ×Ö·û±àÂë°üÀ¨¶à×Ö½Ú×Ö·û±àÂë¡£¹ØÓÚ PostgreSQL - µÄµ±Ç°°æ±¾ÒÔ¼°¸ü¶àÐÅÏ¢¼û <ulink url="&url.pgsql;">&url.pgsql;</ulink> - ÒÔ¼° <ulink url="&url.pgsql.techdocs;">&url.pgsql.techdocs;</ulink>¡£ - </para> - </section> + <partintro> + <section id="pgsql.intro"> + &reftitle.intro; + <para> + PostgreSQL ÊÇÒ»¸ö¿ª·ÅÔ´ÂëµÄÃâ·ÑÊý¾Ý¿âϵͳ¡£Postgres + ×î³õÓɼÓÖÝ´óѧ²®¿ËÀû·ÖУ¼ÆËã»ú¿ÆÑ§Ïµ¿ª·¢£¬³«µ¼ÁËºÜ¶à¹ØÏµ¶ÔÏóµÄ¹ÛÄÕâЩ¹ÛÄîÏÖÔÚÒѾÓÃÔÚһЩÉÌÒµÊý¾Ý¿âϵͳÖС£ËüÌṩÁË + SQL92/SQL99 ÓïÑÔÖ§³Ö£¬ÊÂÎñ´¦Àí£¬ÒýÓü¯³É£¬´æ´¢¹ý³ÌÒÔ¼°ÀàÐÍÀ©Õ¹¡£PostgreSQL ÔòÊÇ + Postgres µÄÒ»¸ö¿ª·ÅÔ´´úÂëµÄºó´ú¡£ + </para> + </section> - &reference.pgsql.configure; + <section id="pgsql.requirements"> + &reftitle.required; + <para> + ҪʹÓà PostgreSQL Ö§³Ö£¬ÐèÒª PostgreSQL 6.5 »ò¸üа汾£¬PostgreSQL 8.0 + »ò¸üа汾À´Ê¹ÓÃËùÓÐµÄ PostgreSQL Ä£¿é¡£PostgreSQL + Ö§³Ö¶àÖÖ×Ö·û±àÂë°üÀ¨¶à×Ö½Ú×Ö·û±àÂë¡£¹ØÓÚ PostgreSQL + µÄµ±Ç°°æ±¾ÒÔ¼°¸ü¶àÐÅÏ¢¼û <ulink url="&url.pgsql;">&url.pgsql;</ulink> + ÒÔ¼° <ulink url="&url.pgsql.manual;">PostgreSQL Îĵµ</ulink>¡£ + </para> + </section> + + &reference.pgsql.configure; - &reference.pgsql.ini; + &reference.pgsql.ini; - <section id="pgsql.using"> - <title>ʹÓ÷½·¨¼°Ìáʾ</title> - <warning> - <para> - ÓÉÓÚ notice message handling ´úÂëÖÐµÄ bug£¬²»ÍƼöÔÚ PHP 4.0.6 ÖÐʹÓà PostgreSQL Ä£¿é¡£Ê¹Óà 4.1.0 »ò¸üа汾¡£ - </para> - </warning> - <warning> - <para> - Ϊ·ûºÏµ±Ç°±àÂë±ê×¼£¬PostgreSQL º¯ÊýÃû³Æ½«ÔÚ 4.2.0 °æ±¾Öиı䡣´ó¶àÊýÐÂÃû³Æ½«¶à³öÒ»¸öÏ»®Ïߣ¬ÀýÈç pg_lo_open()¡£Ò»²¿·Öº¯ÊýÔò¸Ä±äÁËÃû³ÆÒÔ±£³ÖÒ»ÖÂÐÔ¡£ÀýÈç pg_exec() ¸ÄΪ pg_query()¡£Àϵĺ¯ÊýÃûÒÀÈ»¿ÉÒÔÔÚ 4.2.0 ºÍÒÔºóµÄÉÙÊý¼¸¸ö°æ±¾ÖÐʹÓ㬵«ÒÔºó¿ÉÄÜ»áɾ³ý¡£ - </para> + <section id="pgsql.using"> + <title>ʹÓ÷½·¨¼°Ìáʾ</title> + <warning> + <para> + ÓÉÓÚ notice message handling ´úÂëÖÐµÄ bug£¬²»ÍƼöÔÚ + PHP 4.0.6 ÖÐʹÓà PostgreSQL Ä£¿é¡£Ê¹Óà 4.1.0 »ò¸üа汾¡£ + </para> + </warning> + <warning> + <para> + Ϊ·ûºÏµ±Ç°±àÂë±ê×¼£¬PostgreSQL º¯ÊýÃû³Æ½«ÔÚ 4.2.0 + °æ±¾Öиı䡣´ó¶àÊýÐÂÃû³Æ½«¶à³öÒ»¸öÏ»®Ïߣ¬ÀýÈç + pg_lo_open()¡£Ò»²¿·Öº¯ÊýÔò¸Ä±äÁËÃû³ÆÒÔ±£³ÖÒ»ÖÂÐÔ¡£ÀýÈç + pg_exec() ¸ÄΪ pg_query()¡£Àϵĺ¯ÊýÃûÒÀÈ»¿ÉÒÔÔÚ 4.2.0 + ºÍÒÔºóµÄÉÙÊý¼¸¸ö°æ±¾ÖÐʹÓ㬵«ÒÔºó¿ÉÄÜ»áɾ³ý¡£ + </para> <table> <title>ÒѸıäµÄº¯ÊýÃû</title> <tgroup cols="2"> @@ -53,169 +58,174 @@ <entry>ÐÂÃû³Æ</entry> </row> </thead> - <tbody> - <row> - <entry><function>pg_exec</function></entry> - <entry><function>pg_query</function></entry> - </row> - <row> - <entry><function>pg_getlastoid</function></entry> - <entry><function>pg_last_oid</function></entry> - </row> - <row> - <entry><function>pg_cmdtuples</function></entry> - <entry><function>pg_affected_rows</function></entry> - </row> - <row> - <entry><function>pg_numrows</function></entry> - <entry><function>pg_num_rows</function></entry> - </row> - <row> - <entry><function>pg_numfields</function></entry> - <entry><function>pg_num_fields</function></entry> - </row> - <row> - <entry><function>pg_fieldname</function></entry> - <entry><function>pg_field_name</function></entry> - </row> - <row> - <entry><function>pg_fieldsize</function></entry> - <entry><function>pg_field_size</function></entry> - </row> - <row> - <entry><function>pg_fieldnum</function></entry> - <entry><function>pg_field_num</function></entry> - </row> - <row> - <entry><function>pg_fieldprtlen</function></entry> - <entry><function>pg_field_prtlen</function></entry> - </row> - <row> - <entry><function>pg_fieldisnull</function></entry> - <entry><function>pg_field_is_null</function></entry> - </row> - <row> - <entry><function>pg_freeresult</function></entry> - <entry><function>pg_free_result</function></entry> - </row> - <row> - <entry><function>pg_result</function></entry> - <entry><function>pg_fetch_result</function></entry> - </row> - <row> - <entry><function>pg_loreadall</function></entry> - <entry><function>pg_lo_read_all</function></entry> - </row> - <row> - <entry><function>pg_locreate</function></entry> - <entry><function>pg_lo_create</function></entry> - </row> - <row> - <entry><function>pg_lounlink</function></entry> - <entry><function>pg_lo_unlink</function></entry> - </row> - <row> - <entry><function>pg_loopen</function></entry> - <entry><function>pg_lo_open</function></entry> - </row> - <row> - <entry><function>pg_loclose</function></entry> - <entry><function>pg_lo_close</function></entry> - </row> - <row> - <entry><function>pg_loread</function></entry> - <entry><function>pg_lo_read</function></entry> - </row> - <row> - <entry><function>pg_lowrite</function></entry> - <entry><function>pg_lo_write</function></entry> - </row> - <row> - <entry><function>pg_loimport</function></entry> - <entry><function>pg_lo_import</function></entry> - </row> - <row> - <entry><function>pg_loexport</function></entry> - <entry><function>pg_lo_export</function></entry> - </row> - </tbody> - </tgroup> - </table> - <para> - ΪÒÔºóÖ§³ÖÒì²½Á¬½Ó£¬½«²»ÔÙÌᳫÓþÉÓ﷨ʹÓú¯Êý <function>pg_connect</function>/<function>pg_pconnect</function>¡£ÇëÓÃÁ¬½Ó×Ö·û´®×÷Ϊ²ÎÊýÀ´Ê¹Óú¯Êý <function>pg_connect</function> ºÍ <function>pg_pconnect</function>¡£ - </para> - </warning> - <para> - ²»ÊÇËùÓеİ汾¶¼Ö§³ÖËùÓеĺ¯Êý£¬ÕâºÍ libpq µÄ°æ±¾ºÍ±àÒë·½·¨Óйء£Èç¹û±àÒëÔ´´úÂëʱÉÙÁËÒ»¸öº¯Êý£¬ÄÇô libpq ¾Í²»Ö§³ÖÐèÒª¸Ãº¯ÊýµÄ¹¦ÄÜ¡£ - </para> - <para> - ²»ÒªÊ¹ÓÃ±È PostgreSQL ·þÎñÆ÷Á¬½ÓËù½ÓÊܸü¾É°æ±¾µÄ libpq Ò²ºÜÖØÒª¡£Èç¹ûÄãÓÃµÄ libpq °æ±¾±È PostgreSQL ·þÎñÆ÷Ô¤ÆÚµÄµÍ¾Í¿ÉÄܳöÏÖÎÊÌâ¡£ - </para> - <para> - PostgreSQL ÔÚ 6.3 (03/02/1998) °æÖ®ºóĬÈÏʹÓà unix domain sockets£¬Ä¬ÈÏ״̬ϲ»»á´ò¿ª TCP ¶Ë¿Ú¡£ÏÂÃæÕâÕűí˵Ã÷Á˸÷ÖÖн¨Á¬½ÓµÄ¿ÉÄÜÐÔ¡£TCP/IP socket ·ÅÔÚ <filename>/tmp/.s.PGSQL.5432</filename>¡£¸ÃÑ¡Ïî¿ÉÓà <command>postmaster</command> ÖÐµÄ '-i' ²ÎÊý´ò¿ª£¬Ëü±íʾ¡°¼àÊÓ TCP/IP ¶Ë¿ÚÒÔ¼° Unix domain socket¡±¡£ - <table> - <title>Postmaster ºÍ PHP</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Postmaster</entry> - <entry>PHP</entry> - <entry>״̬</entry> - </row> - </thead> - <tbody> - <row> - <entry>postmaster &</entry> - <entry>pg_connect("dbname=MyDbName");</entry> - <entry>OK</entry> - </row> - <row> - <entry>postmaster -i &</entry> - <entry>pg_connect("dbname=MyDbName");</entry> - <entry>OK</entry> - </row> - <row> - <entry>postmaster &</entry> - <entry>pg_connect("host=localhost dbname=MyDbName");</entry> - <entry> - Unable to connect to PostgreSQL server: connectDB() failed: - Is the postmaster running and accepting TCP/IP (with -i) - connection at 'localhost' on port '5432'? in - /path/to/file.php on line 20. - </entry> - </row> - <row> - <entry>postmaster -i &</entry> - <entry>pg_connect("host=localhost dbname=MyDbName");</entry> - <entry>OK</entry> - </row> - </tbody> - </tgroup> - </table> - </para> - <para> - µ½ PostgreSQL ·þÎñÆ÷µÄÁ¬½Ó¿ÉÒÔͨ¹ýÒÔÏÂÃüÁî´®ÖеIJÎÊý¶Ô½¨Á¢£º<command>$conn = - pg_connect("host=myHost port=myPort tty=myTTY options=myOptions - dbname=myDB user=myUser password=myPassword"); - </command> - </para> + <tbody> + <row> + <entry><function>pg_cmdtuples</function></entry> + <entry><function>pg_affected_rows</function></entry> + </row> + <row> + <entry><function>pg_errormessage</function></entry> + <entry><function>pg_last_error</function></entry> + </row> + <row> + <entry><function>pg_exec</function></entry> + <entry><function>pg_query</function></entry> + </row> + <row> + <entry><function>pg_fieldname</function></entry> + <entry><function>pg_field_name</function></entry> + </row> + <row> + <entry><function>pg_fieldsize</function></entry> + <entry><function>pg_field_size</function></entry> + </row> + <row> + <entry><function>pg_fieldnum</function></entry> + <entry><function>pg_field_num</function></entry> + </row> + <row> + <entry><function>pg_fieldprtlen</function></entry> + <entry><function>pg_field_prtlen</function></entry> + </row> + <row> + <entry><function>pg_fieldisnull</function></entry> + <entry><function>pg_field_is_null</function></entry> + </row> + <row> + <entry><function>pg_freeresult</function></entry> + <entry><function>pg_free_result</function></entry> + </row> + <row> + <entry><function>pg_getlastoid</function></entry> + <entry><function>pg_last_oid</function></entry> + </row> + <row> + <entry><function>pg_loreadall</function></entry> + <entry><function>pg_lo_read_all</function></entry> + </row> + <row> + <entry><function>pg_locreate</function></entry> + <entry><function>pg_lo_create</function></entry> + </row> + <row> + <entry><function>pg_lounlink</function></entry> + <entry><function>pg_lo_unlink</function></entry> + </row> + <row> + <entry><function>pg_loopen</function></entry> + <entry><function>pg_lo_open</function></entry> + </row> + <row> + <entry><function>pg_loclose</function></entry> + <entry><function>pg_lo_close</function></entry> + </row> + <row> + <entry><function>pg_loread</function></entry> + <entry><function>pg_lo_read</function></entry> + </row> + <row> + <entry><function>pg_lowrite</function></entry> + <entry><function>pg_lo_write</function></entry> + </row> + <row> + <entry><function>pg_loimport</function></entry> + <entry><function>pg_lo_import</function></entry> + </row> + <row> + <entry><function>pg_loexport</function></entry> + <entry><function>pg_lo_export</function></entry> + </row> + <row> + <entry><function>pg_numrows</function></entry> + <entry><function>pg_num_rows</function></entry> + </row> + <row> + <entry><function>pg_numfields</function></entry> + <entry><function>pg_num_fields</function></entry> + </row> + <row> + <entry><function>pg_result</function></entry> + <entry><function>pg_fetch_result</function></entry> + </row> + </tbody> + </tgroup> + </table> <para> - ÒÔǰµÄÓï·¨£º - <command> - $conn = pg_connect ("host", "port", "options", "tty", "dbname") - </command> - ÒѾ²»ÔÙÌᳫʹÓᣠ+ ΪÒÔºóÖ§³ÖÒì²½Á¬½Ó£¬½«²»ÔÙÌᳫÓþÉÓ﷨ʹÓú¯Êý <function>pg_connect</function>/<function>pg_pconnect</function>¡£ÇëÓÃÁ¬½Ó×Ö·û´®×÷Ϊ²ÎÊýÀ´Ê¹Óú¯Êý <function>pg_connect</function> ºÍ <function>pg_pconnect</function>¡£ </para> - <para> - »·¾³±äÁ¿»áÓ°Ïì PostgreSQL ·þÎñÆ÷£¯¿Í»§»úµÄÐÐΪ¡£ÀýÈçÈç¹ûÁ¬½Ó´®ÖÐÊ¡ÂÔÁËÖ÷»úÃû£¬PostgreSQL Ä£¿é½«»á²éÕÒ»·¾³±äÁ¿ PGHOST¡£ - ²»Í¬°æ±¾ËùÖ§³ÖµÄ»·¾³±äÁ¿²»Í¬£¬ÏêÇé²Î¿¼ PostgreSQL Programmers's Manual (libpq - Environment Variables)¡£ - </para> - <para> - È·ÈÏÒѾ¸øÊʵ±µÄÓû§ÉèÖÃÁË»·¾³±äÁ¿¡£Óà <literal>$_ENV</literal> »ò <function>getenv</function> À´¼ì²éµ±Ç°½ø³Ì¿ÉÒÔʹÓÃÄÄЩ»·¾³±äÁ¿¡£ - </para> - <example> - <title>É趨ĬÈϲÎÊý</title> - <programlisting> + </warning> + <para> + ²»ÊÇËùÓеİ汾¶¼Ö§³ÖËùÓеĺ¯Êý£¬ÕâºÍ libpq µÄ°æ±¾ºÍ±àÒë·½·¨Óйء£Èç¹û±àÒëÔ´´úÂëʱÉÙÁËÒ»¸öº¯Êý£¬ÄÇô libpq ¾Í²»Ö§³ÖÐèÒª¸Ãº¯ÊýµÄ¹¦ÄÜ¡£ + </para> + <para> + ²»ÒªÊ¹ÓÃ±È PostgreSQL ·þÎñÆ÷Á¬½ÓËù½ÓÊܸü¾É°æ±¾µÄ libpq Ò²ºÜÖØÒª¡£Èç¹ûÄãÓÃµÄ libpq °æ±¾±È PostgreSQL ·þÎñÆ÷Ô¤ÆÚµÄµÍ¾Í¿ÉÄܳöÏÖÎÊÌâ¡£ + </para> + <para> + PostgreSQL ÔÚ 6.3 (03/02/1998) °æÖ®ºóĬÈÏʹÓà unix domain sockets£¬Ä¬ÈÏ״̬ϲ»»á´ò¿ª TCP ¶Ë¿Ú¡£ÏÂÃæÕâÕűí˵Ã÷Á˸÷ÖÖн¨Á¬½ÓµÄ¿ÉÄÜÐÔ¡£TCP/IP socket ·ÅÔÚ <filename>/tmp/.s.PGSQL.5432</filename>¡£¸ÃÑ¡Ïî¿ÉÓà <command>postmaster</command> ÖÐµÄ '-i' ²ÎÊý´ò¿ª£¬Ëü±íʾ¡°¼àÊÓ TCP/IP ¶Ë¿ÚÒÔ¼° Unix domain socket¡±¡£ + <table> + <title>Postmaster ºÍ PHP</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Postmaster</entry> + <entry>PHP</entry> + <entry>״̬</entry> + </row> + </thead> + <tbody> + <row> + <entry>postmaster &</entry> + <entry>pg_connect("dbname=MyDbName");</entry> + <entry>OK</entry> + </row> + <row> + <entry>postmaster -i &</entry> + <entry>pg_connect("dbname=MyDbName");</entry> + <entry>OK</entry> + </row> + <row> + <entry>postmaster &</entry> + <entry>pg_connect("host=localhost dbname=MyDbName");</entry> + <entry> + Unable to connect to PostgreSQL server: connectDB() failed: + Is the postmaster running and accepting TCP/IP (with -i) + connection at 'localhost' on port '5432'? in + /path/to/file.php on line 20. + </entry> + </row> + <row> + <entry>postmaster -i &</entry> + <entry>pg_connect("host=localhost dbname=MyDbName");</entry> + <entry>OK</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + <para> + µ½ PostgreSQL ·þÎñÆ÷µÄÁ¬½Ó¿ÉÒÔͨ¹ýÒÔÏÂÃüÁî´®ÖеIJÎÊý¶Ô½¨Á¢£º<command>$conn = + pg_connect("host=myHost port=myPort tty=myTTY options=myOptions + dbname=myDB user=myUser password=myPassword"); + </command> + </para> + <para> + ÒÔǰµÄÓï·¨£º + <command> + $conn = pg_connect ("host", "port", "options", "tty", "dbname") + </command> + ÒѾ²»ÔÙÌᳫʹÓᣠ+ </para> + + <para> + »·¾³±äÁ¿»áÓ°Ïì PostgreSQL ·þÎñÆ÷£¯¿Í»§»úµÄÐÐΪ¡£ÀýÈçÈç¹ûÁ¬½Ó´®ÖÐÊ¡ÂÔÁËÖ÷»úÃû£¬PostgreSQL Ä£¿é½«»á²éÕÒ»·¾³±äÁ¿ PGHOST¡£ + ²»Í¬°æ±¾ËùÖ§³ÖµÄ»·¾³±äÁ¿²»Í¬£¬ÏêÇé²Î¿¼ PostgreSQL Programmers's Manual (libpq - Environment Variables)¡£ + </para> + <para> + È·ÈÏÒѾ¸øÊʵ±µÄÓû§ÉèÖÃÁË»·¾³±äÁ¿¡£Óà <literal>$_ENV</literal> »ò <function>getenv</function> À´¼ì²éµ±Ç°½ø³Ì¿ÉÒÔʹÓÃÄÄЩ»·¾³±äÁ¿¡£ + </para> + <example> + <title>É趨ĬÈϲÎÊý</title> + <programlisting> <![CDATA[ PGHOST=pgsql.example.com PGPORT=7890 @@ -228,47 +238,52 @@ export PGHOST PGPORT PGDATABASE PGUSER PGPASSWORD PGDATESTYLE PGTZ PGCLIENTENCODING ]]> - </programlisting> - </example> - </section> - - &reference.pgsql.constants; - - <section id="pgsql.examples"> - &reftitle.examples; + </programlisting> + </example> + <note> <para> - ´Ó PostgreSQL 7.1.0 ¿ªÊ¼£¬ÔÚÒ»¸ö text ÀàÐÍ×Ö¶ÎÖÐ×î¶à¿ÉÒÔ´¢´æ 1GB µÄÊý¾Ý¡£ÔÚÀϰ汾ÖÐÔòÏÞÖÆÎªÒ»¸ö¿éµÄ´óС£¨Ä¬ÈÏ 8KB£¬×î´ó 32KB£¬±àÒëʱָ¶¨£©¡£ + PostgreSQL ×Ô¶¯½«ËùÓбêʶ·û£¨ÀýÈç±í£¯ÁÐÃû£©×ª³ÉСд×Öĸֵ¡£ÒªÊ¹ÆäÄÜʶ±ð´óд×Öĸֵ£¬±ØÐ뽫±êʶ·û·ÅÔÚÒýºÅÄÚ¡£ </para> - <para> - ҪʹÓà large object (lo) ½Ó¿Ú£¬ÐèÒª°Ñ large object º¯Êý·ÅÔÚÒ»¸öÊÂÎñ¶ÎÖС£ÊÂÎñ¶ÎÒÔ SQL Óï¾ä <command>BEGIN</command> ¿ªÊ¼£¬Èç¹û¸ÃÊÂÎñºÏ·¨£¬ÒÔ <command>COMMIT</command> »òÕß <command>END</command>½áÊø£¬Èç¹û¸ÃÊÂÎñʧ°Ü£¬ÔòÒÔ <command>ROLLBACK</command> »òÕß <command>ABORT</command>½áÊø¡£ - <example> - <title>ʹÓà Large Object</title> - <programlisting role="php"> + </note> + </section> + + &reference.pgsql.constants; + + <section id="pgsql.examples"> + &reftitle.examples; + <para> + ´Ó PostgreSQL 7.1.0 ¿ªÊ¼£¬ÔÚÒ»¸ö text ÀàÐÍ×Ö¶ÎÖÐ×î¶à¿ÉÒÔ´¢´æ 1GB µÄÊý¾Ý¡£ÔÚÀϰ汾ÖÐÔòÏÞÖÆÎªÒ»¸ö¿éµÄ´óС£¨Ä¬ÈÏ 8KB£¬×î´ó 32KB£¬±àÒëʱָ¶¨£©¡£ + </para> + <para> + ҪʹÓà large object (lo) ½Ó¿Ú£¬ÐèÒª°Ñ large object º¯Êý·ÅÔÚÒ»¸öÊÂÎñ¶ÎÖС£ÊÂÎñ¶ÎÒÔ SQL Óï¾ä <command>BEGIN</command> ¿ªÊ¼£¬Èç¹û¸ÃÊÂÎñºÏ·¨£¬ÒÔ <command>COMMIT</command> »òÕß <command>END</command>½áÊø£¬Èç¹û¸ÃÊÂÎñʧ°Ü£¬ÔòÒÔ <command>ROLLBACK</command> »òÕß <command>ABORT</command>½áÊø¡£ + <example> + <title>ʹÓà Large Object</title> + <programlisting role="php"> <![CDATA[ <?php - $database = pg_connect ("dbname=jacarta"); - pg_query ($database, "begin"); - $oid = pg_lo_create ($database); - echo "$oid\n"; - $handle = pg_lo_open ($database, $oid, "w"); - echo "$handle\n"; - pg_lo_write ($handle, "large object data"); - pg_lo_close ($handle); - pg_query ($database, "commit"); + $database = pg_connect("dbname=jacarta"); + pg_query($database, "begin"); + $oid = pg_lo_create($database); + echo "$oid\n"; + $handle = pg_lo_open($database, $oid, "w"); + echo "$handle\n"; + pg_lo_write($handle, "large object data"); + pg_lo_close($handle); + pg_query($database, "commit"); ?> ]]> - </programlisting> - </example> - ÔÚ¹Ø±Õ large object ֮ǰ²»Ó¦¹Ø±Õµ½ PostgreSQL ·þÎñÆ÷µÄÁ¬½Ó¡£ - </para> - </section> - </partintro> + </programlisting> + </example> + ÔÚ¹Ø±Õ large object ֮ǰ²»Ó¦¹Ø±Õµ½ PostgreSQL ·þÎñÆ÷µÄÁ¬½Ó¡£ + </para> + </section> + </partintro> -&reference.pgsql.functions; + &reference.pgsql.functions; - </reference> +</reference> <!-- Keep this comment at the end of the file -Local variables: +Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t http://cvs.php.net/diff.php/phpdoc-zh/reference/regex/reference.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-zh/reference/regex/reference.xml diff -u phpdoc-zh/reference/regex/reference.xml:1.1 phpdoc-zh/reference/regex/reference.xml:1.2 --- phpdoc-zh/reference/regex/reference.xml:1.1 Tue Sep 9 22:09:23 2003 +++ phpdoc-zh/reference/regex/reference.xml Mon Aug 29 17:28:41 2005 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.8 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.11 Maintainer: dallas Status: ready --> <reference id="ref.regex"> - <title>ÕýÔò±í´ïʽº¯Êý¿â£¨POSIX À©Õ¹£©</title> + <title>Regexp ÕýÔò±í´ïʽº¯Êý£¨POSIX À©Õ¹£©</title> <titleabbrev>Regexps</titleabbrev> <partintro> @@ -24,35 +24,12 @@ </para> </warning> <para> - ÕýÔò±í´ïʽÔÚ PHP ÖÐÓÃÀ´×ö¸´ÔÓµÄ×Ö·û´®²Ù×÷¡£Ö§³ÖÕýÔò±í´ïʽµÄº¯ÊýΪ£º - <itemizedlist> - <listitem> - <simpara><function>ereg</function></simpara> - </listitem> - <listitem> - <simpara><function>ereg_replace</function></simpara> - </listitem> - <listitem> - <simpara><function>eregi</function></simpara> - </listitem> - <listitem> - <simpara><function>eregi_replace</function></simpara> - </listitem> - <listitem> - <simpara><function>split</function></simpara> - </listitem> - <listitem> - <simpara><function>spliti</function></simpara> - </listitem> - </itemizedlist> - </para> - <para> - ÕâЩº¯Êý¶¼½ÓÊÜÒ»¸öÕýÔò±í´ïʽ×Ö·û´®×÷ΪÆäµÚÒ»¸ö²ÎÊý¡£PHP ʹÓÃÓÉ - POSIX 1003.3 ¶¨ÒåµÄ POSIX À©Õ¹ÕýÔò±í´ïʽ¡£POSIX - ÕýÔò±í´ïʽÍêÕûµÄÃèÊö¼û°üº¬ÔÚ PHP ·¢ÐаüÖÐ regex Ŀ¼Ï嵀 man - Ò³Ãæ¡£¿ÉÒÔͨ¹ýÀàËÆ - <command>man /usr/local/src/regex/regex.7</command> - µÄÃüÁîÀ´ÔĶÁ¡£ + ÕýÔò±í´ïʽÔÚ PHP ÖÐÓÃÀ´×ö¸´ÔÓµÄ×Ö·û´®²Ù×÷¡£PHP + ʹÓà POSIX À©Õ¹µÄÕýÔò±í´ïʽ£¬ÆäÓÉ POSIX + 1003.2 ¶¨Òå¡£¶ÔÓÚ POSIX ÕýÔò±í´ïʽÍêÕûµÄ˵Ã÷¼û + <ulink url="&url.regex.man;">regex ÊÖ²áÒ³</ulink>£¬Î»ÓÚ PHP + ·¢²¼°üÖÐµÄ regex Ŀ¼Ï¡£ÕâÊÇ UNIX ϵÄÊÖ²á¸ñʽ£¬ÐèÒªÓÃÀàËÆÈçÏÂÃüÁî + <command>man /usr/local/src/regex/regex.7</command> À´ÔĶÁ¡£ </para> </section> http://cvs.php.net/diff.php/phpdoc-zh/reference/snmp/reference.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-zh/reference/snmp/reference.xml diff -u phpdoc-zh/reference/snmp/reference.xml:1.1 phpdoc-zh/reference/snmp/reference.xml:1.2 --- phpdoc-zh/reference/snmp/reference.xml:1.1 Tue Aug 5 07:51:59 2003 +++ phpdoc-zh/reference/snmp/reference.xml Mon Aug 29 17:28:42 2005 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> -<!-- $Author: nio $ --> -<!-- EN-Revision: 1.7 Maintainer: nio Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.10 Maintainer: nio Status: ready --> <reference id="ref.snmp"> - <title>SNMP º¯Êý¿â</title> + <title>SNMP º¯Êý</title> <titleabbrev>SNMP</titleabbrev> <partintro> @@ -16,8 +16,7 @@ <section id="snmp.requirements"> &reftitle.required; <para> - ΪÁËÔÚ Unix ÖÐʹÓà SNMP º¯Êý¿â£¬ÄúÐèÒª°²×° - <ulink url="&url.ucd-snmp;">UCD SNMP</ulink> »ò + ΪÁËÔÚ Unix ÖÐʹÓà SNMP º¯Êý¿â£¬ÐèÒª°²×° <ulink url="&url.net-snmp;">NET-SNMP</ulink> °ü¡£ÔÚ Windows ÖУ¬ÕâЩº¯ÊýÖ»ÄÜÓÃÓÚ NT£¬¶ø²»ÄÜÓÃÓÚ Win95/98¡£ </para> @@ -36,14 +35,11 @@ </para> </section> - <section id="snmp.constants"> - &reftitle.constants; - &no.constants; - </section> + &reference.snmp.constants; </partintro> - -&reference.snmp.functions; + + &reference.snmp.functions; </reference> <!-- Keep this comment at the end of the file http://cvs.php.net/diff.php/phpdoc-zh/reference/strings/reference.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-zh/reference/strings/reference.xml diff -u phpdoc-zh/reference/strings/reference.xml:1.4 phpdoc-zh/reference/strings/reference.xml:1.5 --- phpdoc-zh/reference/strings/reference.xml:1.4 Thu Jul 14 13:31:13 2005 +++ phpdoc-zh/reference/strings/reference.xml Mon Aug 29 17:28:42 2005 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.4 $ --> -<!-- $Author: yincheng $ --> +<!-- $Revision: 1.5 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.6 Maintainer: Avenger Status: ready --> <reference id="ref.strings"> - <title>×Ö·û´®´¦Àíº¯Êý¿â</title> + <title>String ×Ö·û´®´¦Àíº¯Êý</title> <titleabbrev>Strings</titleabbrev> <partintro> @@ -14,7 +14,9 @@ <link linkend="ref.url">URL ²Ù×÷</link> ²¿·Ö. </para> <para> - Èç¹ûÏëÒªÁ˽â×Ö·û´®µÄÏà¹ØÄÚÈÝ£¬ÌرðÊÇÓйص¥ÒýºÅ£¬Ë«ÒýºÅµÈµÄ´¦Àí²¿·Ö£¬¿ÉÒԲο¼ÊÖ²áÖÐ <link linkend="language.types">ÀàÐÍ</link> ²¿·ÖÖÐµÄ <link linkend="language.types.string">×Ö·û´®</link> ÌõÄ¿¡£ + Èç¹ûÏëÒªÁ˽â×Ö·û´®µÄÏà¹ØÄÚÈÝ£¬ÌرðÊÇÓйص¥ÒýºÅ£¬Ë«ÒýºÅµÈµÄ´¦Àí²¿·Ö£¬¿ÉÒԲο¼ÊÖ²áÖÐ<link + linkend="language.types">ÀàÐÍ</link>²¿·ÖÖеÄ<link + linkend="language.types.string">×Ö·û´®</link>ÌõÄ¿¡£ </para> </section> @@ -31,8 +33,9 @@ <section id="strings.seealso"> &reftitle.seealso; <para> - Èç¹ûÄúÏë¸üÉîÈëµÄÁ˽âÓйØ×Ö·û´®¸ß¼¶²Ù×÷µÄÏà¹ØÄÚÈÝ£¬Çë²ÎÔÄÊÖ²áµÄ <link linkend="ref.regex">ÕýÔò±í´ïʽº¯Êý</link> - ºÍ <link linkend="ref.pcre">Perl ¼æÈݺ¯Êý</link> ²¿·Ö. + Èç¹ûÏë¸üÉîÈëµÄÁ˽âÓйØ×Ö·û´®¸ß¼¶²Ù×÷µÄÏà¹ØÄÚÈÝ£¬Çë²ÎÔÄÊÖ²áµÄ<link + linkend="ref.regex">ÕýÔò±í´ïʽº¯Êý£¨POSIX À©Õ¹£©</link>ºÍ<link + linkend="ref.pcre">ÕýÔò±í´ïʽº¯Êý£¨Perl ¼æÈÝ£©</link> ²¿·Ö¡£ </para> </section> </partintro> http://cvs.php.net/diff.php/phpdoc-zh/reference/url/reference.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-zh/reference/url/reference.xml diff -u phpdoc-zh/reference/url/reference.xml:1.1 phpdoc-zh/reference/url/reference.xml:1.2 --- phpdoc-zh/reference/url/reference.xml:1.1 Wed Oct 1 10:13:42 2003 +++ phpdoc-zh/reference/url/reference.xml Mon Aug 29 17:28:42 2005 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> -<!-- $Author: nio $ --> +<!-- $Revision: 1.2 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.4 Maintainer: nio Status: ready --> <reference id="ref.url"> - <title>URL º¯Êý¿â</title> + <title>URL º¯Êý</title> <titleabbrev>URLs</titleabbrev> <partintro> @@ -13,12 +13,12 @@ ´¦Àí URL ×Ö·û´®£º±àÂë¡¢½âÂëÓë½âÎö¡£ </para> </section> - + <section id="url.requirements"> &reftitle.required; &no.requirement; </section> - + <section id="url.installation"> &reftitle.install; &no.install; http://cvs.php.net/diff.php/phpdoc-zh/reference/var/reference.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-zh/reference/var/reference.xml diff -u phpdoc-zh/reference/var/reference.xml:1.4 phpdoc-zh/reference/var/reference.xml:1.5 --- phpdoc-zh/reference/var/reference.xml:1.4 Fri Aug 19 10:01:11 2005 +++ phpdoc-zh/reference/var/reference.xml Mon Aug 29 17:28:42 2005 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.7 Maintainer: nio Status: ready --> <reference id="ref.var"> - <title>±äÁ¿º¯Êý¿â</title> + <title>Variable ±äÁ¿º¯Êý</title> <titleabbrev>Variables</titleabbrev> <partintro> @@ -12,7 +12,7 @@ <para> ÓйرäÁ¿ÐÐΪ·½Ê½µÄÐÅÏ¢Çë²é¿´±¾ÊÖ²á<link linkend="langref">ÓïÑԲο¼</link>²¿·ÖµÄ<link - linkend="language.variables">±äÁ¿</link> ÌõÄ¿¡£ + linkend="language.variables">±äÁ¿</link>ÌõÄ¿¡£ </para> </section> http://cvs.php.net/diff.php/phpdoc-zh/reference/w32api/reference.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-zh/reference/w32api/reference.xml diff -u phpdoc-zh/reference/w32api/reference.xml:1.7 phpdoc-zh/reference/w32api/reference.xml:1.8 --- phpdoc-zh/reference/w32api/reference.xml:1.7 Wed Aug 10 12:32:50 2005 +++ phpdoc-zh/reference/w32api/reference.xml Mon Aug 29 17:28:42 2005 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.9 Maintainer: cysoft Status: ready --> <reference id="ref.w32api"> - <title>W32api º¯Êý¿â</title> + <title>W32api º¯Êý</title> <titleabbrev>W32api</titleabbrev> <partintro> http://cvs.php.net/diff.php/phpdoc-zh/reference/xml/reference.xml?r1=1.13&r2=1.14&ty=u Index: phpdoc-zh/reference/xml/reference.xml diff -u phpdoc-zh/reference/xml/reference.xml:1.13 phpdoc-zh/reference/xml/reference.xml:1.14 --- phpdoc-zh/reference/xml/reference.xml:1.13 Fri Jul 8 13:10:51 2005 +++ phpdoc-zh/reference/xml/reference.xml Mon Aug 29 17:28:43 2005 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.13 $ --> -<!-- $Author: yincheng $ --> +<!-- $Revision: 1.14 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.18 Maintainer: Gregory Status: ready --> <reference id="ref.xml"> - <title>XML Óï·¨½âÎöº¯Êý¿â</title> + <title>XML Óï·¨½âÎöº¯Êý</title> <titleabbrev>XML</titleabbrev> <partintro> @@ -11,21 +11,34 @@ <section id="xml.intro"> &reftitle.intro; <para> - XML£¨eXtensible Markup Language£¬¿ÉÀ©Õ¹±ê¼ÇÓïÑÔ£©ÊÇÒ»ÖÖÔÚ WEB ÉϽøÐÐÎĵµ½»»»µÄÊý¾Ý¸ñʽ¡£¸ÃÓïÑÔÊÇÓÉ W3C£¨World Wide Web Concortium£¬ÊÀ½çÍòÎ¬Íø×éÖ¯£©¶¨ÒåµÄÒ»ÖÖ±ê×¼¡£Äú¿ÉÒÔ·ÃÎÊ <ulink url="&url.xml;">&url.xml;</ulink> ÒÔ»ñÈ¡¹ØÓÚ XML ¼°ÆäÏà¹Ø¼¼ÊõµÄ¸ü¶àÐÅÏ¢¡£ + XML£¨eXtensible Markup Language£¬¿ÉÀ©Õ¹±ê¼ÇÓïÑÔ£©ÊÇÒ»ÖÖÔÚ web + ÉϽøÐÐÎĵµ½»»»µÄÊý¾Ý¸ñʽ¡£¸ÃÓïÑÔÊÇÓÉ W3C£¨World + Wide Web Concortium£¬ÊÀ½çÍòÎ¬Íø×éÖ¯£©¶¨ÒåµÄÒ»ÖÖ±ê×¼¡£¿ÉÒÔ·ÃÎÊ + <ulink url="&url.xml;">&url.xml;</ulink> ÒÔ»ñÈ¡¹ØÓÚ XML ¼°ÆäÏà¹Ø¼¼ÊõµÄ¸ü¶àÐÅÏ¢¡£ </para> <para> - ±¾À©Õ¹Ä£¿é¿ÉΪ James Clark µÄ <productname>expat</productname> Ìṩ֧³Ö¡£¸Ã¹¤¾ß°ü°ïÖúÄú½âÎö XML Îĵµ£¨¶ø·Ç XML ÎĵµµÄÓÐЧ»¯£©¡£ËüÖ§³ÖÈýÖÖÔ´´úÂëµÄ<link linkend="xml.encoding">±àÂ뷽ʽ</link>£¬ÕâÈýÖÖ±àÂ뷽ʽҲ±» PHP ±¾ÉíËùÖ§³Ö£¬ËüÃÇ·Ö±ðÊÇ£º<literal>US-ASCII</literal>¡¢<literal>ISO-8859-1</literal> ºÍ <literal>UTF-8</literal>¡£ - ¸ÃϵͳÉв»Ö§³Ö <literal>UTF-16</literal>¡£ + ±¾À©Õ¹Ä£¿é¿ÉΪ James Clark µÄ <productname>expat</productname> + Ìṩ֧³Ö¡£¸Ã¹¤¾ß°ü°ïÖú½âÎö XML Îĵµ£¨¶ø·Ç XML + ÎĵµµÄÓÐЧ»¯£©¡£ËüÖ§³ÖÈýÖÖÔ´´úÂëµÄ<link + linkend="xml.encoding">±àÂ뷽ʽ</link>£¬ÕâÈýÖÖ±àÂ뷽ʽҲ±» PHP + ±¾ÉíËùÖ§³Ö£¬ËüÃÇ·Ö±ðÊÇ£º<literal>US-ASCII</literal>¡¢<literal>ISO-8859-1</literal> + ºÍ <literal>UTF-8</literal>¡£±¾ÏµÍ³Éв»Ö§³Ö <literal>UTF-16</literal>¡£ </para> <para> - ¸ÃÀ©Õ¹Ä£¿éʹÄúÄܹ»<link linkend="function.xml-parser-create">½¨Á¢ XML Óï·¨½âÎöÆ÷</link>£¬²¢¶Ô²»Í¬µÄ XML ʼþ¶¨Òå¶ÔÓ¦µÄ´¦ÀíÆ÷¡£Ã¿¸ö XML Óï·¨½âÎöÆ÷¶¼ÓÐÈô¸É¸öÄú¿ÉÒÔ¸ù¾ÝÐèÒªµ÷ÕûµÄ<link linkend="function.xml-parser-set-option">²ÎÊý</link>¡£ + ±¾À©Õ¹Ä£¿éʹÓû§Äܹ»<link linkend="function.xml-parser-create">½¨Á¢ + XML Óï·¨½âÎöÆ÷</link>£¬²¢¶Ô²»Í¬µÄ XML ʼþ¶¨Òå¶ÔÓ¦µÄ´¦ÀíÆ÷¡£Ã¿¸ö + XML Óï·¨½âÎöÆ÷¶¼ÓÐÈô¸É¸ö¿É¸ù¾ÝÐèÒªµ÷ÕûµÄ<link + linkend="function.xml-parser-set-option">²ÎÊý</link>¡£ </para> </section> <section id="xml.requirements"> &reftitle.required; <para> - ¸ÃÀ©Õ¹Ä£¿éĬÈÏʹÓà <productname>expat compat layer</productname>¡£ËüÒ²¿ÉÒÔʹÓà <productname>expat</productname>£¬Äú¿ÉÒÔ·ÃÎÊ <ulink url="&url.expat;">&url.expat;</ulink> À´»ñÈ¡¡£expat ×Ô´øµÄ Makefile Îļþ²»»áÉú³ÉĬÈϵÄÀ©Õ¹¿â£¬Äú¿ÉÒÔʹÓÃÒÔϵÄÉú³É¹æÔòÀ´ÊµÏÖ£º + ±¾À©Õ¹Ä£¿éĬÈÏʹÓà <productname>expat compat layer</productname>¡£ËüÒ²¿ÉÒÔʹÓà + <productname>expat</productname>£¬¿ÉÒÔ·ÃÎÊ + <ulink url="&url.expat;">&url.expat;</ulink> À´»ñÈ¡¡£expat + ×Ô´øµÄ Makefile Îļþ²»»áÉú³ÉĬÈϵÄÀ©Õ¹¿â£¬¿ÉÒÔʹÓÃÒÔϵÄÉú³É¹æÔòÀ´ÊµÏÖ£º <programlisting role="makefile"> <![CDATA[ libexpat.a: $(OBJS) @@ -35,11 +48,12 @@ </programlisting> </para> <para> - Çë·ÃÎÊ <ulink url="&url.expat.rpm;">&url.expat.rpm;</ulink> ÒÔ»ñÈ¡ expat Ô´ÎļþµÄ RPM °ü¡£ + Çë·ÃÎÊ <ulink url="&url.expat.rpm;">&url.expat.rpm;</ulink> ÒÔ»ñÈ¡ + expat Ô´ÎļþµÄ RPM °ü¡£ </para> </section> - &reference.xml.configure; + &reference.xml.configure; <section id="xml.configuration"> &reftitle.runtime; @@ -48,13 +62,15 @@ <section id="xml.resources"> &reftitle.resources; - <section id="xml.resources.xml"> - <title><literal>xml</literal></title> - <para> - ×ÊÔ´ <literal>xml</literal> ºÍÓɺ¯Êý <function>xml_parser_create</function> ¼° <function>xml_parser_create_ns</function> ·µ»ØµÄ×ÊÔ´ÀàËÆ£¬ËüÃÇÖ¸ÏòÒ»¸ö¿É±»±¾À©Õ¹Öеĺ¯ÊýʹÓÃµÄ xml ½âÎö¶ÔÏó¡£ - extension. - </para> - </section> + <section id="xml.resources.xml"> + <title><literal>xml</literal></title> + <para> + ÓÉ <function>xml_parser_create</function> ºÍ + <function>xml_parser_create_ns</function> + ·µ»ØµÄ <literal>xml</literal> ×ÊÔ´ÒýÓÃÁËÒ»¸ö XML + ½âÎöÆ÷ʵÀý£¬½«±»ÓÃÔÚ±¾À©Õ¹¿âÌṩµÄº¯ÊýÖС£ + </para> + </section> </section> &reference.xml.constants; @@ -76,7 +92,8 @@ <row> <entry><function>xml_set_element_handler</function></entry> <entry> - ÔªËØÊ¼þ£¨Element events£©½«ÔÚ XML ½âÎöÆ÷Óöµ½±ê¼Ç·ûµÄÆðʼ·û»òÕßÖÕÖ¹·ûʱ·¢Éú¡£ÁíÍ⣬¶ÔÓÚÆðʼ·ûºÍÖÕÖ¹·ûÒ²ÓжÀÁ¢µÄ´¦ÀíÆ÷¡£ + ÔªËØÊ¼þ£¨Element events£©½«ÔÚ XML + ½âÎöÆ÷Óöµ½±ê¼Ç·ûµÄÆðʼ·û»òÕßÖÕÖ¹·ûʱ·¢Éú¡£ÁíÍ⣬¶ÔÓÚÆðʼ·ûºÍÖÕÖ¹·ûÒ²ÓжÀÁ¢µÄ´¦ÀíÆ÷¡£ </entry> </row> <row> @@ -84,7 +101,9 @@ <function>xml_set_character_data_handler</function> </entry> <entry> - ´ÖÂÔµÄ˵£¬×Ö·ûÊý¾Ý£¨Character data£©ÊÇÖ¸ XML ÎĵµÖÐËùÓбê¼Ç·ûÒÔÍâµÄÄÚÈÝ£¬°üÀ¨±ê¼Ç·ûÖ®¼äµÄ¿Õ¸ñ¡£ÐèҪעÒâµÄÊÇ XML Óï·¨½âÎöÆ÷²»»á¼ÓÉÏ»òÕßÈ¥µôÈκοոñ¡£¿Õ¸ñµÄÈ¡ÉὫÓÉÓ¦ÓóÌÐò£¨Ò²¾ÍÊÇÄú×Ô¼º£©À´¾ö¶¨¡£ + ´ÖÂÔµÄ˵£¬×Ö·ûÊý¾Ý£¨Character data£©ÊÇÖ¸ XML + ÎĵµÖÐËùÓбê¼Ç·ûÒÔÍâµÄÄÚÈÝ£¬°üÀ¨±ê¼Ç·ûÖ®¼äµÄ¿Õ¸ñ¡£ÐèҪעÒâµÄÊÇ + XML Óï·¨½âÎöÆ÷²»»á¼ÓÉÏ»òÕßÈ¥µôÈκοոñ¡£¿Õ¸ñµÄÈ¡ÉὫÓÉÓ¦ÓóÌÐò£¨Ò²¾ÍÊÇÄã×Ô¼º£©À´¾ö¶¨¡£ </entry> </row> <row> @@ -92,13 +111,18 @@ <function>xml_set_processing_instruction_handler</function> </entry> <entry> - PHP ³ÌÐòÔ±¶Ô¡°´¦ÀíÖ¸Á£¨Processing Instructions£¬PIs£©Ó¦¸ÃÒѾºÜÊìϤÁË¡£<?php ?> ¾ÍÊÇÒ»¸ö´¦ÀíÖ¸ÁÆäÖÐ <replaceable>php</replaceable> ±»³ÆÎª¡°PI target¡±¡£³ýÁËÒÔ¡°XML¡±¿ªÍ·µÄ PI target Òѱ»±£ÁôÒÔÍ⣬¶ÔÕâЩ PIs µÄ´¦Àí½«ÓÉÓ¦ÓóÌÐòÀ´Íê³É¡£ + PHP ³ÌÐòÔ±¶Ô¡°´¦ÀíÖ¸Á£¨Processing + Instructions£¬PIs£©Ó¦¸ÃÒѾºÜÊìϤÁË¡£<?php ?> + ¾ÍÊÇÒ»¸ö´¦ÀíÖ¸ÁÆäÖÐ <replaceable>php</replaceable> + ±»³ÆÎª¡°PI target¡±¡£³ýÁËÒÔ¡°XML¡±¿ªÍ·µÄ PI target + Òѱ»±£ÁôÒÔÍ⣬¶ÔÕâЩ PIs µÄ´¦Àí½«ÓÉÓ¦ÓóÌÐòÀ´Íê³É¡£ </entry> </row> <row> <entry><function>xml_set_default_handler</function></entry> <entry> - ËùÓÐÎÞ·¨±»ÆäËü´¦ÀíÆ÷´¦ÀíµÄʼþ½«ÓÉĬÈÏ´¦ÀíÆ÷À´´¦Àí¡£ÕâЩʼþ°üÀ¨ÖîÈç XML ºÍÎĵµÀàÐÍÉùÃ÷µÈÄÚÈÝ¡£ + ËùÓÐÎÞ·¨±»ÆäËü´¦ÀíÆ÷´¦ÀíµÄʼþ½«ÓÉĬÈÏ´¦ÀíÆ÷À´´¦Àí¡£ÕâЩʼþ°üÀ¨ÖîÈç + XML ºÍÎĵµÀàÐÍÉùÃ÷µÈÄÚÈÝ¡£ </entry> </row> <row> @@ -122,7 +146,8 @@ <function>xml_set_external_entity_ref_handler</function> </entry> <entry> - µ± XML ½âÎöÆ÷Óöµ½Ö¸ÏòÍⲿ½âÎöµÄÒ»°ãʵÌåÃûʱ£¬¸Ã´¦ÀíÆ÷½«±»µ÷Ó᣸ÃÖ¸ÏòµÄÄ¿±ê¿ÉÒÔÊÇÒ»¸öÎļþ£¬Ò²¿ÉÒÔÊÇ URL¡£Çë²ÎÔÄ¡°<link linkend="example.xml-external-entity">ÍⲿʵÌåÃû·¶Àý</link>¡±¡£ + µ± XML ½âÎöÆ÷Óöµ½Ö¸ÏòÍⲿ½âÎöµÄÒ»°ãʵÌåÃûʱ£¬¸Ã´¦ÀíÆ÷½«±»µ÷Ó᣸ÃÖ¸ÏòµÄÄ¿±ê¿ÉÒÔÊÇÒ»¸öÎļþ£¬Ò²¿ÉÒÔÊÇ + URL¡£Çë²ÎÔÄ¡°<link linkend="example.xml-external-entity">ÍⲿʵÌåÃû·¶Àý</link>¡±¡£ </entry> </row> </tbody> @@ -137,7 +162,9 @@ ÔªËØ´¦Àíº¯Êý¿ÉÄܻᵼÖÂÔªËØÃû³Æ¡°´óСдÕÛµþ¡±£¨<glossterm>case-folded</glossterm>£©¡£¡°´óСдÕÛµþ¡±±» XML ±ê×¼¶¨ÒåΪ¡°Ò»¸öÓ¦ÓÃÓÚһϵÁÐ×Ö·ûµÄ¹ý³Ì£¬Ôڸùý³ÌÖУ¬ÕâЩ×Ö·ûÖеÄËùÓеķǴóд×Ö·û½«±»Ìæ»»³ÉËüÃǶÔÓ¦´óдµÈ¼Û×Ö·û¡±¡£»»¾ä»°Ëµ£¬¶ÔÓÚ XML£¬¡°´óСдÕÛµþ¡±¾ÍÊÇÖ¸½«×Ö·û´®×ª»»³É´óд×Ö·û¡£ </para> <para> - ËùÓб»´«µÝ¸ø´¦ÀíÆ÷º¯ÊýµÄÔªËØÃû³Æ½«Ä¬Èϵķ¢Éú¡°´óСдÕÛµþ¡±¡£¸Ã¹ý³Ì¿ÉÒԷֱ𱻠<function>xml_parser_get_option</function> ºÍ <function>xml_parser_set_option</function> º¯Êý²éѯºÍ¿ØÖÆ¡£ + ËùÓб»´«µÝ¸ø´¦ÀíÆ÷º¯ÊýµÄÔªËØÃû³Æ½«Ä¬Èϵķ¢Éú¡°´óСдÕÛµþ¡±¡£¸Ã¹ý³Ì¿ÉÒԷֱ𱻠+ <function>xml_parser_get_option</function> ºÍ + <function>xml_parser_set_option</function> º¯Êý²éѯºÍ¿ØÖÆ¡£ </para> </section> @@ -175,13 +202,27 @@ <section id="xml.encoding"> <title>×Ö·û±àÂë</title> <para> - PHP µÄ XML À©Õ¹¿âÖ§³Ö²»Í¬×Ö·û±àÂ루<glossterm>character encoding</glossterm>£©µÄ <ulink url="&url.unicode;">Unicode</ulink> ×Ö·û¼¯¡£×Ö·û±àÂëÓÐÁ½ÖÖÐÎʽ£¬ËüÃÇ·Ö±ðÊÇ¡°Ô´±àÂ롱£¨<glossterm>source encoding</glossterm>£©ºÍ¡°Ä¿±ê±àÂ롱£¨<glossterm>target encoding</glossterm>£©¡£PHP ¶ÔÎĵµÄÚ²¿±íʾµÄ±àÂ뷽ʽÊÇ <literal>UTF-8</literal>¡£ + PHP µÄ XML À©Õ¹¿âÖ§³Ö²»Í¬×Ö·û±àÂ루<glossterm>character encoding</glossterm>£©µÄ + <ulink url="&url.unicode;">Unicode</ulink> + ×Ö·û¼¯¡£×Ö·û±àÂëÓÐÁ½ÖÖÐÎʽ£¬ËüÃÇ·Ö±ðÊÇ¡°Ô´±àÂ롱£¨<glossterm>source + encoding</glossterm>£©ºÍ¡°Ä¿±ê±àÂ롱£¨<glossterm>target + encoding</glossterm>£©¡£PHP ¶ÔÎĵµÄÚ²¿±íʾµÄ±àÂ뷽ʽÊÇ + <literal>UTF-8</literal>¡£ + </para> + <para> + Ô´±àÂ뽫ÔÚ XML Îĵµ±»<link + linkend="function.xml-parse">½âÎö</link>ºóÍê³É¡£Ô´±àÂë¿ÉÔÚ<link + linkend="function.xml-parser-create">½¨Á¢Ò»¸ö XML + ½âÎöÆ÷</link>ʱָÃ÷£¨¸Ã±àÂ뷽ʽÔÚ XML + ½âÎöÆ÷µÄÉúÃüÖÜÆÚÖв»Äܱ»Ôٴθı䣩¡£Ö§³ÖµÄ±àÂ뷽ʽ°üÀ¨ + <literal>ISO-8859-1</literal>£¬<literal>US-ASCII</literal> + ºÍ <literal>UTF-8</literal>¡£Ç°Á½ÖÖΪµ¥×Ö½Ú±àÂ룬¼´Ã¿¸ö×Ö·û±»Ò»¸öµ¥Ò»µÄ×Ö½Ú±íʾ¡£<literal>UTF-8</literal> + Ö§³Ö 1 ÖÁ 4 ¸ö×ֽڵĶà bit£¨×î¶à 12£©×Ö·û±àÂë¡£PHP ĬÈÏʹÓà + <literal>ISO-8859-1</literal> ×÷ΪԴ±àÂ뷽ʽ¡£ </para> <para> - Ô´±àÂ뽫ÔÚ XML Îĵµ±»<link linkend="function.xml-parse">½âÎö</link>ºóÍê³É¡£Ô´±àÂë¿ÉÔÚ<link linkend="function.xml-parser-create">½¨Á¢Ò»¸ö XML ½âÎöÆ÷</link>ʱָÃ÷£¨¸Ã±àÂ뷽ʽÔÚ XML ½âÎöÆ÷µÄÉúÃüÖÜÆÚÖв»Äܱ»Ôٴθı䣩¡£Ö§³ÖµÄ±àÂ뷽ʽ°üÀ¨ <literal>ISO-8859-1</literal>£¬<literal>US-ASCII</literal> ºÍ <literal>UTF-8</literal>¡£Ç°Á½ÖÖΪµ¥×Ö½Ú±àÂ룬¼´Ã¿¸ö×Ö·û±»Ò»¸öµ¥Ò»µÄ×Ö½Ú±íʾ¡£ <literal>UTF-8</literal> Ö§³Ö 1 ÖÁ 4 ¸ö×ֽڵĶà bit£¨×î¶à 12£©×Ö·û±àÂë¡£PHP ĬÈÏʹÓà <literal>ISO-8859-1</literal> ×÷ΪԴ±àÂ뷽ʽ¡£ - </para> - <para> - Ä¿±ê±àÂ뽫ÔÚ PHP Ïò XML ´¦ÀíÆ÷º¯Êý´«ËÍÊý¾Ýʱ±»Íê³É¡£µ± XML ½âÎöÆ÷±»½¨Á¢ºó£¬Ä¿±ê±àÂ뽫±»ÉèÖóÉÓëÔ´±àÂëÏàͬµÄ±àÂ뷽ʽ£¬µ«¸Ã·½Ê½¿ÉÔÚÈκÎʱºò±»¸ü¸Ä¡£Ä¿±ê±àÂ뽫ӰÏì×Ö·ûÊý¾Ý¡¢±ê¼Ç·ûÃû³ÆÒÔ¼°´¦ÀíÖ¸ÁîÄ¿±ê£¨PI target£©¡£ + Ä¿±ê±àÂ뽫ÔÚ PHP Ïò XML ´¦ÀíÆ÷º¯Êý´«ËÍÊý¾Ýʱ±»Íê³É¡£µ± XML + ½âÎöÆ÷±»½¨Á¢ºó£¬Ä¿±ê±àÂ뽫±»ÉèÖóÉÓëÔ´±àÂëÏàͬµÄ±àÂ뷽ʽ£¬µ«¸Ã·½Ê½¿ÉÔÚÈκÎʱºò±»¸ü¸Ä¡£Ä¿±ê±àÂ뽫ӰÏì×Ö·ûÊý¾Ý¡¢±ê¼Ç·ûÃû³ÆÒÔ¼°´¦ÀíÖ¸ÁîÄ¿±ê£¨PI target£©¡£ </para> <para> Èç¹û XML ½âÎöÆ÷Óöµ½ÆäÔ´±àÂ뷽ʽ±íʾÄÜÁ¦Ö®ÍâµÄ×Ö·û£¬Ëü½«·µ»ØÒ»¸ö´íÎó¡£ @@ -208,7 +249,7 @@ $file = "data.xml"; $depth = array(); -function startElement($parser, $name, $attrs) +function startElement($parser, $name, $attrs) { global $depth; for ($i = 0; $i < $depth[$parser]; $i++) { @@ -218,7 +259,7 @@ $depth[$parser]++; } -function endElement($parser, $name) +function endElement($parser, $name) { global $depth; $depth[$parser]--; @@ -251,7 +292,9 @@ <example> <title>½« XML Ó³ÉäΪ HTML</title> <para> - ÒÔÏ·¶Àý½« XML ÎĵµÖеıê¼Ç·ûÖ±½ÓÓ³Éä³É HTML ±ê¼Ç·û¡£ÔÚ¡°Ó³ÉäÊý×顱Öв»´æÔÚµÄÔªËØ½«±»ºöÂÔ¡£µ±È»£¬¸Ã·¶Àý½«Ö»¶ÔÒ»¸öÌØ¶¨µÄ XML ÎĵµÓÐЧ¡£ + ÒÔÏ·¶Àý½« XML ÎĵµÖеıê¼Ç·ûÖ±½ÓÓ³Éä³É HTML + ±ê¼Ç·û¡£ÔÚ¡°Ó³ÉäÊý×顱Öв»´æÔÚµÄÔªËØ½«±»ºöÂÔ¡£µ±È»£¬¸Ã·¶Àý½«Ö»¶ÔÒ»¸öÌØ¶¨µÄ + XML ÎĵµÓÐЧ¡£ </para> <para> <programlisting role="php"> @@ -264,7 +307,7 @@ "LITERAL" => "TT" ); -function startElement($parser, $name, $attrs) +function startElement($parser, $name, $attrs) { global $map_array; if (isset($map_array[$name])) { @@ -272,7 +315,7 @@ } } -function endElement($parser, $name) +function endElement($parser, $name) { global $map_array; if (isset($map_array[$name])) { @@ -280,7 +323,7 @@ } } -function characterData($parser, $data) +function characterData($parser, $data) { echo $data; } @@ -316,7 +359,8 @@ ¸Ã·¶ÀýÄܹ»¸ßÁÁÏÔʾ XML Ô´´úÂë¡£Ëü½«ËµÃ÷ÈçºÎÍⲿʵÌåÖ¸Ïò´¦ÀíÆ÷À´°üº¬ºÍ½âÎöÆäËüÎĵµ£¬ÈçºÎ´¦Àí PIs£¬ÒÔ¼°Ò»ÖÖÈ·¶¨°üº¬ÓÐ PIs µÄ´úÂëµÄ¿ÉÐŶȡ£ </para> <para> - Äܱ»¸Ã·¶ÀýʹÓÃµÄµÄ XML Îĵµ£¨<filename>xmltest.xml</filename> ºÍ <filename>xmltest2.xml</filename>£©±»ÁÐÔڸ÷¶ÀýÖ®ºó¡£ + Äܱ»¸Ã·¶ÀýʹÓÃµÄµÄ XML Îĵµ£¨<filename>xmltest.xml</filename> ºÍ + <filename>xmltest2.xml</filename>£©±»ÁÐÔڸ÷¶ÀýÖ®ºó¡£ </para> <para> <example> @@ -326,39 +370,39 @@ <?php $file = "xmltest.xml"; -function trustedFile($file) +function trustedFile($file) { // only trust local files owned by ourselves - if (!eregi("^([a-z]+)://", $file) + if (!eregi("^([a-z]+)://", $file) && fileowner($file) == getmyuid()) { return true; } return false; } -function startElement($parser, $name, $attribs) +function startElement($parser, $name, $attribs) { echo "<<font color=\"#0000cc\">$name</font>"; if (count($attribs)) { foreach ($attribs as $k => $v) { - echo " <font color=\"#009900\">$k</font>=\"<font + echo " <font color=\"#009900\">$k</font>=\"<font color=\"#990000\">$v</font>\""; } } echo ">"; } -function endElement($parser, $name) +function endElement($parser, $name) { echo "</<font color=\"#0000cc\">$name</font>>"; } -function characterData($parser, $data) +function characterData($parser, $data) { echo "<b>$data</b>"; } -function PIHandler($parser, $target, $data) +function PIHandler($parser, $target, $data) { switch (strtolower($target)) { case "php": @@ -369,20 +413,20 @@ if (trustedFile($parser_file[$parser])) { eval($data); } else { - printf("Untrusted PHP code: <i>%s</i>", + printf("Untrusted PHP code: <i>%s</i>", htmlspecialchars($data)); } break; } } -function defaultHandler($parser, $data) +function defaultHandler($parser, $data) { if (substr($data, 0, 1) == "&" && substr($data, -1, 1) == ";") { - printf('<font color="#aa00aa">%s</font>', + printf('<font color="#aa00aa">%s</font>', htmlspecialchars($data)); } else { - printf('<font size="-1">%s</font>', + printf('<font size="-1">%s</font>', htmlspecialchars($data)); } } @@ -410,7 +454,7 @@ return false; } -function new_xml_parser($file) +function new_xml_parser($file) { global $parser_file; @@ -421,7 +465,7 @@ xml_set_processing_instruction_handler($xml_parser, "PIHandler"); xml_set_default_handler($xml_parser, "defaultHandler"); xml_set_external_entity_ref_handler($xml_parser, "externalEntityRefHandler"); - + if (!($fp = @fopen($file, "r"))) { return false; } http://cvs.php.net/diff.php/phpdoc-zh/reference/xmlrpc/reference.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-zh/reference/xmlrpc/reference.xml diff -u phpdoc-zh/reference/xmlrpc/reference.xml:1.2 phpdoc-zh/reference/xmlrpc/reference.xml:1.3 --- phpdoc-zh/reference/xmlrpc/reference.xml:1.2 Fri Jul 8 13:33:20 2005 +++ phpdoc-zh/reference/xmlrpc/reference.xml Mon Aug 29 17:28:43 2005 @@ -1,16 +1,16 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> -<!-- $Author: yincheng $ --> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.7 Maintainer: nio Status: ready --> <reference id="ref.xmlrpc"> - <title>XML-RPC º¯Êý¿â</title> + <title>XML-RPC º¯Êý</title> <titleabbrev>XML-RPC</titleabbrev> <partintro> <section id="xmlrpc.intro"> &reftitle.intro; <para> - ÕâЩº¯Êý¿ÉÓÃÓÚ±àд XML-RPC ·þÎñ¶ËºÍ¿Í»§¶Ë¡£Äã¿ÉÒÔÔÚ + ±¾ÀຯÊý¿ÉÓÃÓÚ±àд XML-RPC ·þÎñ¶ËºÍ¿Í»§¶Ë¡£¿ÉÒÔÔÚ <ulink url="&url.xmlrpc;">&url.xmlrpc;</ulink> ÕÒµ½¸ü¶à¹ØÓÚ XML-RPC µÄÐÅÏ¢£¬Í¬Ê±¿ÉÔÚ <ulink url="&url.xmlrpc-epi;">&url.xmlrpc-epi;</ulink> @@ -18,12 +18,12 @@ </para> &warn.experimental; </section> - + <section id="xmlrpc.requirements"> &reftitle.required; &no.requirement; </section> - + &reference.xmlrpc.configure; &reference.xmlrpc.ini;
http://cvs.php.net/diff.php/phpdoc-zh/reference/math/reference.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-zh/reference/math/reference.xml diff -u phpdoc-zh/reference/math/reference.xml:1.6 phpdoc-zh/reference/math/reference.xml:1.7 --- phpdoc-zh/reference/math/reference.xml:1.6 Fri Mar 21 01:56:22 2003 +++ phpdoc-zh/reference/math/reference.xml Mon Aug 29 17:28:39 2005 @@ -1,28 +1,31 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Author: gregory $ --> -<!-- $Revision: 1.6 $ --> +<!-- $Author: dallas $ --> +<!-- $Revision: 1.7 $ --> <!-- EN-Revision: 1.6 Maintainer: yincheng Status: ready --> <reference id="ref.math"> - <title>Êýѧº¯Êý¿â</title> + <title>Math Êýѧº¯Êý</title> <titleabbrev>Math</titleabbrev> - + <partintro> <section id="math.intro"> &reftitle.intro; <para> - ÕâЩÊýѧº¯Êý½öÄÜ´¦ÀíÔÚÄã¼ÆËã»úÉÏ<type>ÕûÐÍ</type>ºÍ<type>¸¡µãÐÍ</type>·¶Î§ÄÚµÄÖµ£¨Õ⵱ǰ·ûºÏ - C ÀàÐÍÖÐµÄ long ºÍ double)¡£Èç¹ûÄãÒª´¦Àí¸ü´óµÄÊý×Ö£¬²Î¿´<link linkend="ref.bc">ÈÎÒ⾫¶ÈÊýѧº¯Êý¿â</link>¡£ + ÕâЩÊýѧº¯Êý½öÄÜ´¦ÀíÔÚÄã¼ÆËã»úÉÏ <type>integer</type> ºÍ + <type>float</type>·¶Î§ÄÚµÄÖµ£¨Õ⵱ǰ·ûºÏ + C ÀàÐÍÖÐµÄ long ºÍ double)¡£Èç¹ûÒª´¦Àí¸ü´óµÄÊý×Ö£¬²Î¿´<link + linkend="ref.bc">ÈÎÒ⾫¶ÈÊýѧº¯Êý</link>¡£ </para> - <simpara> - Çë²ÎÔÄÊÖ²áÖС°<link linkend="language.operators.arithmetic">ËãÊõ²Ù×÷·û</link>¡±µÄÓйØÕ½Ú. - </simpara> + <simpara> + Çë²ÎÔÄÊÖ²áÖÐ<link + linkend="language.operators.arithmetic">ËãÊõÔËËã·û</link>µÄÓйØÕ½ڡ£ + </simpara> </section> <section id="math.requirements"> &reftitle.required; &no.requirement; </section> - + <section id="math.installation"> &reftitle.install; &no.install; http://cvs.php.net/diff.php/phpdoc-zh/reference/mysql/reference.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-zh/reference/mysql/reference.xml diff -u phpdoc-zh/reference/mysql/reference.xml:1.10 phpdoc-zh/reference/mysql/reference.xml:1.11 --- phpdoc-zh/reference/mysql/reference.xml:1.10 Wed Aug 10 20:43:19 2005 +++ phpdoc-zh/reference/mysql/reference.xml Mon Aug 29 17:28:40 2005 @@ -1,16 +1,16 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.21 Maintainer: Gregory Status: ready --> <reference id="ref.mysql"> - <title>MySQL º¯Êý¿â</title> + <title>MySQL º¯Êý</title> <titleabbrev>MySQL</titleabbrev> <partintro> <section id="mysql.intro"> &reftitle.intro; <para> - Äã¿ÉÒÔʹÓøú¯Êý¿â·ÃÎÊ MySQL Êý¾Ý¿â·þÎñÆ÷¡£ÓÐ¹Ø MySQL µÄÏêϸÐÅÏ¢¿ÉÒÔµ½ <ulink + ¿ÉÒÔʹÓñ¾ÀຯÊý·ÃÎÊ MySQL Êý¾Ý¿â·þÎñÆ÷¡£ÓÐ¹Ø MySQL µÄÏêϸÐÅÏ¢¿ÉÒÔµ½ <ulink url="&url.mysql;">&url.mysql;</ulink> ²éѯ¡£ </para> <para> @@ -22,7 +22,7 @@ <section id="mysql.requirements"> &reftitle.required; <para> - ΪÁËÄܹ»Ë³ÀûµÄʹÓøú¯Êý¿â£¬Äã±ØÐëÔÚ±àÒë PHP µÄʱºòÌí¼Ó MySQL µÄÖ§³Ö¡£ + ΪÁËÄܹ»Ë³ÀûµÄʹÓñ¾ÀຯÊý£¬±ØÐëÔÚ±àÒë PHP µÄʱºòÌí¼Ó MySQL µÄÖ§³Ö¡£ </para> </section> @@ -54,7 +54,7 @@ <section id="mysql.examples"> &reftitle.examples; <para> - Õâ¸ö¼òµ¥µÄÀý×ÓÑÝʾÈçºÎÁ¬½ÓÊý¾Ý¿â£¬Ö´ÐвéѯÓï¾ä£¬´òÓ¡·µ»Ø½á¹û¼¯ºÍ¶Ï¿ªÊý¾Ý¿âµÈһϵÁлù±¾µÄ + ÏÂÃæµÄ¼òµ¥Àý×ÓÑÝʾÈçºÎÁ¬½ÓÊý¾Ý¿â£¬Ö´ÐвéѯÓï¾ä£¬´òÓ¡·µ»Ø½á¹û¼¯ºÍ¶Ï¿ªÊý¾Ý¿âµÈһϵÁлù±¾µÄ MySQL ²Ù×÷¡£ <example> <title>MySQL À©Õ¹·¶Àý</title> http://cvs.php.net/diff.php/phpdoc-zh/reference/oci8/constants.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-zh/reference/oci8/constants.xml diff -u phpdoc-zh/reference/oci8/constants.xml:1.2 phpdoc-zh/reference/oci8/constants.xml:1.3 --- phpdoc-zh/reference/oci8/constants.xml:1.2 Fri Jun 27 01:28:35 2003 +++ phpdoc-zh/reference/oci8/constants.xml Mon Aug 29 17:28:41 2005 @@ -1,349 +1,387 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- $Author: yincheng $ --> -<!-- EN-Revision: 1.2 Maintainer: yincheng Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.5 Maintainer: yincheng Status: partial --> <section id="oci8.constants"> &reftitle.constants; &extension.constants; <variablelist> <varlistentry> <term> - <constant>OCI_DEFAULT</constant> + <constant>OCI_DEFAULT</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Statement execution mode. Statement is not committed + automatically when using this mode. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_DESCRIBE_ONLY</constant> + <constant>OCI_DESCRIBE_ONLY</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Statement execution mode. Use this mode if you don't want + to really execute query, but only get select-list description. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_COMMIT_ON_SUCCESS</constant> + <constant>OCI_COMMIT_ON_SUCCESS</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Statement execution mode. Statement is automatically committed after + <function>oci_execute</function> call. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_EXACT_FETCH</constant> + <constant>OCI_EXACT_FETCH</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Statement fetch mode. Used when the application knows + in advance exactly how many rows it will be fetching. + This mode turns prefetching off for Oracle release 8 + or later mode. Cursor is cancelled after the desired + rows are fetched and may result in reduced server-side + resource usage. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>SQLT_BFILEE</constant> + <constant>OCI_SYSDATE</constant> (<type>integer</type>) </term> <listitem> <simpara> - + </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>SQLT_CFILEE</constant> + <constant>OCI_B_BFILE</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_bind_by_name</function> when + binding BFILEs. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>SQLT_CLOB</constant> + <constant>OCI_B_CFILEE</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_bind_by_name</function> when + binding CFILEs. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>SQLT_BLOB</constant> + <constant>OCI_B_CLOB</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_bind_by_name</function> when + binding CLOBs. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>SQLT_RDD</constant> + <constant>OCI_B_BLOB</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_bind_by_name</function> when + binding BLOBs. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_B_SQLT_NTY</constant> + <constant>OCI_B_ROWID</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_bind_by_name</function> when + binding ROWIDs. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_SYSDATE</constant> + <constant>OCI_B_CURSOR</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_bind_by_name</function> when + binding cursors, previously allocated with <function>oci_new_descriptor</function>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_B_BFILE</constant> + <constant>OCI_B_NTY</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_bind_by_name</function> when + binding named data types. Note: in PHP < 5.0 it was called + <constant>OCI_B_SQLT_NTY</constant>. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>OCI_B_BIN</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_B_CFILEE</constant> + <constant>SQLT_BFILEE</constant> (<type>integer</type>) </term> <listitem> <simpara> - + The same as <constant>OCI_B_BFILE</constant>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_B_CLOB</constant> + <constant>SQLT_CFILEE</constant> (<type>integer</type>) </term> <listitem> <simpara> - + The same as <constant>OCI_B_CFILEE</constant>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_B_BLOB</constant> + <constant>SQLT_CLOB</constant> (<type>integer</type>) </term> <listitem> <simpara> - + The same as <constant>OCI_B_CLOB</constant>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_B_ROWID</constant> + <constant>SQLT_BLOB</constant> (<type>integer</type>) </term> <listitem> <simpara> - + The same as <constant>OCI_B_BLOB</constant>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_B_CURSOR</constant> + <constant>SQLT_RDD</constant> (<type>integer</type>) </term> <listitem> <simpara> - + The same as <constant>OCI_B_ROWID</constant>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_B_BIN</constant> + <constant>SQLT_NTY</constant> (<type>integer</type>) </term> <listitem> <simpara> - + The same as <constant>OCI_B_NTY</constant>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_FETCHSTATEMENT_BY_COLUMN</constant> + <constant>OCI_FETCHSTATEMENT_BY_COLUMN</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Default mode of <function>oci_fetch_all</function>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_FETCHSTATEMENT_BY_ROW</constant> + <constant>OCI_FETCHSTATEMENT_BY_ROW</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Alternative mode of <function>oci_fetch_all</function>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_ASSOC</constant> + <constant>OCI_ASSOC</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_fetch_all</function> and + <function>oci_fetch_array</function> to get an associative + array as a result. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_NUM</constant> + <constant>OCI_NUM</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_fetch_all</function> and + <function>oci_fetch_array</function> to get an enumerated + array as a result. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_BOTH</constant> + <constant>OCI_BOTH</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_fetch_all</function> and + <function>oci_fetch_array</function> to get an array with + both associative and number indices. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_RETURN_NULLS</constant> + <constant>OCI_RETURN_NULLS</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_fetch_array</function> to get + empty array elements if field's value is &null;. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_RETURN_LOBS</constant> + <constant>OCI_RETURN_LOBS</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Used with <function>oci_fetch_array</function> to get + value of LOB instead of the descriptor. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_DTYPE_FILE</constant> + <constant>OCI_DTYPE_FILE</constant> (<type>integer</type>) </term> <listitem> <simpara> - + This flag tells <function>oci_new_descriptor</function> to + initialize new FILE descriptor. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_DTYPE_LOB</constant> + <constant>OCI_DTYPE_LOB</constant> (<type>integer</type>) </term> <listitem> <simpara> - + This flag tells <function>oci_new_descriptor</function> to + initialize new LOB descriptor. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_DTYPE_ROWID</constant> + <constant>OCI_DTYPE_ROWID</constant> (<type>integer</type>) </term> <listitem> <simpara> - + This flag tells <function>oci_new_descriptor</function> to + initialize new ROWID descriptor. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_D_FILE</constant> + <constant>OCI_D_FILE</constant> (<type>integer</type>) </term> <listitem> <simpara> - + The same as <constant>OCI_DTYPE_FILE</constant>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_D_LOB</constant> + <constant>OCI_D_LOB</constant> (<type>integer</type>) </term> <listitem> <simpara> - + The same as <constant>OCI_DTYPE_LOB</constant>. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>OCI_D_ROWID</constant> + <constant>OCI_D_ROWID</constant> (<type>integer</type>) </term> <listitem> <simpara> - + The same as <constant>OCI_DTYPE_ROWID</constant>. </simpara> </listitem> </varlistentry> http://cvs.php.net/diff.php/phpdoc-zh/reference/oci8/reference.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-zh/reference/oci8/reference.xml diff -u phpdoc-zh/reference/oci8/reference.xml:1.8 phpdoc-zh/reference/oci8/reference.xml:1.9 --- phpdoc-zh/reference/oci8/reference.xml:1.8 Thu Jul 7 03:54:17 2005 +++ phpdoc-zh/reference/oci8/reference.xml Mon Aug 29 17:28:41 2005 @@ -1,20 +1,20 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.8 $ --> -<!-- $Author: yincheng $ --> +<!-- $Revision: 1.9 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.13 Maintainer: yincheng Status: ready --> <reference id="ref.oci8"> - <title>Oracle 8 º¯Êý¿â</title> + <title>OCI8 Oracle º¯Êý</title> <titleabbrev>OCI8</titleabbrev> <partintro> <section id="oci8.intro"> &reftitle.intro; <para> - ÕâЩº¯ÊýÔÊÐíÄã·ÃÎÊ Oracle9,Oracle8 ºÍ Oracle7 - Êý¾Ý¿â¡£ÕâЩº¯ÊýʹÓà Oracle Call Interface (OCI)¡£ + ±¾ÀຯÊýÔÊÐíÄã·ÃÎÊ Oracle9,Oracle8 ºÍ Oracle7 + Êý¾Ý¿â¡£±¾ÀຯÊýʹÓà Oracle Call Interface£¨OCI£©¡£ </para> <para> - ¸ÃÀ©Õ¹±È <link linkend="ref.oracle">¾É°æ Oracle</link>À©Õ¹¸üÁé»î¡£Ö§³ÖÏò + ¸ÃÀ©Õ¹±È<link linkend="ref.oracle">¾É°æ Oracle</link> À©Õ¹¸üÁé»î¡£Ö§³ÖÏò Oracle λÖñêÖ¾·û°ó¶¨¾Ö²¿ºÍÈ«¾Ö PHP ±äÁ¿£¬È«ÃæÖ§³Ö LOB¡¢FILE ºÍ ROWID£¬ÔÊÐíÓû§Ê¹ÓÃÓû§×Ô¶¨ÒåµÄ±äÁ¿¡£ ÄãÓ¦¸Ã¾¡¿ÉÄܵÄʹÓÃÕâ¸öÀ©Õ¹À´´úÌæ @@ -72,13 +72,13 @@ <note> <title>Èç¹ûÄãµÄ web ·þÎñÆ÷²»Äܹ»Æô¶¯»òÕßÔÚÆô¶¯µÄʱºò±ÀÀ£</title> <para> - ¼ì²é Apache ÊÇ·ñʹÓÃÁË pthread ¿â: + ¼ì²é Apache ÊÇ·ñʹÓÃÁË pthread ¿â: </para> <para> <informalexample> <screen> <![CDATA[ -# ldd /www/apache/bin/httpd +# ldd /www/apache/bin/httpd libpthread.so.0 => /lib/libpthread.so.0 (0x4001c000) libm.so.6 => /lib/libm.so.6 (0x4002f000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x4004c000) @@ -111,7 +111,7 @@ </para> </note> </section> - + &reference.oci8.configure; <section id="oci8.configuration"> @@ -174,7 +174,7 @@ '$postalcode', '$country', :error_code );end;"); // This calls stored procedure sp_newaddress, with :address_id being an -// in/out variable and :error_code being an out variable. +// in/out variable and :error_code being an out variable. // Then you do the binding: OCIBindByName($sth, ":address_id", $addr_id, 10); http://cvs.php.net/diff.php/phpdoc-zh/reference/oracle/reference.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-zh/reference/oracle/reference.xml diff -u phpdoc-zh/reference/oracle/reference.xml:1.4 phpdoc-zh/reference/oracle/reference.xml:1.5 --- phpdoc-zh/reference/oracle/reference.xml:1.4 Wed Apr 27 20:56:03 2005 +++ phpdoc-zh/reference/oracle/reference.xml Mon Aug 29 17:28:41 2005 @@ -1,23 +1,23 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.4 $ --> -<!-- $Author: class007 $ --> +<!-- $Revision: 1.5 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.5 Maintainer: class007 Status: ready --> <reference id="ref.oracle"> - <title>Oracle º¯Êý¿â</title> + <title>Oracle º¯Êý</title> <titleabbrev>Oracle</titleabbrev> - + <partintro> <section id="oracle.intro"> &reftitle.intro; <para> -¸ÃÀ©Õ¹Ôö¼Ó¶Ô Oracle Êý¾Ý¿â·þÎñÆ÷·ÃÎʵÄÖ§³Ö¡£²Î¼û <link linkend="ref.oci8">OCI8</link> À©Õ¹¡£ + ±¾À©Õ¹Ôö¼Ó¶Ô Oracle Êý¾Ý¿â·þÎñÆ÷·ÃÎʵÄÖ§³Ö¡£²Î¼û <link linkend="ref.oci8">OCI8</link> À©Õ¹¡£ </para> </section> &reference.oracle.configure; - + &reference.oracle.constants; - + </partintro> &reference.oracle.functions; http://cvs.php.net/diff.php/phpdoc-zh/reference/outcontrol/reference.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-zh/reference/outcontrol/reference.xml diff -u phpdoc-zh/reference/outcontrol/reference.xml:1.6 phpdoc-zh/reference/outcontrol/reference.xml:1.7 --- phpdoc-zh/reference/outcontrol/reference.xml:1.6 Fri Nov 26 01:56:16 2004 +++ phpdoc-zh/reference/outcontrol/reference.xml Mon Aug 29 17:28:41 2005 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.6 $ --> -<!-- $Author: zhouhao007 $ --> +<!-- $Revision: 1.7 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.12 Maintainer: micky Status: ready --> <reference id="ref.outcontrol"> - <title>Êä³ö¿ØÖƺ¯Êý</title> + <title>Output Control Êä³ö¿ØÖƺ¯Êý</title> <titleabbrev>Output Control</titleabbrev> <partintro> http://cvs.php.net/diff.php/phpdoc-zh/reference/pcre/reference.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-zh/reference/pcre/reference.xml diff -u phpdoc-zh/reference/pcre/reference.xml:1.3 phpdoc-zh/reference/pcre/reference.xml:1.4 --- phpdoc-zh/reference/pcre/reference.xml:1.3 Fri Aug 19 13:02:25 2005 +++ phpdoc-zh/reference/pcre/reference.xml Mon Aug 29 17:28:41 2005 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.12 Maintainer: dallas Status: ready --> <reference id="ref.pcre"> - <title>ÕýÔò±í´ïʽº¯Êý¿â£¨Perl ¼æÈÝ£©</title> + <title>PCRE ÕýÔò±í´ïʽº¯Êý£¨Perl ¼æÈÝ£©</title> <titleabbrev>PCRE</titleabbrev> <partintro> @@ -26,7 +26,7 @@ </para> <warning> <para> - ÒªÁôÒâµ½ PCRE µÄһЩ¾ÖÏÞ¡£¸ü¶àÐÅÏ¢¼û <ulink + ÒªÁôÒâµ½ PCRE µÄһЩ¾ÖÏÞ¡£¸ü¶àÐÅÏ¢¼û <ulink url="&url.pcre.man;">&url.pcre.man;</ulink>¡£ </para> </warning> http://cvs.php.net/diff.php/phpdoc-zh/reference/pgsql/constants.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-zh/reference/pgsql/constants.xml diff -u phpdoc-zh/reference/pgsql/constants.xml:1.4 phpdoc-zh/reference/pgsql/constants.xml:1.5 --- phpdoc-zh/reference/pgsql/constants.xml:1.4 Tue Jul 22 22:02:32 2003 +++ phpdoc-zh/reference/pgsql/constants.xml Mon Aug 29 17:28:41 2005 @@ -1,209 +1,543 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- $Author: yincheng $ --> -<!-- EN-Revision: 1.2 Maintainer: dallas Status: ready --> +<?xml version="1.0" encoding="gb2312"?> +<!-- $Revision: 1.5 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.8 Maintainer: dallas Status: partial --> <section id="pgsql.constants"> &reftitle.constants; &extension.constants; + <variablelist> <varlistentry> <term> - <constant>PGSQL_ASSOC</constant> + <constant>PGSQL_ASSOC</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_fetch_array</function>. Return an associative array of field + names and values. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_NUM</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_fetch_array</function>. Return a numerically indexed array of field + numbers and values. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_BOTH</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_fetch_array</function>. Return an array of field values + that is both numerically indexed (by field number) and associated (by field name). + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_CONNECT_FORCE_NEW</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Passed to <function>pg_connect</function> to force the creation of a new connection, + rather then re-using an existing identical connection. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_NUM</constant> + <constant>PGSQL_CONNECTION_BAD</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_connection_status</function> indicating that the database + connection is in an invalid state. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_BOTH</constant> + <constant>PGSQL_CONNECTION_OK</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_connection_status</function> indicating that the database + connection is in a valid state. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_CONNECTION_BAD</constant> + <constant>PGSQL_SEEK_SET</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Passed to <function>pg_lo_seek</function>. Seek operation is to begin + from the start of the object. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_CONNECTION_OK</constant> + <constant>PGSQL_SEEK_CUR</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Passed to <function>pg_lo_seek</function>. Seek operation is to begin + from the current position. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_SEEK_SET</constant> + <constant>PGSQL_SEEK_END</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Passed to <function>pg_lo_seek</function>. Seek operation is to begin + from the end of the object. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_SEEK_CUR</constant> + <constant>PGSQL_EMPTY_QUERY</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_result_status</function>. The string sent to the server + was empty. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_SEEK_END</constant> + <constant>PGSQL_COMMAND_OK</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_result_status</function>. Successful completion of a + command returning no data. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_ESCAPE_STRING</constant> + <constant>PGSQL_TUPLES_OK</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_result_status</function>. Successful completion of a command + returning data (such as a <literal>SELECT</literal> or <literal>SHOW</literal>). </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_ESCAPE_BYTEA</constant> + <constant>PGSQL_COPY_OUT</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_result_status</function>. Copy Out (from server) data + transfer started. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_EMPTY_QUERY</constant> + <constant>PGSQL_COPY_IN</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_result_status</function>. Copy In (to server) data + transfer started. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_COMMAND_OK</constant> + <constant>PGSQL_BAD_RESPONSE</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_result_status</function>. The server's response + was not understood. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_TUPLES_OK</constant> + <constant>PGSQL_NONFATAL_ERROR</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_result_status</function>. A nonfatal error + (a notice or warning) occurred. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_COPY_OUT</constant> + <constant>PGSQL_FATAL_ERROR</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_result_status</function>. A fatal error + occurred. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_COPY_IN</constant> + <constant>PGSQL_TRANSACTION_IDLE</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_transaction_status</function>. Connection is + currently idle, not in a transaction. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_BAD_RESPONSE</constant> + <constant>PGSQL_TRANSACTION_ACTIVE</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_transaction_status</function>. A command + is in progress on the connection. A query has been sent via the connection + and not yet completed. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_NONFATAL_ERROR</constant> + <constant>PGSQL_TRANSACTION_INTRANS</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_transaction_status</function>. The connection + is idle, in a transaction block. </simpara> </listitem> </varlistentry> <varlistentry> <term> - <constant>PGSQL_FATAL_ERROR</constant> + <constant>PGSQL_TRANSACTION_INERROR</constant> (<type>integer</type>) </term> <listitem> <simpara> - + Returned by <function>pg_transaction_status</function>. The connection + is idle, in a failed transaction block. </simpara> </listitem> </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_TRANSACTION_UNKNOWN</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Returned by <function>pg_transaction_status</function>. The connection + is bad. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_SEVERITY</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + The severity; the field contents are <literal>ERROR</literal>, + <literal>FATAL</literal>, or <literal>PANIC</literal> (in an error message), or + <literal>WARNING</literal>, <literal>NOTICE</literal>, <literal>DEBUG</literal>, + <literal>INFO</literal>, or <literal>LOG</literal> (in a notice message), or a localized + translation of one of these. Always present. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_SQLSTATE</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + The SQLSTATE code for the error. The SQLSTATE code identifies the type of error + that has occurred; it can be used by front-end applications to perform specific + operations (such as error handling) in response to a particular database error. + This field is not localizable, and is always present. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_MESSAGE_PRIMARY</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + The primary human-readable error message (typically one line). Always present. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_MESSAGE_DETAIL</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + Detail: an optional secondary error message carrying more detail about the problem. May run to multiple lines. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_MESSAGE_HINT</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + Hint: an optional suggestion what to do about the problem. This is intended to differ from detail in that it + offers advice (potentially inappropriate) rather than hard facts. May run to multiple lines. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_STATEMENT_POSITION</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + A string containing a decimal integer indicating an error cursor position as an index into the original + statement string. The first character has index 1, and positions are measured in characters not bytes. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_INTERNAL_POSITION</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + This is defined the same as the <constant>PG_DIAG_STATEMENT_POSITION</constant> field, but + it is used when the cursor position refers to an internally generated + command rather than the one submitted by the client. The + <constant>PG_DIAG_INTERNAL_QUERY</constant> field will always appear when this + field appears. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_INTERNAL_QUERY</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + The text of a failed internally-generated command. This could be, for example, a + SQL query issued by a PL/pgSQL function. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_CONTEXT</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + An indication of the context in which the error occurred. Presently + this includes a call stack traceback of active procedural language + functions and internally-generated queries. The trace is one entry + per line, most recent first. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_SOURCE_FILE</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + The file name of the PostgreSQL source-code location where the error + was reported. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_SOURCE_LINE</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + The line number of the PostgreSQL source-code location where the + error was reported. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_DIAG_SOURCE_FUNCTION</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_error_field</function>. + The name of the PostgreSQL source-code function reporting the error. + </simpara> + </listitem> + </varlistentry> + + <varlistentry> + <term> + <constant>PGSQL_ERRORS_TERSE</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_set_error_verbosity</function>. + Specified that returned messages include severity, primary text, + and position only; this will normally fit on a single line. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_ERRORS_DEFAULT</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_set_error_verbosity</function>. + The default mode produces messages that include the above + plus any detail, hint, or context fields (these may span + multiple lines). + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_ERRORS_VERBOSE</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_set_error_verbosity</function>. + The verbose mode includes all available fields. + </simpara> + </listitem> + </varlistentry> + + <varlistentry> + <term> + <constant>PGSQL_STATUS_LONG</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_status</function>. Indicates that + numerical result code is desired. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_STATUS_STRING</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_result_status</function>. Indicates that + textual result command tag is desired. + </simpara> + </listitem> + </varlistentry> + + <varlistentry> + <term> + <constant>PGSQL_CONV_IGNORE_DEFAULT</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_convert</function>. + Ignore default values in the table during conversion. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_CONV_FORCE_NULL</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_convert</function>. + Use SQL <literal>NULL</literal> in place of an empty <type>string</type>. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + <constant>PGSQL_CONV_IGNORE_DEFAULT</constant> + (<type>integer</type>) + </term> + <listitem> + <simpara> + Passed to <function>pg_convert</function>. + Ignore conversion of &null; into SQL <literal>NOT NULL</literal> columns. + </simpara> + </listitem> + </varlistentry> + </variablelist> </section> http://cvs.php.net/diff.php/phpdoc-zh/reference/pgsql/reference.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-zh/reference/pgsql/reference.xml diff -u phpdoc-zh/reference/pgsql/reference.xml:1.9 phpdoc-zh/reference/pgsql/reference.xml:1.10 --- phpdoc-zh/reference/pgsql/reference.xml:1.9 Sun Feb 23 09:48:43 2003 +++ phpdoc-zh/reference/pgsql/reference.xml Mon Aug 29 17:28:41 2005 @@ -1,49 +1,54 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.15 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.25 Maintainer: dallas Status: ready --> <!-- CREDITS: Gregory --> - <reference id="ref.pgsql"> - <title>PostgreSQL Êý¾Ý¿âº¯Êý¿â</title> - <titleabbrev>PostgreSQL</titleabbrev> - - <partintro> - <section id="pgsql.intro"> - &reftitle.intro; - <para> - PostgreSQL ÊÇÒ»¸ö¿ª·ÅÔ´ÂëµÄÃâ·ÑÊý¾Ý¿âϵͳ¡£Postgres - ×î³õÓɼÓÖÝ´óѧ²®¿ËÀû·ÖУ¼ÆËã»ú¿ÆÑ§Ïµ¿ª·¢£¬³«µ¼ÁËºÜ¶à¹ØÏµ¶ÔÏóµÄ¹ÛÄÕâЩ¹ÛÄîÏÖÔÚÒѾÓÃÔÚһЩÉÌÒµÊý¾Ý¿âϵͳÖС£ËüÌṩÁË - SQL92/SQL99 ÓïÑÔÖ§³Ö£¬ÊÂÎñ´¦Àí£¬ÒýÓü¯³É£¬´æ´¢¹ý³ÌÒÔ¼°ÀàÐÍÀ©Õ¹¡£PostgreSQL ÔòÊÇ - Postgres µÄÒ»¸ö¿ª·ÅÔ´´úÂëµÄºó´ú¡£ - </para> - </section> +<reference id="ref.pgsql"> + <title>PostgreSQL Êý¾Ý¿âº¯Êý</title> + <titleabbrev>PostgreSQL</titleabbrev> - <section id="pgsql.requirements"> - &reftitle.required; - <para> - ҪʹÓà PostgreSQL Ö§³Ö£¬ÐèÒª PostgreSQL 6.5 »ò¸üа汾£¬PostgreSQL 7.0 - »ò¸üа汾À´Ê¹ÓÃËùÓÐµÄ PostgreSQL Ä£¿é¡£PostgreSQL - Ö§³Ö¶àÖÖ×Ö·û±àÂë°üÀ¨¶à×Ö½Ú×Ö·û±àÂë¡£¹ØÓÚ PostgreSQL - µÄµ±Ç°°æ±¾ÒÔ¼°¸ü¶àÐÅÏ¢¼û <ulink url="&url.pgsql;">&url.pgsql;</ulink> - ÒÔ¼° <ulink url="&url.pgsql.techdocs;">&url.pgsql.techdocs;</ulink>¡£ - </para> - </section> + <partintro> + <section id="pgsql.intro"> + &reftitle.intro; + <para> + PostgreSQL ÊÇÒ»¸ö¿ª·ÅÔ´ÂëµÄÃâ·ÑÊý¾Ý¿âϵͳ¡£Postgres + ×î³õÓɼÓÖÝ´óѧ²®¿ËÀû·ÖУ¼ÆËã»ú¿ÆÑ§Ïµ¿ª·¢£¬³«µ¼ÁËºÜ¶à¹ØÏµ¶ÔÏóµÄ¹ÛÄÕâЩ¹ÛÄîÏÖÔÚÒѾÓÃÔÚһЩÉÌÒµÊý¾Ý¿âϵͳÖС£ËüÌṩÁË + SQL92/SQL99 ÓïÑÔÖ§³Ö£¬ÊÂÎñ´¦Àí£¬ÒýÓü¯³É£¬´æ´¢¹ý³ÌÒÔ¼°ÀàÐÍÀ©Õ¹¡£PostgreSQL ÔòÊÇ + Postgres µÄÒ»¸ö¿ª·ÅÔ´´úÂëµÄºó´ú¡£ + </para> + </section> - &reference.pgsql.configure; + <section id="pgsql.requirements"> + &reftitle.required; + <para> + ҪʹÓà PostgreSQL Ö§³Ö£¬ÐèÒª PostgreSQL 6.5 »ò¸üа汾£¬PostgreSQL 8.0 + »ò¸üа汾À´Ê¹ÓÃËùÓÐµÄ PostgreSQL Ä£¿é¡£PostgreSQL + Ö§³Ö¶àÖÖ×Ö·û±àÂë°üÀ¨¶à×Ö½Ú×Ö·û±àÂë¡£¹ØÓÚ PostgreSQL + µÄµ±Ç°°æ±¾ÒÔ¼°¸ü¶àÐÅÏ¢¼û <ulink url="&url.pgsql;">&url.pgsql;</ulink> + ÒÔ¼° <ulink url="&url.pgsql.manual;">PostgreSQL Îĵµ</ulink>¡£ + </para> + </section> + + &reference.pgsql.configure; - &reference.pgsql.ini; + &reference.pgsql.ini; - <section id="pgsql.using"> - <title>ʹÓ÷½·¨¼°Ìáʾ</title> - <warning> - <para> - ÓÉÓÚ notice message handling ´úÂëÖÐµÄ bug£¬²»ÍƼöÔÚ PHP 4.0.6 ÖÐʹÓà PostgreSQL Ä£¿é¡£Ê¹Óà 4.1.0 »ò¸üа汾¡£ - </para> - </warning> - <warning> - <para> - Ϊ·ûºÏµ±Ç°±àÂë±ê×¼£¬PostgreSQL º¯ÊýÃû³Æ½«ÔÚ 4.2.0 °æ±¾Öиı䡣´ó¶àÊýÐÂÃû³Æ½«¶à³öÒ»¸öÏ»®Ïߣ¬ÀýÈç pg_lo_open()¡£Ò»²¿·Öº¯ÊýÔò¸Ä±äÁËÃû³ÆÒÔ±£³ÖÒ»ÖÂÐÔ¡£ÀýÈç pg_exec() ¸ÄΪ pg_query()¡£Àϵĺ¯ÊýÃûÒÀÈ»¿ÉÒÔÔÚ 4.2.0 ºÍÒÔºóµÄÉÙÊý¼¸¸ö°æ±¾ÖÐʹÓ㬵«ÒÔºó¿ÉÄÜ»áɾ³ý¡£ - </para> + <section id="pgsql.using"> + <title>ʹÓ÷½·¨¼°Ìáʾ</title> + <warning> + <para> + ÓÉÓÚ notice message handling ´úÂëÖÐµÄ bug£¬²»ÍƼöÔÚ + PHP 4.0.6 ÖÐʹÓà PostgreSQL Ä£¿é¡£Ê¹Óà 4.1.0 »ò¸üа汾¡£ + </para> + </warning> + <warning> + <para> + Ϊ·ûºÏµ±Ç°±àÂë±ê×¼£¬PostgreSQL º¯ÊýÃû³Æ½«ÔÚ 4.2.0 + °æ±¾Öиı䡣´ó¶àÊýÐÂÃû³Æ½«¶à³öÒ»¸öÏ»®Ïߣ¬ÀýÈç + pg_lo_open()¡£Ò»²¿·Öº¯ÊýÔò¸Ä±äÁËÃû³ÆÒÔ±£³ÖÒ»ÖÂÐÔ¡£ÀýÈç + pg_exec() ¸ÄΪ pg_query()¡£Àϵĺ¯ÊýÃûÒÀÈ»¿ÉÒÔÔÚ 4.2.0 + ºÍÒÔºóµÄÉÙÊý¼¸¸ö°æ±¾ÖÐʹÓ㬵«ÒÔºó¿ÉÄÜ»áɾ³ý¡£ + </para> <table> <title>ÒѸıäµÄº¯ÊýÃû</title> <tgroup cols="2"> @@ -53,169 +58,174 @@ <entry>ÐÂÃû³Æ</entry> </row> </thead> - <tbody> - <row> - <entry><function>pg_exec</function></entry> - <entry><function>pg_query</function></entry> - </row> - <row> - <entry><function>pg_getlastoid</function></entry> - <entry><function>pg_last_oid</function></entry> - </row> - <row> - <entry><function>pg_cmdtuples</function></entry> - <entry><function>pg_affected_rows</function></entry> - </row> - <row> - <entry><function>pg_numrows</function></entry> - <entry><function>pg_num_rows</function></entry> - </row> - <row> - <entry><function>pg_numfields</function></entry> - <entry><function>pg_num_fields</function></entry> - </row> - <row> - <entry><function>pg_fieldname</function></entry> - <entry><function>pg_field_name</function></entry> - </row> - <row> - <entry><function>pg_fieldsize</function></entry> - <entry><function>pg_field_size</function></entry> - </row> - <row> - <entry><function>pg_fieldnum</function></entry> - <entry><function>pg_field_num</function></entry> - </row> - <row> - <entry><function>pg_fieldprtlen</function></entry> - <entry><function>pg_field_prtlen</function></entry> - </row> - <row> - <entry><function>pg_fieldisnull</function></entry> - <entry><function>pg_field_is_null</function></entry> - </row> - <row> - <entry><function>pg_freeresult</function></entry> - <entry><function>pg_free_result</function></entry> - </row> - <row> - <entry><function>pg_result</function></entry> - <entry><function>pg_fetch_result</function></entry> - </row> - <row> - <entry><function>pg_loreadall</function></entry> - <entry><function>pg_lo_read_all</function></entry> - </row> - <row> - <entry><function>pg_locreate</function></entry> - <entry><function>pg_lo_create</function></entry> - </row> - <row> - <entry><function>pg_lounlink</function></entry> - <entry><function>pg_lo_unlink</function></entry> - </row> - <row> - <entry><function>pg_loopen</function></entry> - <entry><function>pg_lo_open</function></entry> - </row> - <row> - <entry><function>pg_loclose</function></entry> - <entry><function>pg_lo_close</function></entry> - </row> - <row> - <entry><function>pg_loread</function></entry> - <entry><function>pg_lo_read</function></entry> - </row> - <row> - <entry><function>pg_lowrite</function></entry> - <entry><function>pg_lo_write</function></entry> - </row> - <row> - <entry><function>pg_loimport</function></entry> - <entry><function>pg_lo_import</function></entry> - </row> - <row> - <entry><function>pg_loexport</function></entry> - <entry><function>pg_lo_export</function></entry> - </row> - </tbody> - </tgroup> - </table> - <para> - ΪÒÔºóÖ§³ÖÒì²½Á¬½Ó£¬½«²»ÔÙÌᳫÓþÉÓ﷨ʹÓú¯Êý <function>pg_connect</function>/<function>pg_pconnect</function>¡£ÇëÓÃÁ¬½Ó×Ö·û´®×÷Ϊ²ÎÊýÀ´Ê¹Óú¯Êý <function>pg_connect</function> ºÍ <function>pg_pconnect</function>¡£ - </para> - </warning> - <para> - ²»ÊÇËùÓеİ汾¶¼Ö§³ÖËùÓеĺ¯Êý£¬ÕâºÍ libpq µÄ°æ±¾ºÍ±àÒë·½·¨Óйء£Èç¹û±àÒëÔ´´úÂëʱÉÙÁËÒ»¸öº¯Êý£¬ÄÇô libpq ¾Í²»Ö§³ÖÐèÒª¸Ãº¯ÊýµÄ¹¦ÄÜ¡£ - </para> - <para> - ²»ÒªÊ¹ÓÃ±È PostgreSQL ·þÎñÆ÷Á¬½ÓËù½ÓÊܸü¾É°æ±¾µÄ libpq Ò²ºÜÖØÒª¡£Èç¹ûÄãÓÃµÄ libpq °æ±¾±È PostgreSQL ·þÎñÆ÷Ô¤ÆÚµÄµÍ¾Í¿ÉÄܳöÏÖÎÊÌâ¡£ - </para> - <para> - PostgreSQL ÔÚ 6.3 (03/02/1998) °æÖ®ºóĬÈÏʹÓà unix domain sockets£¬Ä¬ÈÏ״̬ϲ»»á´ò¿ª TCP ¶Ë¿Ú¡£ÏÂÃæÕâÕűí˵Ã÷Á˸÷ÖÖн¨Á¬½ÓµÄ¿ÉÄÜÐÔ¡£TCP/IP socket ·ÅÔÚ <filename>/tmp/.s.PGSQL.5432</filename>¡£¸ÃÑ¡Ïî¿ÉÓà <command>postmaster</command> ÖÐµÄ '-i' ²ÎÊý´ò¿ª£¬Ëü±íʾ¡°¼àÊÓ TCP/IP ¶Ë¿ÚÒÔ¼° Unix domain socket¡±¡£ - <table> - <title>Postmaster ºÍ PHP</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Postmaster</entry> - <entry>PHP</entry> - <entry>״̬</entry> - </row> - </thead> - <tbody> - <row> - <entry>postmaster &</entry> - <entry>pg_connect("dbname=MyDbName");</entry> - <entry>OK</entry> - </row> - <row> - <entry>postmaster -i &</entry> - <entry>pg_connect("dbname=MyDbName");</entry> - <entry>OK</entry> - </row> - <row> - <entry>postmaster &</entry> - <entry>pg_connect("host=localhost dbname=MyDbName");</entry> - <entry> - Unable to connect to PostgreSQL server: connectDB() failed: - Is the postmaster running and accepting TCP/IP (with -i) - connection at 'localhost' on port '5432'? in - /path/to/file.php on line 20. - </entry> - </row> - <row> - <entry>postmaster -i &</entry> - <entry>pg_connect("host=localhost dbname=MyDbName");</entry> - <entry>OK</entry> - </row> - </tbody> - </tgroup> - </table> - </para> - <para> - µ½ PostgreSQL ·þÎñÆ÷µÄÁ¬½Ó¿ÉÒÔͨ¹ýÒÔÏÂÃüÁî´®ÖеIJÎÊý¶Ô½¨Á¢£º<command>$conn = - pg_connect("host=myHost port=myPort tty=myTTY options=myOptions - dbname=myDB user=myUser password=myPassword"); - </command> - </para> + <tbody> + <row> + <entry><function>pg_cmdtuples</function></entry> + <entry><function>pg_affected_rows</function></entry> + </row> + <row> + <entry><function>pg_errormessage</function></entry> + <entry><function>pg_last_error</function></entry> + </row> + <row> + <entry><function>pg_exec</function></entry> + <entry><function>pg_query</function></entry> + </row> + <row> + <entry><function>pg_fieldname</function></entry> + <entry><function>pg_field_name</function></entry> + </row> + <row> + <entry><function>pg_fieldsize</function></entry> + <entry><function>pg_field_size</function></entry> + </row> + <row> + <entry><function>pg_fieldnum</function></entry> + <entry><function>pg_field_num</function></entry> + </row> + <row> + <entry><function>pg_fieldprtlen</function></entry> + <entry><function>pg_field_prtlen</function></entry> + </row> + <row> + <entry><function>pg_fieldisnull</function></entry> + <entry><function>pg_field_is_null</function></entry> + </row> + <row> + <entry><function>pg_freeresult</function></entry> + <entry><function>pg_free_result</function></entry> + </row> + <row> + <entry><function>pg_getlastoid</function></entry> + <entry><function>pg_last_oid</function></entry> + </row> + <row> + <entry><function>pg_loreadall</function></entry> + <entry><function>pg_lo_read_all</function></entry> + </row> + <row> + <entry><function>pg_locreate</function></entry> + <entry><function>pg_lo_create</function></entry> + </row> + <row> + <entry><function>pg_lounlink</function></entry> + <entry><function>pg_lo_unlink</function></entry> + </row> + <row> + <entry><function>pg_loopen</function></entry> + <entry><function>pg_lo_open</function></entry> + </row> + <row> + <entry><function>pg_loclose</function></entry> + <entry><function>pg_lo_close</function></entry> + </row> + <row> + <entry><function>pg_loread</function></entry> + <entry><function>pg_lo_read</function></entry> + </row> + <row> + <entry><function>pg_lowrite</function></entry> + <entry><function>pg_lo_write</function></entry> + </row> + <row> + <entry><function>pg_loimport</function></entry> + <entry><function>pg_lo_import</function></entry> + </row> + <row> + <entry><function>pg_loexport</function></entry> + <entry><function>pg_lo_export</function></entry> + </row> + <row> + <entry><function>pg_numrows</function></entry> + <entry><function>pg_num_rows</function></entry> + </row> + <row> + <entry><function>pg_numfields</function></entry> + <entry><function>pg_num_fields</function></entry> + </row> + <row> + <entry><function>pg_result</function></entry> + <entry><function>pg_fetch_result</function></entry> + </row> + </tbody> + </tgroup> + </table> <para> - ÒÔǰµÄÓï·¨£º - <command> - $conn = pg_connect ("host", "port", "options", "tty", "dbname") - </command> - ÒѾ²»ÔÙÌᳫʹÓᣠ+ ΪÒÔºóÖ§³ÖÒì²½Á¬½Ó£¬½«²»ÔÙÌᳫÓþÉÓ﷨ʹÓú¯Êý <function>pg_connect</function>/<function>pg_pconnect</function>¡£ÇëÓÃÁ¬½Ó×Ö·û´®×÷Ϊ²ÎÊýÀ´Ê¹Óú¯Êý <function>pg_connect</function> ºÍ <function>pg_pconnect</function>¡£ </para> - <para> - »·¾³±äÁ¿»áÓ°Ïì PostgreSQL ·þÎñÆ÷£¯¿Í»§»úµÄÐÐΪ¡£ÀýÈçÈç¹ûÁ¬½Ó´®ÖÐÊ¡ÂÔÁËÖ÷»úÃû£¬PostgreSQL Ä£¿é½«»á²éÕÒ»·¾³±äÁ¿ PGHOST¡£ - ²»Í¬°æ±¾ËùÖ§³ÖµÄ»·¾³±äÁ¿²»Í¬£¬ÏêÇé²Î¿¼ PostgreSQL Programmers's Manual (libpq - Environment Variables)¡£ - </para> - <para> - È·ÈÏÒѾ¸øÊʵ±µÄÓû§ÉèÖÃÁË»·¾³±äÁ¿¡£Óà <literal>$_ENV</literal> »ò <function>getenv</function> À´¼ì²éµ±Ç°½ø³Ì¿ÉÒÔʹÓÃÄÄЩ»·¾³±äÁ¿¡£ - </para> - <example> - <title>É趨ĬÈϲÎÊý</title> - <programlisting> + </warning> + <para> + ²»ÊÇËùÓеİ汾¶¼Ö§³ÖËùÓеĺ¯Êý£¬ÕâºÍ libpq µÄ°æ±¾ºÍ±àÒë·½·¨Óйء£Èç¹û±àÒëÔ´´úÂëʱÉÙÁËÒ»¸öº¯Êý£¬ÄÇô libpq ¾Í²»Ö§³ÖÐèÒª¸Ãº¯ÊýµÄ¹¦ÄÜ¡£ + </para> + <para> + ²»ÒªÊ¹ÓÃ±È PostgreSQL ·þÎñÆ÷Á¬½ÓËù½ÓÊܸü¾É°æ±¾µÄ libpq Ò²ºÜÖØÒª¡£Èç¹ûÄãÓÃµÄ libpq °æ±¾±È PostgreSQL ·þÎñÆ÷Ô¤ÆÚµÄµÍ¾Í¿ÉÄܳöÏÖÎÊÌâ¡£ + </para> + <para> + PostgreSQL ÔÚ 6.3 (03/02/1998) °æÖ®ºóĬÈÏʹÓà unix domain sockets£¬Ä¬ÈÏ״̬ϲ»»á´ò¿ª TCP ¶Ë¿Ú¡£ÏÂÃæÕâÕűí˵Ã÷Á˸÷ÖÖн¨Á¬½ÓµÄ¿ÉÄÜÐÔ¡£TCP/IP socket ·ÅÔÚ <filename>/tmp/.s.PGSQL.5432</filename>¡£¸ÃÑ¡Ïî¿ÉÓà <command>postmaster</command> ÖÐµÄ '-i' ²ÎÊý´ò¿ª£¬Ëü±íʾ¡°¼àÊÓ TCP/IP ¶Ë¿ÚÒÔ¼° Unix domain socket¡±¡£ + <table> + <title>Postmaster ºÍ PHP</title> + <tgroup cols="3"> + <thead> + <row> + <entry>Postmaster</entry> + <entry>PHP</entry> + <entry>״̬</entry> + </row> + </thead> + <tbody> + <row> + <entry>postmaster &</entry> + <entry>pg_connect("dbname=MyDbName");</entry> + <entry>OK</entry> + </row> + <row> + <entry>postmaster -i &</entry> + <entry>pg_connect("dbname=MyDbName");</entry> + <entry>OK</entry> + </row> + <row> + <entry>postmaster &</entry> + <entry>pg_connect("host=localhost dbname=MyDbName");</entry> + <entry> + Unable to connect to PostgreSQL server: connectDB() failed: + Is the postmaster running and accepting TCP/IP (with -i) + connection at 'localhost' on port '5432'? in + /path/to/file.php on line 20. + </entry> + </row> + <row> + <entry>postmaster -i &</entry> + <entry>pg_connect("host=localhost dbname=MyDbName");</entry> + <entry>OK</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + <para> + µ½ PostgreSQL ·þÎñÆ÷µÄÁ¬½Ó¿ÉÒÔͨ¹ýÒÔÏÂÃüÁî´®ÖеIJÎÊý¶Ô½¨Á¢£º<command>$conn = + pg_connect("host=myHost port=myPort tty=myTTY options=myOptions + dbname=myDB user=myUser password=myPassword"); + </command> + </para> + <para> + ÒÔǰµÄÓï·¨£º + <command> + $conn = pg_connect ("host", "port", "options", "tty", "dbname") + </command> + ÒѾ²»ÔÙÌᳫʹÓᣠ+ </para> + + <para> + »·¾³±äÁ¿»áÓ°Ïì PostgreSQL ·þÎñÆ÷£¯¿Í»§»úµÄÐÐΪ¡£ÀýÈçÈç¹ûÁ¬½Ó´®ÖÐÊ¡ÂÔÁËÖ÷»úÃû£¬PostgreSQL Ä£¿é½«»á²éÕÒ»·¾³±äÁ¿ PGHOST¡£ + ²»Í¬°æ±¾ËùÖ§³ÖµÄ»·¾³±äÁ¿²»Í¬£¬ÏêÇé²Î¿¼ PostgreSQL Programmers's Manual (libpq - Environment Variables)¡£ + </para> + <para> + È·ÈÏÒѾ¸øÊʵ±µÄÓû§ÉèÖÃÁË»·¾³±äÁ¿¡£Óà <literal>$_ENV</literal> »ò <function>getenv</function> À´¼ì²éµ±Ç°½ø³Ì¿ÉÒÔʹÓÃÄÄЩ»·¾³±äÁ¿¡£ + </para> + <example> + <title>É趨ĬÈϲÎÊý</title> + <programlisting> <![CDATA[ PGHOST=pgsql.example.com PGPORT=7890 @@ -228,47 +238,52 @@ export PGHOST PGPORT PGDATABASE PGUSER PGPASSWORD PGDATESTYLE PGTZ PGCLIENTENCODING ]]> - </programlisting> - </example> - </section> - - &reference.pgsql.constants; - - <section id="pgsql.examples"> - &reftitle.examples; + </programlisting> + </example> + <note> <para> - ´Ó PostgreSQL 7.1.0 ¿ªÊ¼£¬ÔÚÒ»¸ö text ÀàÐÍ×Ö¶ÎÖÐ×î¶à¿ÉÒÔ´¢´æ 1GB µÄÊý¾Ý¡£ÔÚÀϰ汾ÖÐÔòÏÞÖÆÎªÒ»¸ö¿éµÄ´óС£¨Ä¬ÈÏ 8KB£¬×î´ó 32KB£¬±àÒëʱָ¶¨£©¡£ + PostgreSQL ×Ô¶¯½«ËùÓбêʶ·û£¨ÀýÈç±í£¯ÁÐÃû£©×ª³ÉСд×Öĸֵ¡£ÒªÊ¹ÆäÄÜʶ±ð´óд×Öĸֵ£¬±ØÐ뽫±êʶ·û·ÅÔÚÒýºÅÄÚ¡£ </para> - <para> - ҪʹÓà large object (lo) ½Ó¿Ú£¬ÐèÒª°Ñ large object º¯Êý·ÅÔÚÒ»¸öÊÂÎñ¶ÎÖС£ÊÂÎñ¶ÎÒÔ SQL Óï¾ä <command>BEGIN</command> ¿ªÊ¼£¬Èç¹û¸ÃÊÂÎñºÏ·¨£¬ÒÔ <command>COMMIT</command> »òÕß <command>END</command>½áÊø£¬Èç¹û¸ÃÊÂÎñʧ°Ü£¬ÔòÒÔ <command>ROLLBACK</command> »òÕß <command>ABORT</command>½áÊø¡£ - <example> - <title>ʹÓà Large Object</title> - <programlisting role="php"> + </note> + </section> + + &reference.pgsql.constants; + + <section id="pgsql.examples"> + &reftitle.examples; + <para> + ´Ó PostgreSQL 7.1.0 ¿ªÊ¼£¬ÔÚÒ»¸ö text ÀàÐÍ×Ö¶ÎÖÐ×î¶à¿ÉÒÔ´¢´æ 1GB µÄÊý¾Ý¡£ÔÚÀϰ汾ÖÐÔòÏÞÖÆÎªÒ»¸ö¿éµÄ´óС£¨Ä¬ÈÏ 8KB£¬×î´ó 32KB£¬±àÒëʱָ¶¨£©¡£ + </para> + <para> + ҪʹÓà large object (lo) ½Ó¿Ú£¬ÐèÒª°Ñ large object º¯Êý·ÅÔÚÒ»¸öÊÂÎñ¶ÎÖС£ÊÂÎñ¶ÎÒÔ SQL Óï¾ä <command>BEGIN</command> ¿ªÊ¼£¬Èç¹û¸ÃÊÂÎñºÏ·¨£¬ÒÔ <command>COMMIT</command> »òÕß <command>END</command>½áÊø£¬Èç¹û¸ÃÊÂÎñʧ°Ü£¬ÔòÒÔ <command>ROLLBACK</command> »òÕß <command>ABORT</command>½áÊø¡£ + <example> + <title>ʹÓà Large Object</title> + <programlisting role="php"> <![CDATA[ <?php - $database = pg_connect ("dbname=jacarta"); - pg_query ($database, "begin"); - $oid = pg_lo_create ($database); - echo "$oid\n"; - $handle = pg_lo_open ($database, $oid, "w"); - echo "$handle\n"; - pg_lo_write ($handle, "large object data"); - pg_lo_close ($handle); - pg_query ($database, "commit"); + $database = pg_connect("dbname=jacarta"); + pg_query($database, "begin"); + $oid = pg_lo_create($database); + echo "$oid\n"; + $handle = pg_lo_open($database, $oid, "w"); + echo "$handle\n"; + pg_lo_write($handle, "large object data"); + pg_lo_close($handle); + pg_query($database, "commit"); ?> ]]> - </programlisting> - </example> - ÔÚ¹Ø±Õ large object ֮ǰ²»Ó¦¹Ø±Õµ½ PostgreSQL ·þÎñÆ÷µÄÁ¬½Ó¡£ - </para> - </section> - </partintro> + </programlisting> + </example> + ÔÚ¹Ø±Õ large object ֮ǰ²»Ó¦¹Ø±Õµ½ PostgreSQL ·þÎñÆ÷µÄÁ¬½Ó¡£ + </para> + </section> + </partintro> -&reference.pgsql.functions; + &reference.pgsql.functions; - </reference> +</reference> <!-- Keep this comment at the end of the file -Local variables: +Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t http://cvs.php.net/diff.php/phpdoc-zh/reference/regex/reference.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-zh/reference/regex/reference.xml diff -u phpdoc-zh/reference/regex/reference.xml:1.1 phpdoc-zh/reference/regex/reference.xml:1.2 --- phpdoc-zh/reference/regex/reference.xml:1.1 Tue Sep 9 22:09:23 2003 +++ phpdoc-zh/reference/regex/reference.xml Mon Aug 29 17:28:41 2005 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.8 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.11 Maintainer: dallas Status: ready --> <reference id="ref.regex"> - <title>ÕýÔò±í´ïʽº¯Êý¿â£¨POSIX À©Õ¹£©</title> + <title>Regexp ÕýÔò±í´ïʽº¯Êý£¨POSIX À©Õ¹£©</title> <titleabbrev>Regexps</titleabbrev> <partintro> @@ -24,35 +24,12 @@ </para> </warning> <para> - ÕýÔò±í´ïʽÔÚ PHP ÖÐÓÃÀ´×ö¸´ÔÓµÄ×Ö·û´®²Ù×÷¡£Ö§³ÖÕýÔò±í´ïʽµÄº¯ÊýΪ£º - <itemizedlist> - <listitem> - <simpara><function>ereg</function></simpara> - </listitem> - <listitem> - <simpara><function>ereg_replace</function></simpara> - </listitem> - <listitem> - <simpara><function>eregi</function></simpara> - </listitem> - <listitem> - <simpara><function>eregi_replace</function></simpara> - </listitem> - <listitem> - <simpara><function>split</function></simpara> - </listitem> - <listitem> - <simpara><function>spliti</function></simpara> - </listitem> - </itemizedlist> - </para> - <para> - ÕâЩº¯Êý¶¼½ÓÊÜÒ»¸öÕýÔò±í´ïʽ×Ö·û´®×÷ΪÆäµÚÒ»¸ö²ÎÊý¡£PHP ʹÓÃÓÉ - POSIX 1003.3 ¶¨ÒåµÄ POSIX À©Õ¹ÕýÔò±í´ïʽ¡£POSIX - ÕýÔò±í´ïʽÍêÕûµÄÃèÊö¼û°üº¬ÔÚ PHP ·¢ÐаüÖÐ regex Ŀ¼Ï嵀 man - Ò³Ãæ¡£¿ÉÒÔͨ¹ýÀàËÆ - <command>man /usr/local/src/regex/regex.7</command> - µÄÃüÁîÀ´ÔĶÁ¡£ + ÕýÔò±í´ïʽÔÚ PHP ÖÐÓÃÀ´×ö¸´ÔÓµÄ×Ö·û´®²Ù×÷¡£PHP + ʹÓà POSIX À©Õ¹µÄÕýÔò±í´ïʽ£¬ÆäÓÉ POSIX + 1003.2 ¶¨Òå¡£¶ÔÓÚ POSIX ÕýÔò±í´ïʽÍêÕûµÄ˵Ã÷¼û + <ulink url="&url.regex.man;">regex ÊÖ²áÒ³</ulink>£¬Î»ÓÚ PHP + ·¢²¼°üÖÐµÄ regex Ŀ¼Ï¡£ÕâÊÇ UNIX ϵÄÊÖ²á¸ñʽ£¬ÐèÒªÓÃÀàËÆÈçÏÂÃüÁî + <command>man /usr/local/src/regex/regex.7</command> À´ÔĶÁ¡£ </para> </section> http://cvs.php.net/diff.php/phpdoc-zh/reference/snmp/reference.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-zh/reference/snmp/reference.xml diff -u phpdoc-zh/reference/snmp/reference.xml:1.1 phpdoc-zh/reference/snmp/reference.xml:1.2 --- phpdoc-zh/reference/snmp/reference.xml:1.1 Tue Aug 5 07:51:59 2003 +++ phpdoc-zh/reference/snmp/reference.xml Mon Aug 29 17:28:42 2005 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> -<!-- $Author: nio $ --> -<!-- EN-Revision: 1.7 Maintainer: nio Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.10 Maintainer: nio Status: ready --> <reference id="ref.snmp"> - <title>SNMP º¯Êý¿â</title> + <title>SNMP º¯Êý</title> <titleabbrev>SNMP</titleabbrev> <partintro> @@ -16,8 +16,7 @@ <section id="snmp.requirements"> &reftitle.required; <para> - ΪÁËÔÚ Unix ÖÐʹÓà SNMP º¯Êý¿â£¬ÄúÐèÒª°²×° - <ulink url="&url.ucd-snmp;">UCD SNMP</ulink> »ò + ΪÁËÔÚ Unix ÖÐʹÓà SNMP º¯Êý¿â£¬ÐèÒª°²×° <ulink url="&url.net-snmp;">NET-SNMP</ulink> °ü¡£ÔÚ Windows ÖУ¬ÕâЩº¯ÊýÖ»ÄÜÓÃÓÚ NT£¬¶ø²»ÄÜÓÃÓÚ Win95/98¡£ </para> @@ -36,14 +35,11 @@ </para> </section> - <section id="snmp.constants"> - &reftitle.constants; - &no.constants; - </section> + &reference.snmp.constants; </partintro> - -&reference.snmp.functions; + + &reference.snmp.functions; </reference> <!-- Keep this comment at the end of the file http://cvs.php.net/diff.php/phpdoc-zh/reference/strings/reference.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-zh/reference/strings/reference.xml diff -u phpdoc-zh/reference/strings/reference.xml:1.4 phpdoc-zh/reference/strings/reference.xml:1.5 --- phpdoc-zh/reference/strings/reference.xml:1.4 Thu Jul 14 13:31:13 2005 +++ phpdoc-zh/reference/strings/reference.xml Mon Aug 29 17:28:42 2005 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.4 $ --> -<!-- $Author: yincheng $ --> +<!-- $Revision: 1.5 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.6 Maintainer: Avenger Status: ready --> <reference id="ref.strings"> - <title>×Ö·û´®´¦Àíº¯Êý¿â</title> + <title>String ×Ö·û´®´¦Àíº¯Êý</title> <titleabbrev>Strings</titleabbrev> <partintro> @@ -14,7 +14,9 @@ <link linkend="ref.url">URL ²Ù×÷</link> ²¿·Ö. </para> <para> - Èç¹ûÏëÒªÁ˽â×Ö·û´®µÄÏà¹ØÄÚÈÝ£¬ÌرðÊÇÓйص¥ÒýºÅ£¬Ë«ÒýºÅµÈµÄ´¦Àí²¿·Ö£¬¿ÉÒԲο¼ÊÖ²áÖÐ <link linkend="language.types">ÀàÐÍ</link> ²¿·ÖÖÐµÄ <link linkend="language.types.string">×Ö·û´®</link> ÌõÄ¿¡£ + Èç¹ûÏëÒªÁ˽â×Ö·û´®µÄÏà¹ØÄÚÈÝ£¬ÌرðÊÇÓйص¥ÒýºÅ£¬Ë«ÒýºÅµÈµÄ´¦Àí²¿·Ö£¬¿ÉÒԲο¼ÊÖ²áÖÐ<link + linkend="language.types">ÀàÐÍ</link>²¿·ÖÖеÄ<link + linkend="language.types.string">×Ö·û´®</link>ÌõÄ¿¡£ </para> </section> @@ -31,8 +33,9 @@ <section id="strings.seealso"> &reftitle.seealso; <para> - Èç¹ûÄúÏë¸üÉîÈëµÄÁ˽âÓйØ×Ö·û´®¸ß¼¶²Ù×÷µÄÏà¹ØÄÚÈÝ£¬Çë²ÎÔÄÊÖ²áµÄ <link linkend="ref.regex">ÕýÔò±í´ïʽº¯Êý</link> - ºÍ <link linkend="ref.pcre">Perl ¼æÈݺ¯Êý</link> ²¿·Ö. + Èç¹ûÏë¸üÉîÈëµÄÁ˽âÓйØ×Ö·û´®¸ß¼¶²Ù×÷µÄÏà¹ØÄÚÈÝ£¬Çë²ÎÔÄÊÖ²áµÄ<link + linkend="ref.regex">ÕýÔò±í´ïʽº¯Êý£¨POSIX À©Õ¹£©</link>ºÍ<link + linkend="ref.pcre">ÕýÔò±í´ïʽº¯Êý£¨Perl ¼æÈÝ£©</link> ²¿·Ö¡£ </para> </section> </partintro> http://cvs.php.net/diff.php/phpdoc-zh/reference/url/reference.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-zh/reference/url/reference.xml diff -u phpdoc-zh/reference/url/reference.xml:1.1 phpdoc-zh/reference/url/reference.xml:1.2 --- phpdoc-zh/reference/url/reference.xml:1.1 Wed Oct 1 10:13:42 2003 +++ phpdoc-zh/reference/url/reference.xml Mon Aug 29 17:28:42 2005 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> -<!-- $Author: nio $ --> +<!-- $Revision: 1.2 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.4 Maintainer: nio Status: ready --> <reference id="ref.url"> - <title>URL º¯Êý¿â</title> + <title>URL º¯Êý</title> <titleabbrev>URLs</titleabbrev> <partintro> @@ -13,12 +13,12 @@ ´¦Àí URL ×Ö·û´®£º±àÂë¡¢½âÂëÓë½âÎö¡£ </para> </section> - + <section id="url.requirements"> &reftitle.required; &no.requirement; </section> - + <section id="url.installation"> &reftitle.install; &no.install; http://cvs.php.net/diff.php/phpdoc-zh/reference/var/reference.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-zh/reference/var/reference.xml diff -u phpdoc-zh/reference/var/reference.xml:1.4 phpdoc-zh/reference/var/reference.xml:1.5 --- phpdoc-zh/reference/var/reference.xml:1.4 Fri Aug 19 10:01:11 2005 +++ phpdoc-zh/reference/var/reference.xml Mon Aug 29 17:28:42 2005 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.7 Maintainer: nio Status: ready --> <reference id="ref.var"> - <title>±äÁ¿º¯Êý¿â</title> + <title>Variable ±äÁ¿º¯Êý</title> <titleabbrev>Variables</titleabbrev> <partintro> @@ -12,7 +12,7 @@ <para> ÓйرäÁ¿ÐÐΪ·½Ê½µÄÐÅÏ¢Çë²é¿´±¾ÊÖ²á<link linkend="langref">ÓïÑԲο¼</link>²¿·ÖµÄ<link - linkend="language.variables">±äÁ¿</link> ÌõÄ¿¡£ + linkend="language.variables">±äÁ¿</link>ÌõÄ¿¡£ </para> </section> http://cvs.php.net/diff.php/phpdoc-zh/reference/w32api/reference.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-zh/reference/w32api/reference.xml diff -u phpdoc-zh/reference/w32api/reference.xml:1.7 phpdoc-zh/reference/w32api/reference.xml:1.8 --- phpdoc-zh/reference/w32api/reference.xml:1.7 Wed Aug 10 12:32:50 2005 +++ phpdoc-zh/reference/w32api/reference.xml Mon Aug 29 17:28:42 2005 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.9 Maintainer: cysoft Status: ready --> <reference id="ref.w32api"> - <title>W32api º¯Êý¿â</title> + <title>W32api º¯Êý</title> <titleabbrev>W32api</titleabbrev> <partintro> http://cvs.php.net/diff.php/phpdoc-zh/reference/xml/reference.xml?r1=1.13&r2=1.14&ty=u Index: phpdoc-zh/reference/xml/reference.xml diff -u phpdoc-zh/reference/xml/reference.xml:1.13 phpdoc-zh/reference/xml/reference.xml:1.14 --- phpdoc-zh/reference/xml/reference.xml:1.13 Fri Jul 8 13:10:51 2005 +++ phpdoc-zh/reference/xml/reference.xml Mon Aug 29 17:28:43 2005 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.13 $ --> -<!-- $Author: yincheng $ --> +<!-- $Revision: 1.14 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.18 Maintainer: Gregory Status: ready --> <reference id="ref.xml"> - <title>XML Óï·¨½âÎöº¯Êý¿â</title> + <title>XML Óï·¨½âÎöº¯Êý</title> <titleabbrev>XML</titleabbrev> <partintro> @@ -11,21 +11,34 @@ <section id="xml.intro"> &reftitle.intro; <para> - XML£¨eXtensible Markup Language£¬¿ÉÀ©Õ¹±ê¼ÇÓïÑÔ£©ÊÇÒ»ÖÖÔÚ WEB ÉϽøÐÐÎĵµ½»»»µÄÊý¾Ý¸ñʽ¡£¸ÃÓïÑÔÊÇÓÉ W3C£¨World Wide Web Concortium£¬ÊÀ½çÍòÎ¬Íø×éÖ¯£©¶¨ÒåµÄÒ»ÖÖ±ê×¼¡£Äú¿ÉÒÔ·ÃÎÊ <ulink url="&url.xml;">&url.xml;</ulink> ÒÔ»ñÈ¡¹ØÓÚ XML ¼°ÆäÏà¹Ø¼¼ÊõµÄ¸ü¶àÐÅÏ¢¡£ + XML£¨eXtensible Markup Language£¬¿ÉÀ©Õ¹±ê¼ÇÓïÑÔ£©ÊÇÒ»ÖÖÔÚ web + ÉϽøÐÐÎĵµ½»»»µÄÊý¾Ý¸ñʽ¡£¸ÃÓïÑÔÊÇÓÉ W3C£¨World + Wide Web Concortium£¬ÊÀ½çÍòÎ¬Íø×éÖ¯£©¶¨ÒåµÄÒ»ÖÖ±ê×¼¡£¿ÉÒÔ·ÃÎÊ + <ulink url="&url.xml;">&url.xml;</ulink> ÒÔ»ñÈ¡¹ØÓÚ XML ¼°ÆäÏà¹Ø¼¼ÊõµÄ¸ü¶àÐÅÏ¢¡£ </para> <para> - ±¾À©Õ¹Ä£¿é¿ÉΪ James Clark µÄ <productname>expat</productname> Ìṩ֧³Ö¡£¸Ã¹¤¾ß°ü°ïÖúÄú½âÎö XML Îĵµ£¨¶ø·Ç XML ÎĵµµÄÓÐЧ»¯£©¡£ËüÖ§³ÖÈýÖÖÔ´´úÂëµÄ<link linkend="xml.encoding">±àÂ뷽ʽ</link>£¬ÕâÈýÖÖ±àÂ뷽ʽҲ±» PHP ±¾ÉíËùÖ§³Ö£¬ËüÃÇ·Ö±ðÊÇ£º<literal>US-ASCII</literal>¡¢<literal>ISO-8859-1</literal> ºÍ <literal>UTF-8</literal>¡£ - ¸ÃϵͳÉв»Ö§³Ö <literal>UTF-16</literal>¡£ + ±¾À©Õ¹Ä£¿é¿ÉΪ James Clark µÄ <productname>expat</productname> + Ìṩ֧³Ö¡£¸Ã¹¤¾ß°ü°ïÖú½âÎö XML Îĵµ£¨¶ø·Ç XML + ÎĵµµÄÓÐЧ»¯£©¡£ËüÖ§³ÖÈýÖÖÔ´´úÂëµÄ<link + linkend="xml.encoding">±àÂ뷽ʽ</link>£¬ÕâÈýÖÖ±àÂ뷽ʽҲ±» PHP + ±¾ÉíËùÖ§³Ö£¬ËüÃÇ·Ö±ðÊÇ£º<literal>US-ASCII</literal>¡¢<literal>ISO-8859-1</literal> + ºÍ <literal>UTF-8</literal>¡£±¾ÏµÍ³Éв»Ö§³Ö <literal>UTF-16</literal>¡£ </para> <para> - ¸ÃÀ©Õ¹Ä£¿éʹÄúÄܹ»<link linkend="function.xml-parser-create">½¨Á¢ XML Óï·¨½âÎöÆ÷</link>£¬²¢¶Ô²»Í¬µÄ XML ʼþ¶¨Òå¶ÔÓ¦µÄ´¦ÀíÆ÷¡£Ã¿¸ö XML Óï·¨½âÎöÆ÷¶¼ÓÐÈô¸É¸öÄú¿ÉÒÔ¸ù¾ÝÐèÒªµ÷ÕûµÄ<link linkend="function.xml-parser-set-option">²ÎÊý</link>¡£ + ±¾À©Õ¹Ä£¿éʹÓû§Äܹ»<link linkend="function.xml-parser-create">½¨Á¢ + XML Óï·¨½âÎöÆ÷</link>£¬²¢¶Ô²»Í¬µÄ XML ʼþ¶¨Òå¶ÔÓ¦µÄ´¦ÀíÆ÷¡£Ã¿¸ö + XML Óï·¨½âÎöÆ÷¶¼ÓÐÈô¸É¸ö¿É¸ù¾ÝÐèÒªµ÷ÕûµÄ<link + linkend="function.xml-parser-set-option">²ÎÊý</link>¡£ </para> </section> <section id="xml.requirements"> &reftitle.required; <para> - ¸ÃÀ©Õ¹Ä£¿éĬÈÏʹÓà <productname>expat compat layer</productname>¡£ËüÒ²¿ÉÒÔʹÓà <productname>expat</productname>£¬Äú¿ÉÒÔ·ÃÎÊ <ulink url="&url.expat;">&url.expat;</ulink> À´»ñÈ¡¡£expat ×Ô´øµÄ Makefile Îļþ²»»áÉú³ÉĬÈϵÄÀ©Õ¹¿â£¬Äú¿ÉÒÔʹÓÃÒÔϵÄÉú³É¹æÔòÀ´ÊµÏÖ£º + ±¾À©Õ¹Ä£¿éĬÈÏʹÓà <productname>expat compat layer</productname>¡£ËüÒ²¿ÉÒÔʹÓà + <productname>expat</productname>£¬¿ÉÒÔ·ÃÎÊ + <ulink url="&url.expat;">&url.expat;</ulink> À´»ñÈ¡¡£expat + ×Ô´øµÄ Makefile Îļþ²»»áÉú³ÉĬÈϵÄÀ©Õ¹¿â£¬¿ÉÒÔʹÓÃÒÔϵÄÉú³É¹æÔòÀ´ÊµÏÖ£º <programlisting role="makefile"> <![CDATA[ libexpat.a: $(OBJS) @@ -35,11 +48,12 @@ </programlisting> </para> <para> - Çë·ÃÎÊ <ulink url="&url.expat.rpm;">&url.expat.rpm;</ulink> ÒÔ»ñÈ¡ expat Ô´ÎļþµÄ RPM °ü¡£ + Çë·ÃÎÊ <ulink url="&url.expat.rpm;">&url.expat.rpm;</ulink> ÒÔ»ñÈ¡ + expat Ô´ÎļþµÄ RPM °ü¡£ </para> </section> - &reference.xml.configure; + &reference.xml.configure; <section id="xml.configuration"> &reftitle.runtime; @@ -48,13 +62,15 @@ <section id="xml.resources"> &reftitle.resources; - <section id="xml.resources.xml"> - <title><literal>xml</literal></title> - <para> - ×ÊÔ´ <literal>xml</literal> ºÍÓɺ¯Êý <function>xml_parser_create</function> ¼° <function>xml_parser_create_ns</function> ·µ»ØµÄ×ÊÔ´ÀàËÆ£¬ËüÃÇÖ¸ÏòÒ»¸ö¿É±»±¾À©Õ¹Öеĺ¯ÊýʹÓÃµÄ xml ½âÎö¶ÔÏó¡£ - extension. - </para> - </section> + <section id="xml.resources.xml"> + <title><literal>xml</literal></title> + <para> + ÓÉ <function>xml_parser_create</function> ºÍ + <function>xml_parser_create_ns</function> + ·µ»ØµÄ <literal>xml</literal> ×ÊÔ´ÒýÓÃÁËÒ»¸ö XML + ½âÎöÆ÷ʵÀý£¬½«±»ÓÃÔÚ±¾À©Õ¹¿âÌṩµÄº¯ÊýÖС£ + </para> + </section> </section> &reference.xml.constants; @@ -76,7 +92,8 @@ <row> <entry><function>xml_set_element_handler</function></entry> <entry> - ÔªËØÊ¼þ£¨Element events£©½«ÔÚ XML ½âÎöÆ÷Óöµ½±ê¼Ç·ûµÄÆðʼ·û»òÕßÖÕÖ¹·ûʱ·¢Éú¡£ÁíÍ⣬¶ÔÓÚÆðʼ·ûºÍÖÕÖ¹·ûÒ²ÓжÀÁ¢µÄ´¦ÀíÆ÷¡£ + ÔªËØÊ¼þ£¨Element events£©½«ÔÚ XML + ½âÎöÆ÷Óöµ½±ê¼Ç·ûµÄÆðʼ·û»òÕßÖÕÖ¹·ûʱ·¢Éú¡£ÁíÍ⣬¶ÔÓÚÆðʼ·ûºÍÖÕÖ¹·ûÒ²ÓжÀÁ¢µÄ´¦ÀíÆ÷¡£ </entry> </row> <row> @@ -84,7 +101,9 @@ <function>xml_set_character_data_handler</function> </entry> <entry> - ´ÖÂÔµÄ˵£¬×Ö·ûÊý¾Ý£¨Character data£©ÊÇÖ¸ XML ÎĵµÖÐËùÓбê¼Ç·ûÒÔÍâµÄÄÚÈÝ£¬°üÀ¨±ê¼Ç·ûÖ®¼äµÄ¿Õ¸ñ¡£ÐèҪעÒâµÄÊÇ XML Óï·¨½âÎöÆ÷²»»á¼ÓÉÏ»òÕßÈ¥µôÈκοոñ¡£¿Õ¸ñµÄÈ¡ÉὫÓÉÓ¦ÓóÌÐò£¨Ò²¾ÍÊÇÄú×Ô¼º£©À´¾ö¶¨¡£ + ´ÖÂÔµÄ˵£¬×Ö·ûÊý¾Ý£¨Character data£©ÊÇÖ¸ XML + ÎĵµÖÐËùÓбê¼Ç·ûÒÔÍâµÄÄÚÈÝ£¬°üÀ¨±ê¼Ç·ûÖ®¼äµÄ¿Õ¸ñ¡£ÐèҪעÒâµÄÊÇ + XML Óï·¨½âÎöÆ÷²»»á¼ÓÉÏ»òÕßÈ¥µôÈκοոñ¡£¿Õ¸ñµÄÈ¡ÉὫÓÉÓ¦ÓóÌÐò£¨Ò²¾ÍÊÇÄã×Ô¼º£©À´¾ö¶¨¡£ </entry> </row> <row> @@ -92,13 +111,18 @@ <function>xml_set_processing_instruction_handler</function> </entry> <entry> - PHP ³ÌÐòÔ±¶Ô¡°´¦ÀíÖ¸Á£¨Processing Instructions£¬PIs£©Ó¦¸ÃÒѾºÜÊìϤÁË¡£<?php ?> ¾ÍÊÇÒ»¸ö´¦ÀíÖ¸ÁÆäÖÐ <replaceable>php</replaceable> ±»³ÆÎª¡°PI target¡±¡£³ýÁËÒÔ¡°XML¡±¿ªÍ·µÄ PI target Òѱ»±£ÁôÒÔÍ⣬¶ÔÕâЩ PIs µÄ´¦Àí½«ÓÉÓ¦ÓóÌÐòÀ´Íê³É¡£ + PHP ³ÌÐòÔ±¶Ô¡°´¦ÀíÖ¸Á£¨Processing + Instructions£¬PIs£©Ó¦¸ÃÒѾºÜÊìϤÁË¡£<?php ?> + ¾ÍÊÇÒ»¸ö´¦ÀíÖ¸ÁÆäÖÐ <replaceable>php</replaceable> + ±»³ÆÎª¡°PI target¡±¡£³ýÁËÒÔ¡°XML¡±¿ªÍ·µÄ PI target + Òѱ»±£ÁôÒÔÍ⣬¶ÔÕâЩ PIs µÄ´¦Àí½«ÓÉÓ¦ÓóÌÐòÀ´Íê³É¡£ </entry> </row> <row> <entry><function>xml_set_default_handler</function></entry> <entry> - ËùÓÐÎÞ·¨±»ÆäËü´¦ÀíÆ÷´¦ÀíµÄʼþ½«ÓÉĬÈÏ´¦ÀíÆ÷À´´¦Àí¡£ÕâЩʼþ°üÀ¨ÖîÈç XML ºÍÎĵµÀàÐÍÉùÃ÷µÈÄÚÈÝ¡£ + ËùÓÐÎÞ·¨±»ÆäËü´¦ÀíÆ÷´¦ÀíµÄʼþ½«ÓÉĬÈÏ´¦ÀíÆ÷À´´¦Àí¡£ÕâЩʼþ°üÀ¨ÖîÈç + XML ºÍÎĵµÀàÐÍÉùÃ÷µÈÄÚÈÝ¡£ </entry> </row> <row> @@ -122,7 +146,8 @@ <function>xml_set_external_entity_ref_handler</function> </entry> <entry> - µ± XML ½âÎöÆ÷Óöµ½Ö¸ÏòÍⲿ½âÎöµÄÒ»°ãʵÌåÃûʱ£¬¸Ã´¦ÀíÆ÷½«±»µ÷Ó᣸ÃÖ¸ÏòµÄÄ¿±ê¿ÉÒÔÊÇÒ»¸öÎļþ£¬Ò²¿ÉÒÔÊÇ URL¡£Çë²ÎÔÄ¡°<link linkend="example.xml-external-entity">ÍⲿʵÌåÃû·¶Àý</link>¡±¡£ + µ± XML ½âÎöÆ÷Óöµ½Ö¸ÏòÍⲿ½âÎöµÄÒ»°ãʵÌåÃûʱ£¬¸Ã´¦ÀíÆ÷½«±»µ÷Ó᣸ÃÖ¸ÏòµÄÄ¿±ê¿ÉÒÔÊÇÒ»¸öÎļþ£¬Ò²¿ÉÒÔÊÇ + URL¡£Çë²ÎÔÄ¡°<link linkend="example.xml-external-entity">ÍⲿʵÌåÃû·¶Àý</link>¡±¡£ </entry> </row> </tbody> @@ -137,7 +162,9 @@ ÔªËØ´¦Àíº¯Êý¿ÉÄܻᵼÖÂÔªËØÃû³Æ¡°´óСдÕÛµþ¡±£¨<glossterm>case-folded</glossterm>£©¡£¡°´óСдÕÛµþ¡±±» XML ±ê×¼¶¨ÒåΪ¡°Ò»¸öÓ¦ÓÃÓÚһϵÁÐ×Ö·ûµÄ¹ý³Ì£¬Ôڸùý³ÌÖУ¬ÕâЩ×Ö·ûÖеÄËùÓеķǴóд×Ö·û½«±»Ìæ»»³ÉËüÃǶÔÓ¦´óдµÈ¼Û×Ö·û¡±¡£»»¾ä»°Ëµ£¬¶ÔÓÚ XML£¬¡°´óСдÕÛµþ¡±¾ÍÊÇÖ¸½«×Ö·û´®×ª»»³É´óд×Ö·û¡£ </para> <para> - ËùÓб»´«µÝ¸ø´¦ÀíÆ÷º¯ÊýµÄÔªËØÃû³Æ½«Ä¬Èϵķ¢Éú¡°´óСдÕÛµþ¡±¡£¸Ã¹ý³Ì¿ÉÒԷֱ𱻠<function>xml_parser_get_option</function> ºÍ <function>xml_parser_set_option</function> º¯Êý²éѯºÍ¿ØÖÆ¡£ + ËùÓб»´«µÝ¸ø´¦ÀíÆ÷º¯ÊýµÄÔªËØÃû³Æ½«Ä¬Èϵķ¢Éú¡°´óСдÕÛµþ¡±¡£¸Ã¹ý³Ì¿ÉÒԷֱ𱻠+ <function>xml_parser_get_option</function> ºÍ + <function>xml_parser_set_option</function> º¯Êý²éѯºÍ¿ØÖÆ¡£ </para> </section> @@ -175,13 +202,27 @@ <section id="xml.encoding"> <title>×Ö·û±àÂë</title> <para> - PHP µÄ XML À©Õ¹¿âÖ§³Ö²»Í¬×Ö·û±àÂ루<glossterm>character encoding</glossterm>£©µÄ <ulink url="&url.unicode;">Unicode</ulink> ×Ö·û¼¯¡£×Ö·û±àÂëÓÐÁ½ÖÖÐÎʽ£¬ËüÃÇ·Ö±ðÊÇ¡°Ô´±àÂ롱£¨<glossterm>source encoding</glossterm>£©ºÍ¡°Ä¿±ê±àÂ롱£¨<glossterm>target encoding</glossterm>£©¡£PHP ¶ÔÎĵµÄÚ²¿±íʾµÄ±àÂ뷽ʽÊÇ <literal>UTF-8</literal>¡£ + PHP µÄ XML À©Õ¹¿âÖ§³Ö²»Í¬×Ö·û±àÂ루<glossterm>character encoding</glossterm>£©µÄ + <ulink url="&url.unicode;">Unicode</ulink> + ×Ö·û¼¯¡£×Ö·û±àÂëÓÐÁ½ÖÖÐÎʽ£¬ËüÃÇ·Ö±ðÊÇ¡°Ô´±àÂ롱£¨<glossterm>source + encoding</glossterm>£©ºÍ¡°Ä¿±ê±àÂ롱£¨<glossterm>target + encoding</glossterm>£©¡£PHP ¶ÔÎĵµÄÚ²¿±íʾµÄ±àÂ뷽ʽÊÇ + <literal>UTF-8</literal>¡£ + </para> + <para> + Ô´±àÂ뽫ÔÚ XML Îĵµ±»<link + linkend="function.xml-parse">½âÎö</link>ºóÍê³É¡£Ô´±àÂë¿ÉÔÚ<link + linkend="function.xml-parser-create">½¨Á¢Ò»¸ö XML + ½âÎöÆ÷</link>ʱָÃ÷£¨¸Ã±àÂ뷽ʽÔÚ XML + ½âÎöÆ÷µÄÉúÃüÖÜÆÚÖв»Äܱ»Ôٴθı䣩¡£Ö§³ÖµÄ±àÂ뷽ʽ°üÀ¨ + <literal>ISO-8859-1</literal>£¬<literal>US-ASCII</literal> + ºÍ <literal>UTF-8</literal>¡£Ç°Á½ÖÖΪµ¥×Ö½Ú±àÂ룬¼´Ã¿¸ö×Ö·û±»Ò»¸öµ¥Ò»µÄ×Ö½Ú±íʾ¡£<literal>UTF-8</literal> + Ö§³Ö 1 ÖÁ 4 ¸ö×ֽڵĶà bit£¨×î¶à 12£©×Ö·û±àÂë¡£PHP ĬÈÏʹÓà + <literal>ISO-8859-1</literal> ×÷ΪԴ±àÂ뷽ʽ¡£ </para> <para> - Ô´±àÂ뽫ÔÚ XML Îĵµ±»<link linkend="function.xml-parse">½âÎö</link>ºóÍê³É¡£Ô´±àÂë¿ÉÔÚ<link linkend="function.xml-parser-create">½¨Á¢Ò»¸ö XML ½âÎöÆ÷</link>ʱָÃ÷£¨¸Ã±àÂ뷽ʽÔÚ XML ½âÎöÆ÷µÄÉúÃüÖÜÆÚÖв»Äܱ»Ôٴθı䣩¡£Ö§³ÖµÄ±àÂ뷽ʽ°üÀ¨ <literal>ISO-8859-1</literal>£¬<literal>US-ASCII</literal> ºÍ <literal>UTF-8</literal>¡£Ç°Á½ÖÖΪµ¥×Ö½Ú±àÂ룬¼´Ã¿¸ö×Ö·û±»Ò»¸öµ¥Ò»µÄ×Ö½Ú±íʾ¡£ <literal>UTF-8</literal> Ö§³Ö 1 ÖÁ 4 ¸ö×ֽڵĶà bit£¨×î¶à 12£©×Ö·û±àÂë¡£PHP ĬÈÏʹÓà <literal>ISO-8859-1</literal> ×÷ΪԴ±àÂ뷽ʽ¡£ - </para> - <para> - Ä¿±ê±àÂ뽫ÔÚ PHP Ïò XML ´¦ÀíÆ÷º¯Êý´«ËÍÊý¾Ýʱ±»Íê³É¡£µ± XML ½âÎöÆ÷±»½¨Á¢ºó£¬Ä¿±ê±àÂ뽫±»ÉèÖóÉÓëÔ´±àÂëÏàͬµÄ±àÂ뷽ʽ£¬µ«¸Ã·½Ê½¿ÉÔÚÈκÎʱºò±»¸ü¸Ä¡£Ä¿±ê±àÂ뽫ӰÏì×Ö·ûÊý¾Ý¡¢±ê¼Ç·ûÃû³ÆÒÔ¼°´¦ÀíÖ¸ÁîÄ¿±ê£¨PI target£©¡£ + Ä¿±ê±àÂ뽫ÔÚ PHP Ïò XML ´¦ÀíÆ÷º¯Êý´«ËÍÊý¾Ýʱ±»Íê³É¡£µ± XML + ½âÎöÆ÷±»½¨Á¢ºó£¬Ä¿±ê±àÂ뽫±»ÉèÖóÉÓëÔ´±àÂëÏàͬµÄ±àÂ뷽ʽ£¬µ«¸Ã·½Ê½¿ÉÔÚÈκÎʱºò±»¸ü¸Ä¡£Ä¿±ê±àÂ뽫ӰÏì×Ö·ûÊý¾Ý¡¢±ê¼Ç·ûÃû³ÆÒÔ¼°´¦ÀíÖ¸ÁîÄ¿±ê£¨PI target£©¡£ </para> <para> Èç¹û XML ½âÎöÆ÷Óöµ½ÆäÔ´±àÂ뷽ʽ±íʾÄÜÁ¦Ö®ÍâµÄ×Ö·û£¬Ëü½«·µ»ØÒ»¸ö´íÎó¡£ @@ -208,7 +249,7 @@ $file = "data.xml"; $depth = array(); -function startElement($parser, $name, $attrs) +function startElement($parser, $name, $attrs) { global $depth; for ($i = 0; $i < $depth[$parser]; $i++) { @@ -218,7 +259,7 @@ $depth[$parser]++; } -function endElement($parser, $name) +function endElement($parser, $name) { global $depth; $depth[$parser]--; @@ -251,7 +292,9 @@ <example> <title>½« XML Ó³ÉäΪ HTML</title> <para> - ÒÔÏ·¶Àý½« XML ÎĵµÖеıê¼Ç·ûÖ±½ÓÓ³Éä³É HTML ±ê¼Ç·û¡£ÔÚ¡°Ó³ÉäÊý×顱Öв»´æÔÚµÄÔªËØ½«±»ºöÂÔ¡£µ±È»£¬¸Ã·¶Àý½«Ö»¶ÔÒ»¸öÌØ¶¨µÄ XML ÎĵµÓÐЧ¡£ + ÒÔÏ·¶Àý½« XML ÎĵµÖеıê¼Ç·ûÖ±½ÓÓ³Éä³É HTML + ±ê¼Ç·û¡£ÔÚ¡°Ó³ÉäÊý×顱Öв»´æÔÚµÄÔªËØ½«±»ºöÂÔ¡£µ±È»£¬¸Ã·¶Àý½«Ö»¶ÔÒ»¸öÌØ¶¨µÄ + XML ÎĵµÓÐЧ¡£ </para> <para> <programlisting role="php"> @@ -264,7 +307,7 @@ "LITERAL" => "TT" ); -function startElement($parser, $name, $attrs) +function startElement($parser, $name, $attrs) { global $map_array; if (isset($map_array[$name])) { @@ -272,7 +315,7 @@ } } -function endElement($parser, $name) +function endElement($parser, $name) { global $map_array; if (isset($map_array[$name])) { @@ -280,7 +323,7 @@ } } -function characterData($parser, $data) +function characterData($parser, $data) { echo $data; } @@ -316,7 +359,8 @@ ¸Ã·¶ÀýÄܹ»¸ßÁÁÏÔʾ XML Ô´´úÂë¡£Ëü½«ËµÃ÷ÈçºÎÍⲿʵÌåÖ¸Ïò´¦ÀíÆ÷À´°üº¬ºÍ½âÎöÆäËüÎĵµ£¬ÈçºÎ´¦Àí PIs£¬ÒÔ¼°Ò»ÖÖÈ·¶¨°üº¬ÓÐ PIs µÄ´úÂëµÄ¿ÉÐŶȡ£ </para> <para> - Äܱ»¸Ã·¶ÀýʹÓÃµÄµÄ XML Îĵµ£¨<filename>xmltest.xml</filename> ºÍ <filename>xmltest2.xml</filename>£©±»ÁÐÔڸ÷¶ÀýÖ®ºó¡£ + Äܱ»¸Ã·¶ÀýʹÓÃµÄµÄ XML Îĵµ£¨<filename>xmltest.xml</filename> ºÍ + <filename>xmltest2.xml</filename>£©±»ÁÐÔڸ÷¶ÀýÖ®ºó¡£ </para> <para> <example> @@ -326,39 +370,39 @@ <?php $file = "xmltest.xml"; -function trustedFile($file) +function trustedFile($file) { // only trust local files owned by ourselves - if (!eregi("^([a-z]+)://", $file) + if (!eregi("^([a-z]+)://", $file) && fileowner($file) == getmyuid()) { return true; } return false; } -function startElement($parser, $name, $attribs) +function startElement($parser, $name, $attribs) { echo "<<font color=\"#0000cc\">$name</font>"; if (count($attribs)) { foreach ($attribs as $k => $v) { - echo " <font color=\"#009900\">$k</font>=\"<font + echo " <font color=\"#009900\">$k</font>=\"<font color=\"#990000\">$v</font>\""; } } echo ">"; } -function endElement($parser, $name) +function endElement($parser, $name) { echo "</<font color=\"#0000cc\">$name</font>>"; } -function characterData($parser, $data) +function characterData($parser, $data) { echo "<b>$data</b>"; } -function PIHandler($parser, $target, $data) +function PIHandler($parser, $target, $data) { switch (strtolower($target)) { case "php": @@ -369,20 +413,20 @@ if (trustedFile($parser_file[$parser])) { eval($data); } else { - printf("Untrusted PHP code: <i>%s</i>", + printf("Untrusted PHP code: <i>%s</i>", htmlspecialchars($data)); } break; } } -function defaultHandler($parser, $data) +function defaultHandler($parser, $data) { if (substr($data, 0, 1) == "&" && substr($data, -1, 1) == ";") { - printf('<font color="#aa00aa">%s</font>', + printf('<font color="#aa00aa">%s</font>', htmlspecialchars($data)); } else { - printf('<font size="-1">%s</font>', + printf('<font size="-1">%s</font>', htmlspecialchars($data)); } } @@ -410,7 +454,7 @@ return false; } -function new_xml_parser($file) +function new_xml_parser($file) { global $parser_file; @@ -421,7 +465,7 @@ xml_set_processing_instruction_handler($xml_parser, "PIHandler"); xml_set_default_handler($xml_parser, "defaultHandler"); xml_set_external_entity_ref_handler($xml_parser, "externalEntityRefHandler"); - + if (!($fp = @fopen($file, "r"))) { return false; } http://cvs.php.net/diff.php/phpdoc-zh/reference/xmlrpc/reference.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-zh/reference/xmlrpc/reference.xml diff -u phpdoc-zh/reference/xmlrpc/reference.xml:1.2 phpdoc-zh/reference/xmlrpc/reference.xml:1.3 --- phpdoc-zh/reference/xmlrpc/reference.xml:1.2 Fri Jul 8 13:33:20 2005 +++ phpdoc-zh/reference/xmlrpc/reference.xml Mon Aug 29 17:28:43 2005 @@ -1,16 +1,16 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> -<!-- $Author: yincheng $ --> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> <!-- EN-Revision: 1.7 Maintainer: nio Status: ready --> <reference id="ref.xmlrpc"> - <title>XML-RPC º¯Êý¿â</title> + <title>XML-RPC º¯Êý</title> <titleabbrev>XML-RPC</titleabbrev> <partintro> <section id="xmlrpc.intro"> &reftitle.intro; <para> - ÕâЩº¯Êý¿ÉÓÃÓÚ±àд XML-RPC ·þÎñ¶ËºÍ¿Í»§¶Ë¡£Äã¿ÉÒÔÔÚ + ±¾ÀຯÊý¿ÉÓÃÓÚ±àд XML-RPC ·þÎñ¶ËºÍ¿Í»§¶Ë¡£¿ÉÒÔÔÚ <ulink url="&url.xmlrpc;">&url.xmlrpc;</ulink> ÕÒµ½¸ü¶à¹ØÓÚ XML-RPC µÄÐÅÏ¢£¬Í¬Ê±¿ÉÔÚ <ulink url="&url.xmlrpc-epi;">&url.xmlrpc-epi;</ulink> @@ -18,12 +18,12 @@ </para> &warn.experimental; </section> - + <section id="xmlrpc.requirements"> &reftitle.required; &no.requirement; </section> - + &reference.xmlrpc.configure; &reference.xmlrpc.ini;