Danack
b95e76e41d
Types are not hints in PHP. ( #1003 )
...
As they are checked at run-time, type checking is enforced in PHP and not 'hinted'.
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
2021-10-09 14:43:01 +01:00
Sergey Panteleev
8a2141dcc0
Deprecated functions and constants
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-981.
2021-10-04 16:53:40 +02:00
Christoph M. Becker
c807f27964
Fix #81189 : PDOStatement::fetchAll() claims "false on failure" return
2021-09-20 12:15:17 +02:00
Kamil Tekiela
25a4efd32a
Reword PDOStatement::nextRowset example description
...
Closes GH-940.
2021-09-13 15:48:46 +02:00
Kamil Tekiela
c7c883ab47
Fix type in PDO::setAttribute ( #867 )
2021-08-20 16:23:44 +01:00
Kamil Tekiela
44262a5c76
colno to column
2021-08-06 22:56:11 +01:00
Kamil Tekiela
c88610d43a
Fix fetchAll synopsis ( #842 )
2021-08-06 22:39:45 +01:00
Kamil Tekiela
f6e0117681
Add missing <classname>
2021-07-25 00:40:09 +02:00
Christoph M. Becker
053f0940f7
Minor improvements to PDO::query()
...
As suggested by @salathe; see GH-813.
2021-07-24 00:58:56 +02:00
Kamil Tekiela
02e6f35734
Add missing parameter to pdo query ( #813 )
2021-07-23 22:26:44 +01:00
Kamil Tekiela
c29dbc6680
Add missing word "and executed"
2021-07-23 19:07:45 +01:00
Kamil Tekiela
4a3d3cf1f6
Fix inaccurate information in pdo query ( #806 )
...
* Added the missing 'prepares' to the description
* Removed inaccurate information. The statement is returned even if there's no result set
* Added a note explaining what to do if the SQL has placeholders
* Removed confusing para. It's not a feature of PDO::query
* Simplify the return part
* It returns a statement, not a result set!
2021-07-21 16:18:54 +01:00
George Peter Banyard
3d69f8f11f
Fix most missing param sections for PDO
...
Also rearange changelog before examples for one file
Part of #658
2021-06-13 19:24:31 +01:00
Máté Kocsis
2097828a3d
Document that PDO::FETCH_DEFAULT is only available as of PHP 8.0.7
...
Closes GH-597.
2021-06-01 14:54:46 +02:00
Kamil Tekiela
91bec719b3
Fix #81073 : bad example titles for PDOStatement::execute
...
Closes GH-621.
2021-05-22 23:17:22 +02:00
Christoph M. Becker
1fe877df2e
Fix #81066 : Documentation conflicts about default PDO error mode
2021-05-21 18:14:23 +02:00
Máté Kocsis
c9c158137b
Generate ext/pdo methodsynopses based on stubs ( #494 )
2021-05-06 14:50:35 +02:00
Yoshinari Takaoka
1200e4ec5a
Added PHP 8 into versions.xml for pdo based on stubs.
2021-05-04 18:54:58 +01:00
Kamil Tekiela
84e8f0960b
Removed redundant if and use short array syntax ( #571 )
2021-05-03 12:35:23 +02:00
Sergey Panteleev
8a058e9acd
Removed references to PHP 5, 7.0 ( #549 )
...
PDO and PCRE sections
2021-04-27 12:53:38 +03:00
Sergey Panteleev
a0ae28d3bc
Removed references to PHP 5, PHP 7.0 ( #545 )
2021-04-24 20:01:17 +03:00
Sergey Panteleev
aab33d6443
Removed references to PHP 5, PHP 7.0 ( #544 )
2021-04-23 11:35:26 +03:00
Dharman
a3a310ccc2
Remove try-catch from PDO examples
...
Also fix erroneous indentation.
Co-authored-by: Anna Filina <afilina@gmail.com>
Closes GH-323.
2021-03-08 17:03:42 +01:00
Christoph M. Becker
6dfe076725
xi:include INI settings documented elsewhere in ini.list
...
We do not xi:include core INI settings, since we want to keep
alphabetic sort order (well, roughly at least).
We do add xi:fallback elements to all xi:includes, just in case.
2021-02-24 17:58:20 +01:00
Christoph M. Becker
0eaef37f83
Fix #80789 : Return type includes false
2021-02-23 13:38:47 +01:00
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
Christoph Michael Becker
4754397753
Revert revision 351727 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@351729 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 17:58:32 +00:00
Jakub Vrana
69bd53265b
Document false and null return types
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351727 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 15:12:46 +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
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