Commit graph

80 commits

Author SHA1 Message Date
Christoph Michael Becker
e41806c30b Revert revision(s) 351724 from phpdoc/en/trunk:
Document false and null return types

Cf. <https://news-web.php.net/php.doc.cvs/17645>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351730 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 18:05:44 +00:00
Jakub Vrana
c80da7c04a Document false and null return types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351724 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 12:54:59 +00:00
Christoph Michael Becker
310515f826 PDOStatement::fetchObject() returns object|false
Patch contributed by Benjamin Morel <benjamin.morel@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351575 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-24 13:36:39 +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
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
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
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
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
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
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
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
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
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
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
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
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
Adam Harvey
5da461c02a Update PDOStatement::fetchColumn() docs for the boolean column issue.
Fixes doc bug #68783 (pgsql: PDO::fetchColumn() false returned for value false
and no rows returned).


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335883 c90b9560-bf6c-de11-be94-00142212c4b1
2015-02-04 02:34:10 +00:00
Jean-Sebastien Hedde
41060e691d Anonymous contributions
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335484 c90b9560-bf6c-de11-be94-00142212c4b1
2014-12-30 12:29:17 +00:00
Simion Onea
14af302c9c Making the XML definition consistent across the entire project.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334762 c90b9560-bf6c-de11-be94-00142212c4b1
2014-09-05 07:44:07 +00:00
Peter Cowburn
ef5dde1af7 Value is not dumped
Remko van Bezooijen

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333216 c90b9560-bf6c-de11-be94-00142212c4b1
2014-03-29 21:56:38 +00:00
Adam Harvey
ff3a7948d5 Document PDO::FETCH_NAMED in the same place as the other fetch constants.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332113 c90b9560-bf6c-de11-be94-00142212c4b1
2013-11-13 21:47:00 +00:00
Philip Olson
799afa7e6f Clarified return value as suggested by PHP Bug #64631
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330637 c90b9560-bf6c-de11-be94-00142212c4b1
2013-06-25 00:36:23 +00:00
Sebastian Bergmann
656d1610af Add missing modifier information. Patch by Jeff Welch <whatthejeff@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330543 c90b9560-bf6c-de11-be94-00142212c4b1
2013-06-18 05:36:30 +00:00
Jakub Vrana
d9e790b852 Link constants
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330431 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-31 20:29:47 +00:00
Jakub Vrana
55e7ee28d6 PDOStatement::debugDumpParams() returns null (bug #64839)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330278 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-17 23:56:01 +00:00
Justin Martin
a937c3c578 Changed return value to &return.success;, as returns 1 on success no longer would seem to apply.
Closes bug #63944.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329087 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-12 00:22:00 +00:00
Yannick Torres
3a8dc25d68 Typo found by online editor user
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328095 c90b9560-bf6c-de11-be94-00142212c4b1
2012-10-22 11:49:37 +00:00
Sherif Ramadan
1d410ffe5d Fixed wrong variable name used in the example code.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327812 c90b9560-bf6c-de11-be94-00142212c4b1
2012-09-27 02:02:20 +00:00
Sherif Ramadan
4ff7ef044b Added example for binding values in an array using arbitrary unnamed placeholders in a prepared statement.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327811 c90b9560-bf6c-de11-be94-00142212c4b1
2012-09-27 01:59:34 +00:00
Jakub Vrana
45bc78be1c Use class::method
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@322104 c90b9560-bf6c-de11-be94-00142212c4b1
2012-01-12 01:02:11 +00:00
Richard Quadling
a56106f691 Standardized on double quotes for attributes.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@317502 c90b9560-bf6c-de11-be94-00142212c4b1
2011-09-30 14:21:51 +00:00
Jakub Vrana
3220ceeae8 Default fetch mode
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@316472 c90b9560-bf6c-de11-be94-00142212c4b1
2011-09-09 19:49:30 +00:00
Richard Quadling
fc9e379fd8 Standardise on single style of quotes for XML tag.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@315005 c90b9560-bf6c-de11-be94-00142212c4b1
2011-08-16 11:38:58 +00:00
Adam Harvey
098b5194b9 Fix doc bug #54286 (There is a typo describing output for pdo rowcount).
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@309323 c90b9560-bf6c-de11-be94-00142212c4b1
2011-03-17 03:09:37 +00:00
Justin Martin
e81aff98be Minor but important grammar fix, closing bug #53582.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@307445 c90b9560-bf6c-de11-be94-00142212c4b1
2011-01-13 19:16:38 +00:00
Adam Harvey
22c4c1212a Fix doc bug #53707 (Wrong function declaration of PDOStatement->execute).
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@307396 c90b9560-bf6c-de11-be94-00142212c4b1
2011-01-12 03:58:52 +00:00
Richard Quadling
7f2c77fd73 SORT BY => ORDER BY
Fix #53428

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305858 c90b9560-bf6c-de11-be94-00142212c4b1
2010-11-30 17:15:38 +00:00
Justin Martin
55884886a1 Fixed examples to use &example.outputs.similar; instead of &example.outputs;.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305123 c90b9560-bf6c-de11-be94-00142212c4b1
2010-11-06 00:54:37 +00:00
Justin Martin
7d4bc3e51e Added to PDOStatement::fetchAll the PDO::FETCH_FUNC behaviour for fetch_argument parameter, plus examples for PDO::FETCH_CLASS and PDO::FETCH_FUNC.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305122 c90b9560-bf6c-de11-be94-00142212c4b1
2010-11-06 00:13:22 +00:00
Peter Cowburn
a912865116 Typos and grammar
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304887 c90b9560-bf6c-de11-be94-00142212c4b1
2010-10-25 19:38:17 +00:00
Kalle Sommer Nielsen
e12a44b369 Fixed bug #51809 (Missing information in PDOStatement->fetchAll docs)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304883 c90b9560-bf6c-de11-be94-00142212c4b1
2010-10-25 17:10:42 +00:00