From 9af2d25b736bc514ab15c600867b3ad233d2f2e0 Mon Sep 17 00:00:00 2001 From: Jirka Kosek Date: Mon, 12 Mar 2001 14:00:51 +0000 Subject: [PATCH] - corrected XML related typos (<, &, unterminated entity references, ...) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@43309 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/datetime.xml | 2 +- functions/zlib.xml | 2 +- pear/standards.xml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/functions/datetime.xml b/functions/datetime.xml index 7f6ea46667..704e02414c 100644 --- a/functions/datetime.xml +++ b/functions/datetime.xml @@ -641,7 +641,7 @@ function getmicrotime(){ $time_start = getmicrotime(); -for ($i=0; $i < 1000; $i++){ +for ($i=0; $i < 1000; $i++){ //do nothing, 1000 times } diff --git a/functions/zlib.xml b/functions/zlib.xml index c455238c4c..e19bd9cde4 100644 --- a/functions/zlib.xml +++ b/functions/zlib.xml @@ -797,7 +797,7 @@ fclose($fp); For more information on the GZIP file format, see the document: - GZIP file format specification + GZIP file format specification version 4.3 (RFC 1952). diff --git a/pear/standards.xml b/pear/standards.xml index 233ce12b49..4bac3cff01 100644 --- a/pear/standards.xml +++ b/pear/standards.xml @@ -32,7 +32,7 @@ if ((condition1) || (condition2)) { action1; -} elseif ((condition3) && (condition4)) { +} elseif ((condition3) && (condition4)) { action2; } else { defaultaction; @@ -113,10 +113,10 @@ function fooFunction($arg1, $arg2 = '') Always attempt to return a meaningful value from a function if one is appropriate. Here is a slightly longer example: -function connect(&$dsn, $persistent = false) +function connect(&$dsn, $persistent = false) { if (is_array($dsn)) { - $dsninfo = &$dsn; + $dsninfo = &$dsn; } else { $dsninfo = DB::parseDSN($dsn); }