Commit graph

727 commits

Author SHA1 Message Date
YutaAdachi
e1d58b4166
Fix the default value of rollback-on-cached-plink
Closes GH-610.
2021-05-20 14:59:35 +02:00
Kamil Tekiela
2d5c6bed30
Updating mysqli: mysqli_stmt_affected_rows (#553)
* Remove redundant sentence
* Synchronize it with MySQL doc
* Fix incorrect information
* No need for 2 paragraphs
* Add literal
* Improved examples
* Replaced see also
* maximal -> maximum
2021-04-27 22:55:25 +02:00
Kamil Tekiela
cdd4a9f3a6
Updating mysqli: mysqli_affected_rows (#554)
* Fix grammar
* Remove spaces and split the line
* Add a note about unbuffered query
* Removed redundant code
* integer -> int
2021-04-27 22:52:51 +02:00
Kamil Tekiela
e994a8d5be
Updating mysqli: mysqli_stmt_num_rows (#534)
* Better title
* Rewrite the description
* Rewrite return value section
* Simplify the example
* Move up mysqli_stmt_store_result
* Removed ungrammatical "or not"

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-04-20 10:32:36 +02:00
Kamil Tekiela
058748359b
Updating mysqli: mysqli_stmt_store_result (#535)
* Split up the sentence and make it easier to read
* Simplify the example
2021-04-19 12:05:47 +02:00
Kamil Tekiela
2a5459cd41
Fix typo with <methodname> 2021-04-15 18:34:33 +01:00
Kamil Tekiela
a5dd0e6824
Remove mysqli::get_client_stats (#518)
This method doesn't exist.
2021-04-12 13:59:01 +02:00
Kamil Tekiela
5c3589b9b8
Updating mysqli: bind_param (#512)
* Add mysqli_stmt_prepare to the descr.
* Simplify examples
* Fix example title
* Added new example with ...
2021-04-08 12:55:16 +02:00
Kamil Tekiela
7d6b8ade61
Updating mysqli: fetch_all (#513)
* Provided better description
* Added mysqli_stmt_get_result to the result param
* Remove misleading note
* Provided a simple example
2021-04-08 12:07:58 +02:00
Kamil Tekiela
4f006f632a Clean up all mysqli aliases removed in PHP 5.4
Closes GH-499.
2021-03-23 13:58:40 +01:00
Kamil Tekiela
9c9b8f3e66 Improve mysqli_query docs
* Add a nice big SQL injection warning

* Break overlong breaks

* Rewrite result_mode explanation

* Simplify examples

* Add mysqli_prepare to see also

Closes GH-497.
2021-03-23 13:53:28 +01:00
Kamil Tekiela
df1072f8d2 Improve mysqli_real_escape_string docs
* Tidy up the alias situation
  It should look the same as https://www.php.net/manual/en/function.mysqli-set-opt.php

* Add "produce" word

Copied from MySQL manual

* Removed old note

  This was changed some time back around PHP 7.3. In PHP 8 all of these warnings have been converted to Errors and the function doesn't return NULL or FALSE anymore.

* Revert Doc Bug #55757

  I'm sorry, but this note doesn't belong here. It is absolutely useless to point it out in this particular place. People migrating from mysql_* API have to do a lot more work than ensuring their escaping function works. This might have been added as a comment, but it should not be part of the official doc page.

* Provide more reasonable example

* Remove mysqli_character_set_name from See also

Closes GH-498.
2021-03-23 13:35:16 +01:00
Kamil Tekiela
34ec8e992f Simplify mysqli select db examples
Closes GH-496.
2021-03-22 17:01:43 +01:00
Dharman
fa95dcaee8 Shorten comments to fit in 1 line 2021-03-20 13:44:18 +00:00
Máté Kocsis
7e5d0d1bb6 Generate mysqli methodsynopses based on stubs
Cf. <https://github.com/php/doc-en/pull/301>.
2021-03-18 23:21:37 +01:00
Dharman
0a4dd74391 Updating mysqli prepared statements docs
Co-authored-by: George Peter Banyard <7906688+Girgias@users.noreply.github.com>

Closes GH-338.
2021-03-08 18:56:40 +01:00
Dharman
d59f3c6684 Improve MySQLi Quick Start guide
Co-authored-by: Anna Filina <afilina@gmail.com>

Closes GH-184.
2021-03-08 18:28:58 +01:00
Dharman
ca5c477437 Improve mysqli_fetch_* functions docs
* Aligned examples. OO and procedural examples where using different
  variable names. An example of iterator was using different style and
  data
* Improved descriptions. Some words were confusing and even wrong.
* Aligned notes. All notes are in the same place and follow similar grammar
* Removed manual error checking from examples
* Removed unnecessary LIMIT 50,5
* Added .similar to the example results

Co-authored-by: Anna Filina <afilina@gmail.com>

Closes GH-207
2021-02-22 17:57:29 +01:00
Maurício Meneghini Fauth
6172f135bc Document the MYSQLI_TYPE_JSON constant
Closes GH-458.
2021-02-22 16:59:15 +01:00
Christoph M. Becker
93577455fe Fix #80767: not just options(), but also ssl_set() can be called before real_connect() 2021-02-18 12:07:57 +01:00
Anna Filina
b65a894b95 Other queries can also produce a result set
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-324.
2021-02-15 15:53:07 +01:00
Christoph M. Becker
efaedacb53 Fix #69884: mysqli->connect_error seems to be shared across objects 2021-02-12 13:09:48 +01:00
Philip Olson
40667918dc Added table ids as needed by the docs at mysql.com 2021-01-27 11:47:40 -08:00
Dharman
be526864c9 Updating mysqli docs: mysqli::__construct
Co-authored-by: Anna Filina <afilina@gmail.com>

Closes GH-178.
2021-01-12 16:10:33 +01:00
Dharman
2bd21ff7be Updating mysqli: fixing mysqli_report
Co-authored-by: Anna Filina <afilina@gmail.com>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-180.
2021-01-10 13:28:10 +01:00
Dharman
a714378ed8 Remove PHP 5 info from mysqli, PDO_MySQL and mysqlnd
Co-authored-by: Anna Filina <afilina@gmail.com>

Closes GH-253.
2021-01-10 12:47:52 +01:00
Kamil Tekiela
72880807af Fix double full stop in several places.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352282 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-29 17:43:02 +00:00
Christoph Michael Becker
038bdb1d98 Remove introductory MySQLi example
This example does not use modern best practices to avoid security issues
(prepared statements, proper output escaping), and is heavily criticized for
that.  Fixing that would make the introductory example even more complex;
turning that section into a small tutorial (what was likely the original
intent) would make sense, but apparently nobody ever worked on that, so we
remove this example section altogether.

Cf. <https://github.com/php/doc-en/pull/278>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352184 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-26 11:55:03 +00:00
Kamil Tekiela
ce753ccd3d Doc Bug #72393 mysqli_stmt_field_count undocumented
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352160 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-21 23:07:01 +00:00
Christoph Michael Becker
4473119c07 Revert revision 352076 from phpdoc/en/trunk/reference/mysqli:
MySQL's utf8 has *at* *most* 3 byte per codepoint

........

As pointed out by dharman, the new info is wrong.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352139 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-19 16:46:03 +00:00
Christoph Michael Becker
d2dd88a60c MySQL's utf8 has *at* *most* 3 byte per codepoint
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352076 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-14 19:14:32 +00:00
Christoph Michael Becker
ee4558e955 utf8 has been deprecated for past 10 years
Closes GH-252.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352075 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-14 19:07:56 +00:00
Christoph Michael Becker
053609a5c9 Updating mysqli: free result
Closes GH-240.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352045 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-12 22:26:28 +00:00
Christoph Michael Becker
b9ba4fca83 Updating mysqli: Remove pre-deprecation notice
Closes GH-247.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352044 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-12 22:15:36 +00:00
Christoph Michael Becker
f8d26b8229 Update mysqli/options.xml
We document the most important missing options, and remove obsolete
PHP 5 specific info.

Closes GH-245.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351748 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-29 15:01:45 +00:00
Christoph Michael Becker
8bacb88eb4 Actually remove mysqli_warning::__construct() docs
Cf. <https://github.com/php/doc-en/pull/248>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351738 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 23:26:18 +00:00
Christoph Michael Becker
e476d30297 Remove mysqli_warning::__construct
Closes GH-248.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351737 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 23:24:09 +00:00
Christoph Michael Becker
d6882d8c73 mysqli_warning is final (at least as of PHP 7.0.0)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351736 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 23:21:03 +00: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
854af29294 MYSQLI_OPT_READ_TIMEOUT is available as of PHP 7.2.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351425 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-18 13:44:17 +00:00
Christoph Michael Becker
d0c49dec8d Document MYSQLI_OPT_READ_TIMEOUT on mysqli::options page
Patch contributed by daverandom.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351420 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-18 00:04:47 +00:00
Chris Wright
2a4707655b Add MYSQLI_OPT_READ_TIMEOUT
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351419 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-17 23:28:16 +00:00
Christoph Michael Becker
97986d5b11 MYSQLI_REPORT_OFF is the default mode
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351394 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-15 12:59:47 +00:00
Christoph Michael Becker
cea4f10f29 mysqli works with objects, not resources
We also remove the strange bracketed info on the summary page.  Maybe it was
meant to say "Not *when* called on an object, as it returns a $mysqli object",
but that's not true, because "$mysqli->init()" just returns NULL.  Of course,
that doesn't make sense, and likely mysqli::init() was supposed to be called
statically, but that is no longer supported anyway.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351331 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-08 15:27:46 +00:00
Christoph Michael Becker
14ba1dcb17 Updating mysqli: bring overview up to date
Patch contributed by Dharman <tekiela246@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351329 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-08 12:25:50 +00:00
Christoph Michael Becker
63319dea7d Update mysqli api support for transactions
* MySQL calls it autocommit mode:
https://dev.mysql.com/doc/refman/8.0/en/innodb-autocommit-commit-rollback.html
* Fix examples. Enable error reporting and remove closing tag
* Fixed the two broken links and added mysqli::begin_transaction

Patch contributed by Dharman <tekiela246@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351328 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-08 12:05:52 +00:00
Christoph Michael Becker
819cd5d7d1 Remove non-existent functions and remove Embedded server support from overview
Patch contributed by Dharman <tekiela246@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351293 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-07 21:11:47 +00:00