Commit graph

18580 commits

Author SHA1 Message Date
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
Andrew Foster
7a3899eea9
Fix double "language" (#538) 2021-04-20 13:39:32 +08:00
蝦米
dd52212027
fix #80766 namespaced assert is no longer allowed 2021-04-20 01:54:29 +08:00
Kamil Tekiela
b80314ffbb
Remove PHP 5 from filter extension (#531)
* Update changelog
* Remove para from Overview
* Remove available from
* Remove paragraph about +0/-0
* Remove changelog entries
2021-04-19 12:15:48 +02:00
Yurun
4d02fe98dd
Improve variable name in example (#529) 2021-04-19 12:07:44 +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
9ee27f088a
Fix some common typos (#533)
* accomodate -> accommodate
* agressive -> aggressive
* begining -> beginning
* enviroment -> environment
* existance -> existence
* fourty -> forty
* foward -> forward
* futher -> further
* immediatly -> immediately
* occured -> occurred
* occuring -> occurring
* occurance, occurence -> occurrence
* prefered -> preferred
* publically -> publicly
* seperate -> separate
* compliment -> complement
2021-04-19 11:57:59 +02:00
Yoshinari Takaoka
30ac3684e1 added missing constant tag. 2021-04-19 18:10:41 +09:00
Kamil Tekiela
92d0f8b9af
Add FILTER_SANITIZE_ADD_SLASHES (#532) 2021-04-19 10:30:47 +02:00
Ruslan Osmanov
3cfbd573de
Added a note about removal of eio_init function in the eio version 3.0.0RC1 (#536) 2021-04-19 10:02:10 +02:00
Kamil Tekiela
2693fe9dd2
HTML-escape -> HTML-encode 2021-04-18 17:03:05 +01:00
Yoshinari Takaoka
220cd5030c fixed typo 2021-04-18 00:04:31 +09:00
Jeremy Mikola
bee33290e8 Various fixes for MongoDB\Driver\ServerApi
Include ServerApi alongside other MongoDB\Driver classes.
Nest ServerApi examples <section> within <partinfo> block.
Fix character case in ServerApi method page IDs.
Fix typos in ServerApi version info and add missing methods.

See: php/doc-en@876a785f36
2021-04-16 21:59:50 -04:00
Jeremy Mikola
aa85e3522b Fix indentation in MongoDB\Driver\Manager example 2021-04-16 18:19:10 -04:00
ctcq
41fde0caa4
Add note to FILTER_SANITIZE_STRING for encoding quotes (#530)
Co-authored-by: Christopher Wiedey <c_wied05@uni-muenster.de>
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
2021-04-16 15:52:30 +01:00
Juliette
f3b5475eeb
PHP 8.0 migration/deprecated: expand on libxml_disable_entity_loader() (#528)
The current text in the migration guide about the deprecation of `libxml_disable_entity_loader()` is misleading and can easily lead to the introduction of XXE vulnerable code.

In select circumstances, when `LIBXML_NOENT` is used, code can still be vulnerable to XXE attacks, even on PHP 8.0.
So I'm proposing to add an appropriate warning and mention the upgrade path in the migration guide.

Includes fixing a typo on the `libxml_disable_entity_loader()` page.

Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
2021-04-16 10:44:07 +02:00
Kamil Tekiela
2a5459cd41
Fix typo with <methodname> 2021-04-15 18:34:33 +01:00
Rowan Tommins
b23076d969
Expand documentation for mb_detect_encoding (#527)
- People expect this function to work miracles. Add some examples
  of why that's not possible. Hat tip to this FAQ for the cipher
  comparison: https://chardet.readthedocs.io/en/latest/faq.html
- The strict parameter wasn't really explained at all. I *think*
  this is what it actually does.
- General expansion and grammar fixes (I suspect the original
  author didn't speak English as a first language, which makes
  sense since the mbstring extension originated in Japan).
2021-04-14 14:05:39 +02:00
Rowan Tommins
4d3d1ebea1
Document and cross-reference mb_chr() and mb_ord() (#524) 2021-04-13 14:49:11 +02:00
沈唁
a08663f3c3
Update Swoole\Process::name (#525) 2021-04-13 11:21:45 +02:00
Rowan Tommins
4138897b12
Remove or rewrite examples using implode("", file(...)) (#523)
This is a weirdly inefficient way of getting a file's content into
a string, and I'm not sure why anyone would think it was a good
idea.
2021-04-12 22:33:56 +02:00
Larry Garfield
68a416eeb7
Remove old weakref extension (#514)
* Remove old weakref extension that no longer works and namespace conflicts with WeakMap in PHP 8.
2021-04-12 15:35:52 +02:00
Christoph M. Becker
6936064e73
Fix #74982: strftime %P not working on Alpine Linux 2021-04-12 14:12:41 +02:00
Kamil Tekiela
a5dd0e6824
Remove mysqli::get_client_stats (#518)
This method doesn't exist.
2021-04-12 13:59:01 +02:00
沈唁
e6be4fb01d
Update Swoole getclientinfo (#521) 2021-04-12 13:27:17 +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
沈唁
d35bf30250
Fix types of Swoole\Process::kill (#515)
Also flesh out the documentation of this method a bit.
2021-04-08 11:46:32 +02:00
Christoph M. Becker
624ad8b8de
Document enchant installation on Windows 2021-04-06 16:40:17 +02:00
Juliette
1ea4e4f576
escapeshellcmd: add warning about spaces in paths on Windows (#511)
It is a known issue that spaces are not escaped in shell commands, which can be especially problematic on Windows.
This adds a warning about this behaviour to the function, including a way to solve this in userland code.

Ref: https://bugs.php.net/bug.php?id=43261 (last two comments)

Also see: https://github.com/squizlabs/PHP_CodeSniffer/pull/3214

Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
2021-04-05 18:39:54 +02:00
Christoph M. Becker
9a37893b54
Clarify meaning of stream_get_line() parameters
Cf. <https://bugs.php.net/48421>.

Signed-off-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-04-01 17:33:28 +02:00
Christoph M. Becker
e49940b757
Fix #73938: PHP7 foreach internal array pointer 2021-03-31 16:09:52 +02:00
Christoph M. Becker
c73b00a6d7
Fix #63663: str_word_count does not properly handle non-latin characters
Signed-off-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-03-31 15:34:59 +02:00
Christoph M. Becker
4b0cd817ce
PECL/ibase is unmaintained 2021-03-31 15:16:48 +02:00
Tiffany
b60ee4fd0c
fix miscapitalization 2021-03-31 08:12:51 -05:00
sy-records
f03dfae1dc
Add swoole_error_log for swoole and add respective constants
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Signed-off-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-03-31 13:29:14 +02:00
sy-records
e48f15d64a
Add swoole-clear-error for swoole
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Signed-off-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-507.
2021-03-31 13:04:05 +02:00
Andreas Braun
876a785f36
MongoDB: Document versioned API functionality 2021-03-31 08:12:45 +02:00
Sara Golemon
b6c8a19a38
Document character class of wrapper scheme names 2021-03-30 15:11:30 +00:00
Samuel Gfeller
d6cd01d707
Added empty string case to is_numeric code example doc
Closes GH-508.

Signed-off-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-03-30 12:36:25 +02:00
mikesaintsg
8e2b781577
Update swoole-async-readfile.xml
Grammar correction, "read" is the correct past tense.

Closes GH-504.

Signed-off-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-03-29 13:59:13 +02:00
Michael Vreeken
2b2edac59b Fix typo: shorted -> shorter
Closes GH-502.
2021-03-25 18:32:03 +01:00
Martin Samesch
312f9d4e18 fix parameter 2021-03-23 15:25:10 +01: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
Kensuke Morii
51ac3ba130 Fix runkit7 functions arg type
runkit7_function_redefine(): Fix type of $is_strict.

runkit7_constant_redefine(): Fix type of $newVisibility.

Closes GH-501.
2021-03-22 18:34:05 +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
Eric Stern
397f37e930 Match fgetcsv parameter names to values in reflection
The documented parameters differ from the names exposed in reflection/source code. Now that named parameters are supported in PHP 8, this discrepancy is confusing and impactful.

```
 $ php --rf fgetcsv
Function [ <internal:standard> function fgetcsv ] {

  - Parameters [5] {
    Parameter #0 [ <required> $stream ]
    Parameter #1 [ <optional> ?int $length = null ]
    Parameter #2 [ <optional> string $separator = "," ]
    Parameter #3 [ <optional> string $enclosure = "\"" ]
    Parameter #4 [ <optional> string $escape = "\\" ]
  }
  - Return [ array|false ]
}
```

Closes GH-493.
2021-03-19 00:56:00 +01:00