[PHP-DOC] cvs: phpdoc /en/reference/pdo/functions PDOStatement-fetchColumn.xml

2005-10-19 Thread Dan Scott
dbs Wed Oct 19 17:18:21 2005 EDT

  Modified files:  
/phpdoc/en/reference/pdo/functions  PDOStatement-fetchColumn.xml 
  Log:
  Explicitly document 0-indexed nature of fetchColumn() param.
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/functions/PDOStatement-fetchColumn.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/reference/pdo/functions/PDOStatement-fetchColumn.xml
diff -u phpdoc/en/reference/pdo/functions/PDOStatement-fetchColumn.xml:1.3 
phpdoc/en/reference/pdo/functions/PDOStatement-fetchColumn.xml:1.4
--- phpdoc/en/reference/pdo/functions/PDOStatement-fetchColumn.xml:1.3  Sun Sep 
11 02:22:26 2005
+++ phpdoc/en/reference/pdo/functions/PDOStatement-fetchColumn.xml  Wed Oct 
19 17:18:19 2005
@@ -1,5 +1,5 @@
 
-
+
 
 
  
@@ -29,9 +29,9 @@
  column_number
  
   
-   Number of the column you wish to retrieve from the row. If no value is
-   supplied, PDOStatement::fetchColumn fetches the
-   first column.
+   0-indexed number of the column you wish to retrieve from the row. If
+   no value is supplied, PDOStatement::fetchColumn
+   fetches the first column.
   
  
 
@@ -66,10 +66,11 @@
 /* Fetch the first column from the next row in the result set */
 print("Fetch the first column from the next row in the result set:\n");
 $result = $sth->fetchColumn();
-print("$result\n");
+print("name = $result\n");
 
-$result = $sth->fetchColumn();
-print("$result\n");
+print("Fetch the second column from the next row in the result set:\n");
+$result = $sth->fetchColumn(1);
+print("colour = $result\n");
 ?>
 ]]>
 
@@ -77,8 +78,9 @@
 
 
 



[PHP-DOC] cvs: phpdoc /en/reference/pdo/functions PDO-lastInsertId.xml PDO-query.xml PDOStatement-fetch.xml PDOStatement-fetchAll.xml

2005-10-19 Thread Dan Scott
dbs Wed Oct 19 16:45:05 2005 EDT

  Modified files:  
/phpdoc/en/reference/pdo/functions  PDO-lastInsertId.xml 
PDO-query.xml 
PDOStatement-fetch.xml 
PDOStatement-fetchAll.xml 
  Log:
  Address user notes and add a few more details.
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/functions/PDO-lastInsertId.xml?r1=1.9&r2=1.10&ty=u
Index: phpdoc/en/reference/pdo/functions/PDO-lastInsertId.xml
diff -u phpdoc/en/reference/pdo/functions/PDO-lastInsertId.xml:1.9 
phpdoc/en/reference/pdo/functions/PDO-lastInsertId.xml:1.10
--- phpdoc/en/reference/pdo/functions/PDO-lastInsertId.xml:1.9  Sun Sep 11 
02:22:26 2005
+++ phpdoc/en/reference/pdo/functions/PDO-lastInsertId.xml  Wed Oct 19 
16:45:02 2005
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -17,13 +17,15 @@
 
 
  Returns the ID of the last inserted row, or the last value from a
- sequence object, depending on the underlying driver.
+ sequence object, depending on the underlying driver. For example,
+ PDO_PGSQL requires you to specify the name of
+ a sequence object for the name parameter.
 
 
  
-  This method may not return a meaningful/consistent result across 
different PDO
-  drivers, because the underlying database may not even support the notion
-  of auto-increment fields or sequences.
+  This method may not return a meaningful or consistent result across
+  different PDO drivers, because the underlying database may not even
+  support the notion of auto-increment fields or sequences.
  
 

http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/functions/PDO-query.xml?r1=1.5&r2=1.6&ty=u
Index: phpdoc/en/reference/pdo/functions/PDO-query.xml
diff -u phpdoc/en/reference/pdo/functions/PDO-query.xml:1.5 
phpdoc/en/reference/pdo/functions/PDO-query.xml:1.6
--- phpdoc/en/reference/pdo/functions/PDO-query.xml:1.5 Sun Sep 11 02:22:26 2005
+++ phpdoc/en/reference/pdo/functions/PDO-query.xml Wed Oct 19 16:45:02 2005
@@ -1,5 +1,5 @@
 
-
+
 
 
  
@@ -26,6 +26,13 @@
PDO::prepare and issue the statement with multiple
calls to PDOStatement::execute.
   
+  
+   If you do not fetch all of the data in a result set before issuing your
+   next call to PDO::query, your call may fail. Call
+   PDOStatement::closeCursor to release the database
+   resources associated with the PDOStatement object before issuing your
+   next call to PDO::query.
+  
 
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/pdo/functions/PDOStatement-fetch.xml?r1=1.9&r2=1.10&ty=u
Index: phpdoc/en/reference/pdo/functions/PDOStatement-fetch.xml
diff -u phpdoc/en/reference/pdo/functions/PDOStatement-fetch.xml:1.9 
phpdoc/en/reference/pdo/functions/PDOStatement-fetch.xml:1.10
--- phpdoc/en/reference/pdo/functions/PDOStatement-fetch.xml:1.9Tue Sep 
20 04:22:29 2005
+++ phpdoc/en/reference/pdo/functions/PDOStatement-fetch.xmlWed Oct 19 
16:45:02 2005
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -18,7 +18,9 @@
 
 
 
