vrana Wed May 4 09:59:45 2005 EDT
Modified files:
/phpdoc/en/reference/ibm_db2/functions db2-autocommit.xml
db2-connect.xml
db2-rollback.xml
/phpdoc/en/reference/maxdb/functions maxdb-multi-query.xml
/phpdoc/en/reference/pdo/functions PDO-prepare.xml
Log:
Fix PHP parse errors
http://cvs.php.net/diff.php/phpdoc/en/reference/ibm_db2/functions/db2-autocommit.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/reference/ibm_db2/functions/db2-autocommit.xml
diff -u phpdoc/en/reference/ibm_db2/functions/db2-autocommit.xml:1.3
phpdoc/en/reference/ibm_db2/functions/db2-autocommit.xml:1.4
--- phpdoc/en/reference/ibm_db2/functions/db2-autocommit.xml:1.3 Wed May
4 05:39:11 2005
+++ phpdoc/en/reference/ibm_db2/functions/db2-autocommit.xml Wed May 4
09:59:44 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc.
-->
<refentry id="function.db2-autocommit">
<refnamediv>
@@ -99,9 +99,9 @@
$conn = db2_connect($database, $user, $password, $options);
$ac = db2_autocommit($conn);
if ($ac == 0) {
- print "$ac -- AUTOCOMMIT is off."
+ print "$ac -- AUTOCOMMIT is off.";
} else {
- print "$ac -- AUTOCOMMIT is on."
+ print "$ac -- AUTOCOMMIT is on.";
}
?>
]]>
@@ -128,15 +128,15 @@
// Turn AUTOCOMMIT on
$rc = db2_autocommit($conn, DB2_AUTOCOMMIT_ON);
if ($rc) {
- print "Turning AUTOCOMMIT on succeeded.\n"
+ print "Turning AUTOCOMMIT on succeeded.\n";
}
// Check AUTOCOMMIT state
$ac = db2_autocommit($conn);
if ($ac == 0) {
- print "$ac -- AUTOCOMMIT is off."
+ print "$ac -- AUTOCOMMIT is off.";
} else {
- print "$ac -- AUTOCOMMIT is on."
+ print "$ac -- AUTOCOMMIT is on.";
}
?>
]]>
http://cvs.php.net/diff.php/phpdoc/en/reference/ibm_db2/functions/db2-connect.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc/en/reference/ibm_db2/functions/db2-connect.xml
diff -u phpdoc/en/reference/ibm_db2/functions/db2-connect.xml:1.4
phpdoc/en/reference/ibm_db2/functions/db2-connect.xml:1.5
--- phpdoc/en/reference/ibm_db2/functions/db2-connect.xml:1.4 Wed Apr 20
00:29:20 2005
+++ phpdoc/en/reference/ibm_db2/functions/db2-connect.xml Wed May 4
09:59:44 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc.
-->
<refentry id="function.db2-connect">
<refnamediv>
@@ -200,7 +200,7 @@
$hostname = 'localhost';
$port = 50000;
-$conn_string = "DRIVER={IBM DB2 ODBC DRIVER};DATABASE=$database;' .
+$conn_string = "DRIVER={IBM DB2 ODBC DRIVER};DATABASE=$database;" .
"HOSTNAME=$hostname;PORT=$port;PROTOCOL=TCPIP;UID=$user;PWD=$password;";
$conn = db2_connect($conn_string, '', '');
@@ -239,7 +239,7 @@
if ($conn) {
echo "Connection succeeded.\n";
- if (db2_autocommit($conn))) {
+ if (db2_autocommit($conn)) {
echo "Autocommit is on.\n";
}
else {
http://cvs.php.net/diff.php/phpdoc/en/reference/ibm_db2/functions/db2-rollback.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc/en/reference/ibm_db2/functions/db2-rollback.xml
diff -u phpdoc/en/reference/ibm_db2/functions/db2-rollback.xml:1.2
phpdoc/en/reference/ibm_db2/functions/db2-rollback.xml:1.3
--- phpdoc/en/reference/ibm_db2/functions/db2-rollback.xml:1.2 Wed Apr 20
02:16:13 2005
+++ phpdoc/en/reference/ibm_db2/functions/db2-rollback.xml Wed May 4
09:59:44 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc.
-->
<refentry id="function.db2-rollback">
<refnamediv>
@@ -98,6 +98,7 @@
$res = db2_fetch_into( $stmt );
echo $res[0] . "\n";
db2_close($conn);
+}
?>
]]>
</programlisting>
http://cvs.php.net/diff.php/phpdoc/en/reference/maxdb/functions/maxdb-multi-query.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/reference/maxdb/functions/maxdb-multi-query.xml
diff -u phpdoc/en/reference/maxdb/functions/maxdb-multi-query.xml:1.3
phpdoc/en/reference/maxdb/functions/maxdb-multi-query.xml:1.4
--- phpdoc/en/reference/maxdb/functions/maxdb-multi-query.xml:1.3 Fri Apr
15 13:48:26 2005
+++ phpdoc/en/reference/maxdb/functions/maxdb-multi-query.xml Wed May 4
09:59:45 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<refentry id="function.maxdb-multi-query">
<refnamediv>
<refname>maxdb_multi_query</refname>
@@ -88,7 +88,7 @@
<programlisting role="php">
<![CDATA[
<?php
-$link = maxdb_connect("localhost", "MONA", "RED", "DEMODB"
+$link = maxdb_connect("localhost", "MONA", "RED", "DEMODB");
/* check connection */
if (maxdb_connect_errno()) {
http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/functions/PDO-prepare.xml?r1=1.5&r2=1.6&ty=u
Index: phpdoc/en/reference/pdo/functions/PDO-prepare.xml
diff -u phpdoc/en/reference/pdo/functions/PDO-prepare.xml:1.5
phpdoc/en/reference/pdo/functions/PDO-prepare.xml:1.6
--- phpdoc/en/reference/pdo/functions/PDO-prepare.xml:1.5 Tue Mar 22
16:52:46 2005
+++ phpdoc/en/reference/pdo/functions/PDO-prepare.xml Wed May 4 09:59:45 2005
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<!-- Generated by xml_proto.php v2.1. Found in /scripts directory of phpdoc.
-->
<refentry id="function.PDO-prepare">
<refnamediv>
@@ -78,7 +78,7 @@
/* Execute a prepared statement by passing an array of values */
$sql = 'SELECT name, colour, calories
FROM fruit
- WHERE calories < :calories AND colour = :colour'
+ WHERE calories < :calories AND colour = :colour';
$sth = $dbh->prepare($sql, array(PDO_ATTR_CURSOR, PDO_CURSOR_FWDONLY));
$sth->execute(array(':calories' => 150, ':colour' => 'red'));
$red = $sth->fetchAll();