Commit graph

356 commits

Author SHA1 Message Date
Christoph Michael Becker
86e6094e86 Use canonical type names
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351133 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:39:04 +00:00
Christoph Michael Becker
03cc650911 Removed misleading example from rowCount()
The example given was confusing and misleading. If the purpose of it is
to show how to get the count of matching records from the database then
the example can be much shorter. `query()` should not be checked with
`if` statement and there should not be 2 separate queries to the
database if the actual count is not needed. If the number of fetched
records is needed then you can simply use PHP's `count()` function.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351083 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-30 13:13:47 +00:00
Christoph Michael Becker
ef5d3c54ff Fix #78111: Some PDO drivers don't have any version information
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350723 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-30 21:33:14 +00:00
Christoph Michael Becker
a7bdc593b7 Remove PDO_4D documentation
The extension had its latest release (0.3 beta) in 2009, and is obviously
unmaintained.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350722 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-30 21:17:30 +00:00
Christoph Michael Becker
7f569e1f17 Remove more changelog entries, mostly from PHP 5.3 era
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350655 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 14:08:59 +00:00
Christoph Michael Becker
9af43469f4 Remove more changelog entries, mostly from PHP 5.2 era
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350654 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 13:52:31 +00:00
Christoph Michael Becker
d8567f0b1a Fix #79661: PDO::ATTR_PERSISTENT also accepts a string key
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349999 c90b9560-bf6c-de11-be94-00142212c4b1
2020-06-02 08:42:00 +00:00
Christoph Michael Becker
badeacf359 Fix #76693: Notation / warning should be made for mutation of &$variable in bindParam
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349636 c90b9560-bf6c-de11-be94-00142212c4b1
2020-04-07 12:38:14 +00:00
Christoph Michael Becker
aeec7fbecb Fix #52003: Incorrect PDOStatement::execute() signature
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349634 c90b9560-bf6c-de11-be94-00142212c4b1
2020-04-07 11:40:29 +00:00
Christoph Michael Becker
dbf319f8b2 Fix #74897: Links to "warning" & "fatal error" have a blank href
Let's be pragmatic, and just use <constant> elements as in the rest of docs,
and hope that PhD will support automatically linking these elements sometime.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349307 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-05 08:22:42 +00:00
Christoph Michael Becker
b37762aa55 Note that PDO parser supports backslash escapes
Cf. bug #79276.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349240 c90b9560-bf6c-de11-be94-00142212c4b1
2020-02-20 08:22:39 +00:00
Peter Cowburn
9267d8b70e fix initialisers for PDO::FETCH_* prototypes (doc bug #78328)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347793 c90b9560-bf6c-de11-be94-00142212c4b1
2019-07-24 08:48:14 +00:00
Chris Wright
7b0847c169 Qualify PDO $errorInfo field descriptions, drivers may return additional data
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347629 c90b9560-bf6c-de11-be94-00142212c4b1
2019-06-22 00:00:07 +00:00
Christoph Michael Becker
276a6246b7 Add note regarding driver specific behavior
Patch provided by BohwaZ

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347255 c90b9560-bf6c-de11-be94-00142212c4b1
2019-04-17 07:48:36 +00:00
Peter Cowburn
4975c323ff simply function demonstrating foreach over PDO::query() result
Patch provided by Jérémy Demange

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346858 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-19 20:29:50 +00:00
Christoph Michael Becker
1c4fe00061 Improve wording
Cf. <https://bugs.php.net/77348>.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346459 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-28 15:27:00 +00:00
Christoph Michael Becker
67144ce9f8 Fix indentation
Patch provided by Cava.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345535 c90b9560-bf6c-de11-be94-00142212c4b1
2018-08-20 11:50:04 +00:00
Christoph Michael Becker
2cbeef3874 Fix #76242: Note section is not relevant anymore
Indeed, support for multiple arguments is already given by the alternative
<methodynopsis>', but we still should refer to ::setFetchMode() for the
explanation.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344774 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-20 16:50:45 +00:00
Christoph Michael Becker
8524f0a682 A value of type NULL should be denoted as &null;
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344742 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-19 12:42:14 +00:00
Jakub Vrana
7c50ead1ed Fix versions based on parsed php-src
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344068 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-29 15:23:17 +00:00
Jakub Vrana
235eed4db2 Add pdo_drivers to <refname>
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343938 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-26 16:22:54 +00:00
Jakub Vrana
fa994a739c Fix function signatures
Some of these probably deserve an entry in changelog, please add it if you have energy.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343898 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-25 19:03:56 +00:00
Jakub Vrana
dd07341fae Remove trailing fullstop in <refpurpose>
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343888 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-25 15:34:22 +00:00
Andrey Gromov
169d4be91b typo by anonymous
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343575 c90b9560-bf6c-de11-be94-00142212c4b1
2017-12-05 10:18:28 +00:00
Kalle Sommer Nielsen
cd3e37ce25 Documented all new PDO functionality in 7.2, and did some minor cleanups
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343508 c90b9560-bf6c-de11-be94-00142212c4b1
2017-11-29 18:42:13 +00:00
Chris Wright
71dcffaddf Update PDO::__construct() arg names to match those returned by reflection
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343237 c90b9560-bf6c-de11-be94-00142212c4b1
2017-10-12 14:03:43 +00:00
Christoph Michael Becker
c3fd31838a Clarify that example code is incorrect
Patch provided by anon user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342889 c90b9560-bf6c-de11-be94-00142212c4b1
2017-08-21 11:09:06 +00:00
Peter Cowburn
ee2f9aa6b6 tweak getcolumnmeta drivers info
Changes:
* Removed Firebird from list.
* Added changelog entry for PDO_DBLIB.
* Added links to drivers.
* Reformatted as itemizedlist.
* Sorted drivers in alphabetical order :)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342326 c90b9560-bf6c-de11-be94-00142212c4b1
2017-04-14 14:19:49 +00:00
Pieter Hordijk
fd6131c650 Removes experimental note as per #74370
-- 
Provided by anonymous 82010 (jay@room11.org)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342316 c90b9560-bf6c-de11-be94-00142212c4b1
2017-04-13 08:22:57 +00:00
Christoph Michael Becker
73ccd04e7d Document $flags parameter (as of PHP 7.1.4)
See https://github.com/php/php-src/pull/2412.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342155 c90b9560-bf6c-de11-be94-00142212c4b1
2017-03-17 14:07:36 +00:00
Andrey Andreev
36e4bf067b Docs bug #66542: Fix inconsistencies in PDOStatement::fetchAll() examples
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342140 c90b9560-bf6c-de11-be94-00142212c4b1
2017-03-16 12:17:12 +00:00
Christoph Michael Becker
3d8e238c40 Fix return values section
Patch provided by anon user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341234 c90b9560-bf6c-de11-be94-00142212c4b1
2016-11-30 12:06:07 +00:00
Christoph Michael Becker
80c312be68 Remove use of the word "you" per style guide
Original patch provided by Oscar Merida.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340381 c90b9560-bf6c-de11-be94-00142212c4b1
2016-10-08 10:03:31 +00:00
Christoph Michael Becker
c271533e6d Emulated prepares are not implemented by all drivers
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340311 c90b9560-bf6c-de11-be94-00142212c4b1
2016-10-04 14:54:38 +00:00
Christoph Michael Becker
1c4dd2621d Fix example comment (provided by A3020 <a3020@fastmail.com>)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339618 c90b9560-bf6c-de11-be94-00142212c4b1
2016-07-10 11:57:22 +00:00
Pieter Hordijk
6f2a633c72 Moved introduction texts under the correct subtitle
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339564 c90b9560-bf6c-de11-be94-00142212c4b1
2016-07-05 08:57:56 +00:00
Christoph Michael Becker
714b2ac860 Fix #69730: PDO: incorrect description of how to close the connection to the database
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339536 c90b9560-bf6c-de11-be94-00142212c4b1
2016-07-01 09:07:57 +00:00
Christoph Michael Becker
a5c1a2e211 Fix #66613: PDOStatement::columnCount and empty result sets
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339522 c90b9560-bf6c-de11-be94-00142212c4b1
2016-06-29 12:53:26 +00:00
Christoph Michael Becker
e440c79af1 Fix #53394: Insufficient docs regarding PDOStatement::fetch(Object) and constructors
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339520 c90b9560-bf6c-de11-be94-00142212c4b1
2016-06-29 11:03:39 +00:00
Peter Cowburn
54ffc060d1 Some PDO exceptions ignore ATTR_ERRMODE
--
Based on a patch provided by marcus@hannmail.co.uk

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339183 c90b9560-bf6c-de11-be94-00142212c4b1
2016-05-17 22:23:00 +00:00
Thomas Punt
d4958e51d6 Resolve doc bug #70119
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338832 c90b9560-bf6c-de11-be94-00142212c4b1
2016-03-27 15:52:45 +00:00
Adam Harvey
41d8e7ffe4 Update version information to include PHP 7.
This was mostly done programmatically, and is likely wrong for a small number
of functions. We may have to wait for bug reports, unless someone wants to
review this by hand. Basic efforts were made to avoid adding "PHP 7" to
functions that were removed in PHP 5.x (x > 0) and PHP 7, but there are
undoubtedly still issues.