- Fetches a row from a result set associated with a PDOStatement object.
+ Fetches a row from a result set associated with a PDOStatement object. The
+ fetch_style parameter determines how PDO returns
+ the row.
 

 
@@ -40,7 +42,8 @@
   
   
PDO::FETCH_BOTH (default): returns an array 
indexed by
-   both column name and column number as returned in your result set
+   both column name and 0-indexed column number as returned in your
+   result set
   
   
PDO::FETCH_BOUND: returns &true; and assigns the
@@ -49,19 +52,29 @@
method
   
   
+   PDO::FETCH_CLASS: returns a new instance of the
+   requested class, mapping the columns of the result set to named
+   properties in the class
+  
+  
+   PDO::FETCH_INTO: updates an existing instance
+   of the requested class, mapping the columns of the result set to
+   named properties in the class
+  
+  
PDO::FETCH_LAZY: combines
PDO::FETCH_BOTH and 
PDO::FETCH_OBJ,
creating the object variable names as they are accessed
   
   
+   PDO::FETCH_NUM: returns an array indexed by 
column
+   number as returned in your result set, starting at column 0
+  
+  
PDO::FETCH_OBJ: returns an anonymous object with
property names that correspond to the column names returned in your
result set
   
-  
-   PDO::FETCH_NUM: returns an array indexed by 
column
-   number as returned in your result set, starting at column 0
-  
  
 

@@ -73,7 +86,11 @@
  For a PDOStatement object representing a scrollable cursor, this
  v

[PHP-DOC] #34918 [Opn->Asn]: SDO_DAS_Relational docs specify MySQL version that does not exist

2005-10-19 Thread nlopess
 ID:  34918
 Updated by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
-Status:  Open
+Status:  Assigned
 Bug Type:Documentation problem
 PHP Version: Irrelevant
-Assigned To: 
+Assigned To: mfp


Previous Comments:


[2005-10-19 17:49:33] [EMAIL PROTECTED]

Description:

http://php.net/manual/en/ref.sdo.das.rel.php states that the
SDO_DAS_Relational driver has been tested with MySQL 4.1.17.

Only problem is that, at this time, the latest available release of
MySQL is 4.1.14.







-- 
Edit this bug report at http://bugs.php.net/?id=34918&edit=1


[PHP-DOC] #34918 [NEW]: SDO_DAS_Relational docs specify MySQL version that does not exist

2005-10-19 Thread [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Operating system: 
PHP version:  Irrelevant
PHP Bug Type: Documentation problem
Bug description:  SDO_DAS_Relational docs specify MySQL version that does not 
exist

Description:

http://php.net/manual/en/ref.sdo.das.rel.php states that the
SDO_DAS_Relational driver has been tested with MySQL 4.1.17.

Only problem is that, at this time, the latest available release of MySQL
is 4.1.14.



-- 
Edit bug report at http://bugs.php.net/?id=34918&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34918&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34918&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34918&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=34918&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=34918&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=34918&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=34918&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=34918&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34918&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=34918&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=34918&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=34918&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=34918&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34918&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=34918&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=34918&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34918&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34918&r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=34918&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34918&r=mysqlcfg


[PHP-DOC] cvs: phpdoc /scripts gen-phpdoc-tz-list.php

2005-10-19 Thread Derick Rethans
derick  Wed Oct 19 03:20:52 2005 EDT

  Added files: 
/phpdoc/scripts gen-phpdoc-tz-list.php 
  Log:
  - Added my TZ appendix generation script.
  
  

http://cvs.php.net/co.php/phpdoc/scripts/gen-phpdoc-tz-list.php?r=1.1&p=1
Index: phpdoc/scripts/gen-phpdoc-tz-list.php
+++ phpdoc/scripts/gen-phpdoc-tz-list.php
 'America',
'Canada' => 'America',
'Chile' => 'America',
'Etc' => 'Others',
'Mexico' => 'America',
'US' => 'America',
'Indian' => 'Asia',
);
$list = timezone_identifiers_list();

foreach ($list as $element) {
if (preg_match('@^([^/]*)/(.*)@', $element, $m)) {
$group = $m[1];
} else {
$group = 'Others';
}
if (isset($aliasList[$group])) {
$group = $aliasList[$group];
}
$groupedList[$group][] = $element;
}
ksort($groupedList);
$others = $groupedList['Others'];
unset($groupedList['Others']);
$groupedList['Others'] = $others;
?>





 List of Supported Timezones
 
 
 $zones) { ?>

 
  List of timezones in the group 
  
   
   

\n";
}
$c++;
echo "  {$zone}\n";
if ($c % 5 == 0) {
echo " \n";
}
}
if ($c % 5 != 0) {
echo " \n";
}
?>