From f39c2b0435e6b3c1d9e38a711e37e6707f357b3c Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Mon, 3 Dec 2001 21:59:00 +0000 Subject: [PATCH] Typo fixes git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@63819 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/pcre.xml | 28 ++++++++++++++-------------- functions/pgsql.xml | 4 ++-- functions/readline.xml | 4 ++-- functions/session.xml | 4 ++-- functions/sockets.xml | 6 +++--- functions/strings.xml | 4 ++-- functions/url.xml | 4 ++-- functions/var.xml | 6 +++--- 8 files changed, 30 insertions(+), 30 deletions(-) diff --git a/functions/pcre.xml b/functions/pcre.xml index d6f9849e5a..f1a764f775 100644 --- a/functions/pcre.xml +++ b/functions/pcre.xml @@ -1,5 +1,5 @@ - + Regular Expression Functions (Perl-Compatible) PCRE @@ -439,24 +439,24 @@ preg_replace ("/(<\/?)(\w+)([^>]*>)/e", // common HTML entities to their text equivalent. $search = array ("']*?>.*?'si", // Strip out javascript - "'<[\/\!]*?[^<>]*?>'si", // Strip out html tags - "'([\r\n])[\s]+'", // Strip out white space - "'&(quot|#34);'i", // Replace html entities - "'&(amp|#38);'i", - "'&(lt|#60);'i", - "'&(gt|#62);'i", - "'&(nbsp|#160);'i", - "'&(iexcl|#161);'i", - "'&(cent|#162);'i", - "'&(pound|#163);'i", - "'&(copy|#169);'i", - "'&#(\d+);'e"); // evaluate as php + "'<[\/\!]*?[^<>]*?>'si", // Strip out html tags + "'([\r\n])[\s]+'", // Strip out white space + "'&(quot|#34);'i", // Replace html entities + "'&(amp|#38);'i", + "'&(lt|#60);'i", + "'&(gt|#62);'i", + "'&(nbsp|#160);'i", + "'&(iexcl|#161);'i", + "'&(cent|#162);'i", + "'&(pound|#163);'i", + "'&(copy|#169);'i", + "'&#(\d+);'e"); // evaluate as php $replace = array ("", "", "\\1", "\"", - "&", + "&", "<", ">", " ", diff --git a/functions/pgsql.xml b/functions/pgsql.xml index e721832775..af46937b71 100644 --- a/functions/pgsql.xml +++ b/functions/pgsql.xml @@ -1,5 +1,5 @@ - + PostgreSQL functions PostgreSQL @@ -161,7 +161,7 @@ ]]> diff --git a/functions/readline.xml b/functions/readline.xml index fefe120bf1..8317546cb3 100644 --- a/functions/readline.xml +++ b/functions/readline.xml @@ -1,5 +1,5 @@ - + GNU Readline Readline @@ -49,7 +49,7 @@ - + Session handling functions Sessions @@ -152,7 +152,7 @@ session_register ("count"); $count++; ?> -Hello visitor, you have seen this page <?php echo $count; ?> times.<p> +Hello visitor, you have seen this page times.

; is necessary to preserve the session id diff --git a/functions/sockets.xml b/functions/sockets.xml index e73fc17db3..a110f93c99 100644 --- a/functions/sockets.xml +++ b/functions/sockets.xml @@ -1,5 +1,5 @@ - + Socket functions Sockets @@ -552,11 +552,11 @@ echo "OK.\n\n"; diff --git a/functions/strings.xml b/functions/strings.xml index 8b62e7fbc3..723decc506 100644 --- a/functions/strings.xml +++ b/functions/strings.xml @@ -1,5 +1,5 @@ - + String functions Strings @@ -1941,7 +1941,7 @@ echo "Item $serial was manufactured on: $year-".substr($month,0,3)."-$day\n"; $first $last diff --git a/functions/url.xml b/functions/url.xml index 5b5d8bebc9..37b95377b5 100644 --- a/functions/url.xml +++ b/functions/url.xml @@ -1,5 +1,5 @@ - + URL Functions URLs @@ -188,7 +188,7 @@ $i = 0; while ($i < count($a)) { $b = split('=', $a[$i]); echo 'Value for parameter ', htmlspecialchars(urldecode($b[0])), - ' is ', htmlspecialchars(urldecode($b[1])), "<br>"; + ' is ', htmlspecialchars(urldecode($b[1])), "
\n"; $i++; } ]]> diff --git a/functions/var.xml b/functions/var.xml index c1dac2cffe..9b47fec10a 100644 --- a/functions/var.xml +++ b/functions/var.xml @@ -1,5 +1,5 @@ - + Variable Functions Variables @@ -985,7 +985,7 @@ $conn = odbc_connect ("webdb", "php", "chicken"); $stmt = odbc_prepare ($conn, "UPDATE sessions SET data = ? WHERE id = ?"); $sqldata = array (serialize($session_data), $PHP_AUTH_USER); -if (!odbc_execute ($stmt, &$sqldata)) { +if (!odbc_execute ($stmt, &$sqldata)) { $stmt = odbc_prepare($conn, "INSERT INTO sessions (id, data) VALUES(?, ?)"); if (!odbc_execute($stmt, &$sqldata)) { @@ -1164,7 +1164,7 @@ settype($bar, "string"); // $bar is now "1" (string) $conn = odbc_connect ("webdb", "php", "chicken"); $stmt = odbc_prepare ($conn, "SELECT data FROM sessions WHERE id = ?"); $sqldata = array ($PHP_AUTH_USER); -if (!odbc_execute ($stmt, &$sqldata) || !odbc_fetch_into ($stmt, &$tmp)) { +if (!odbc_execute ($stmt, &$sqldata) || !odbc_fetch_into ($stmt, &$tmp)) { // if the execute or fetch fails, initialize to empty array $session_data = array(); } else {