In case we're still using Docbook for PHP 8, I've uploaded the script that I
wrote to do this to GitHub at
https://github.com/LawnGnome/php-doc-version-migrator.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338406 c90b9560-bf6c-de11-be94-00142212c4b1
2016-01-04 21:40:07 +00:00
Jean-Sebastien Hedde
a1772e86ca Fatal errors were created in the example due to PDO::beginTransaction() vs. PDOStatement::beginTransaction().
-- 
Provided by anonymous 64041 (jan.slabon@setasign.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338389 c90b9560-bf6c-de11-be94-00142212c4b1
2015-12-31 12:57:40 +00:00
Christoph Michael Becker
ab5e72bad9 call PDO::commit(), not PDOStatement::commit()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337552 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-19 12:40:37 +00:00
Christoph Michael Becker
7ed327e143 clarified $statement parameter description of PDO::prepare (fixes #70120)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337261 c90b9560-bf6c-de11-be94-00142212c4b1
2015-07-29 00:17:45 +00:00
Christoph Michael Becker
d1295c9240 corrected wrong parameter name (fixes #70143)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337242 c90b9560-bf6c-de11-be94-00142212c4b1
2015-07-27 12:42:05 +00:00
Peter Cowburn
b71889694a column names case
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336911 c90b9560-bf6c-de11-be94-00142212c4b1
2015-06-09 21:00:15 +00:00
Maciej Sobaczewski
7eb76b1f1f Close bug #69775 (fetchColumn() example is misleading)
Patch by cmb

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336896 c90b9560-bf6c-de11-be94-00142212c4b1
2015-06-09 07:07:33 +00:00
Peter Cowburn
2084295d69 Document pdo_pgsql copy from/to file/array methods. Patch by Alexander N (doc bug #63656)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336777 c90b9560-bf6c-de11-be94-00142212c4b1
2015-05-14 22:41:04 +00:00
Pieter Hordijk
53b3265387 Fixed E_ENGRISH / typos
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336630 c90b9560-bf6c-de11-be94-00142212c4b1
2015-04-23 08:59:26 +00:00