Commit graph

27113 commits

Author SHA1 Message Date
Sergey Panteleev
aab33d6443
Removed references to PHP 5, PHP 7.0 (#544) 2021-04-23 11:35:26 +03:00
Yoshinari Takaoka
8d1a5d2d15 added WeakReference class link to migration74 guide. 2021-04-23 02:14:21 +09:00
Yoshinari Takaoka
e294389da1 fixed "returnvalues" update in previous commit.
5fabd07880 (diff-190b056aa8511ed546365df4204a9d4ca946dac1d655933a07fb7029343f48fd)
2021-04-23 02:01:04 +09:00
Sergey Panteleev
5fabd07880
Removed Changelog entries for PHP 5, PHP 7.0 (#543) 2021-04-22 17:52:58 +03:00
Sebastian Hädrich
a4ee22721e
Wouldn't it be more readable if we had a list? (#542)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-04-22 16:11:14 +02:00
Nilgün Belma Bugüner
7a59549dbb
fixed a typo 2021-04-22 12:39:47 +03:00
Martin Samesch
23e26ac6f7
fix section order 2021-04-21 14:26:33 +02:00
Landrok
ab1ffcd235
Fix a typo (#541) 2021-04-20 22:50:15 +02:00
Kamil Tekiela
16a1bdfd1c
Remove double words (#540) 2021-04-20 12:54:54 +02:00
AllenJB
1fb0ef23d7
Fix #80942: Object iteration / Iterator: Replace duplicated examples with direct links
* Object iteration / Iterator: Replace duplicated examples with direct links to the appropriate sections and add cross-links.

Closes GH-517.
2021-04-20 11:28:39 +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
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
5a39a8f128 added WeakMap link to migration80. 2021-04-18 00:06:32 +09: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
Larry Garfield
bf28a4ce4f
Describe WeakMaps (#479)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-04-13 23:59:11 +02:00
Kim Hallberg
c07214dc9c
Fix attributes overview example emitting E_WARNING (#522)
Fix `targetDirectoryExists` method in example emits E_WARNING if `$targetDirectory` already exists.

Reference:
- https://www.php.net/manual/en/function.mkdir.php

Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
2021-04-13 18:57:58 +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
Guilliam Xavier
011596bcff
Fix/update operators.precedence (#509)
- explain why associativity is not applicable to unary operators
- distinguish between unary and binary `+`/`-`
- add some missing reference links
- update the precedence of string concatenation for PHP 8
- fix "(n/a)" ("not applicable") to "non-associative" for ternary

References:
- https://github.com/php/php-src/blob/master/Zend/zend_ast.c
  (search "Operator Precedence")
- https://github.com/php/php-src/blob/master/Zend/zend_language_parser.y
  (search "precedence")
  (NOTE: in opposite order)
2021-04-12 14:37:34 +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
codedokode
2f79a80776
Fix list of falsy values (#519)
There is no integer -0 (minus zero)
2021-04-12 13:55:35 +02:00
Rowan Tommins
fe18943c11
Fix half-deleted sentence about "new" and reference assignment (#520)
This had a stray ")", and was left with a misleading half-sentence
about "new" returning a reference, which it doesn't.
2021-04-12 13:28:11 +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
Tom Sullivan
165718f97f
Remove errant , (#516) 2021-04-08 11:55:42 +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
4a21d28c5b
Language Ref/Traits: fix incorrect information about abstract methods (#510)
As of PHP 8.0, `abstract private` methods are allowed in `trait`s. `abstract public` method were previously already supported.

Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
2021-04-05 18:43:19 +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
Yoshinari Takaoka
b694d83ae9 added Stringable version info. 2021-04-02 17:10:06 +09:00
Larry Garfield
069ce7647c
Document Stringable interface 2021-04-01 23:26:42 +02:00