Commit graph

758 commits

Author SHA1 Message Date
Kamil Tekiela
52779f983f
Incorrect information in the return values section of fetch_fields (#1043) 2021-10-25 08:08:47 +01:00
Kamil Tekiela
4e8c90ca8a
PHP 8.1: Document mysqli_result::fetch_column (#776) 2021-10-19 09:31:48 +01:00
Kamil Tekiela
4f93fb38da
[PHP 8.1] Updated mysqli error reporting (#1024) 2021-10-18 12:02:07 +01:00
Sergey Panteleev
3976ceb925
Add MYSQLI_REFRESH_REPLICA description (#1006) 2021-10-09 23:48:18 +03:00
Sergey Panteleev
9b50279c67
[PHP 8.1] Update mysqli_stmt::execute description (#987)
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
2021-10-02 19:50:22 +03:00
Kamil Tekiela
ab5887fb61
Small fixes in pdo execute (#989)
* Use temporary table instead

* Uppercase

* Better description
2021-10-01 17:43:42 +01:00
Máté Kocsis
b0b19b6618
Generate methodsynopses based on stubs for recent changes (#903) 2021-10-01 17:23:05 +02:00
Kamil Tekiela
a6d7e331c3
Revert "Deprecated MYSQLI_REFRESH_SLAVE in favor of MYSQLI_REFRESH_REPLICA"
This reverts commit 5d2ef1771f.
2021-09-22 11:00:31 +01:00
Philip Olson
5d2ef1771f Deprecated MYSQLI_REFRESH_SLAVE in favor of MYSQLI_REFRESH_REPLICA 2021-09-21 15:02:06 -07:00
Kamil Tekiela
67c340d029
Updating mysqli: data_seek
* Simplified examples
* Add mysqli_stmt_get_result
* Fix example tags
* Added a secondary example
* Fix code comments

Closes GH-887.
2021-09-14 15:25:19 +02:00
Kamil Tekiela
b1fc217c5f
Updating mysqli: mysqli_num_rows
* Changed article
* More accurate description
* More accurate return value
* Improved example
* See also
* Add a note

Closes GH-891.
2021-09-03 16:04:51 +02:00
Kamil Tekiela
a3051835f7
Updating mysqli: mysqli_num_fields
* Aligned wording
* Explicitely list columns to make it obvious where the number comes from

Closes GH-892.
2021-09-03 15:59:33 +02:00
Kamil Tekiela
a3365c7546
Updating mysqli: set_charset (#844)
* default was confusing

* Simplify examples

* It's character set

* Remove duplication
2021-08-17 13:52:25 -04:00
Kamil Tekiela
de9c65c91f
Remove E_STRICT and other PHP 5 related information (#730) 2021-08-17 17:56:25 +01:00
Peter Cowburn
2e8ef0a1bd
hyphenate "object-oriented"
refs #846
2021-08-08 18:48:47 +01:00
Kamil Tekiela
22eb6b0686
Provide better documentation for mysqli_multi_query (#737) 2021-08-06 21:12:30 +01:00
Kamil Tekiela
48f0bac7fd
Updating mysqli: bind_result (#770) 2021-08-06 13:59:30 +01:00
Kamil Tekiela
c85c9d1d44
<methodname> to <function> 2021-08-06 13:53:15 +01:00
Kamil Tekiela
cbf72e3145
Updating mysqli: get_result (#771) 2021-08-05 22:14:51 +01:00
Kamil Tekiela
05ccabd6b1
Updating mysqli: insert_id (#627) 2021-08-05 21:41:10 +01:00
Kamil Tekiela
3d34df4084
Move mysqli SQL injection warning to a snippet (#703) 2021-07-12 15:08:55 +01:00
Kamil Tekiela
d1d43ac1cc
Fixed remaining issues in mysqli versions.xml (#772)
* Removed non-existent functions

* Removed duplicated entries

* Added comments
2021-07-11 12:12:21 +01:00
Yoshinari Takaoka
f24ff59d10
Added PHP 8 into versions.xml for mysqli based on stubs. (#426) 2021-07-09 21:54:13 +01:00
沈唁
d8047edf39
Fix wrong params names for mysqli::__construct() [81232] (#769)
* Fix wrong params names for mysqli::__construct() [81232]

* Fix missing hostname
2021-07-09 19:24:25 +08:00
Sergey Panteleev
4a9a553afc
Fix issues in mysqli directory (#700) 2021-06-18 14:15:33 +03:00
Sergey Panteleev
d68e83b719
Fix some issues in mysqli directory
Part of #658
2021-06-11 10:53:12 +03:00
Christoph M. Becker
eae5a1cf1e
Revert "Fix #69884: mysqli->connect_error seems to be shared across objects"
This reverts commit efaedacb53.

We cannot document non-static properties as being static, even if they
should have been static in the first place.
2021-06-09 18:24:11 +02:00
Kamil Tekiela
20fb8a52f4
Updating mysqli: mysqli_close
* Replace the old note with something clearer
* Create proper example
* Do without fetch_all

Closes GH-619.
2021-05-23 00:18:01 +02:00
Kamil Tekiela
ecf8d0250e
Remove words 'last' and 'failed' 2021-05-22 22:15:07 +01:00
Kamil Tekiela
9ee5d8bbb8
Fix the examples for character_set_name
* Fix the examples for character_set_name
* a -> the
* Returns the current character set

Closes GH-618.
2021-05-22 23:12:44 +02:00
Kamil Tekiela
614d77598a
Updating mysqli: connect_error & connect_errno
* Remove unhelpful notes
* It's not only mysqli_connect. It's any connection attempt
* It's not only mysqli_connect. Reduced clutter
* Added explanatory comments in the code and used error_log

Closes GH-620.
2021-05-22 23:05:08 +02:00
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