Commit graph

26818 commits

Author SHA1 Message Date
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
Larry Garfield
3ddc88b836
Note changes in how private methods inherit. (#481) 2021-04-01 23:21:32 +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
Deleu
34f9918535
Update documentation related to PHP Tokens
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-474.

Signed-off-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-03-30 13:01:29 +02: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
rochdiNassah
c630570335 Fix Typo
Closes GH-503.
2021-03-25 18:30:31 +01:00
Martin Samesch
312f9d4e18 fix parameter 2021-03-23 15:25:10 +01:00
George Peter Banyard
b8e1b1357d Some cleanup in FAQ section
Closes GH-327.
2021-03-23 14:19:44 +01:00
Mike Lehan
175b731219 Clarify that Exception::getPrevious may return a Throwable
Spotted this when using PhpStorm's documentation which incorrectly typehints an Exception - use of this as Exception could cause a TypeError if a non-Exception Throwable is returned.

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-463.
2021-03-23 14:07:21 +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
Cees-Jan Kiewiet
5f6b54fb57 Add FPM access.format placeholders
Closes GH-115.
2021-03-23 13:01:52 +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
Gabriel Millian
4bf7d10a44 Fix errors in the comments of example number 6
Closes GH-500.
2021-03-22 16:44:17 +01:00
Dharman
fa95dcaee8 Shorten comments to fit in 1 line 2021-03-20 13:44:18 +00:00
Christoph M. Becker
c4de1a0604 Revert "Show info about PHP error reporting"
This reverts commit f3e5da139a, because
it was accidentally committed.

Cf. <https://github.com/php/doc-en/pull/465>.
2021-03-19 01:54:04 +01:00
Christoph M. Becker
dde64312eb PHP 7.0 was silent about pseudo-numeric string juggling 2021-03-19 01:28:04 +01:00
kestutisv
f3e5da139a Show info about PHP error reporting
Reader needs to be informed about PHP errors.
2021-03-19 01:09:29 +01: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
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
Eric Stern
661e99fa9d Correct Closure::bindTo failure return value
Closes GH-492.
2021-03-18 21:51:46 +01:00
Sara Golemon
6a89105fdc
Annotate return types for Throwable/Exception/Error as possibly returning null 2021-03-18 14:42:35 +00:00
Christoph M. Becker
2b6afe9652 Clarify that encoding conversion may be done by the driver 2021-03-18 14:30:28 +01:00
George Peter Banyard
2f00a6fcf4
Actually document bool return for imageinterlace() 2021-03-17 16:33:47 +00:00
Christoph M. Becker
34316e9ecf Fix signatures of some GD functions wrt. PHP 8.0
Regarding the return type of `imageinterlace()`, see
<c17434429d>.
2021-03-17 15:56:11 +01:00
Sara Golemon
c352a8f0a7
Clarify types and meaning of interlact param to imageinterlace() 2021-03-17 13:24:40 +00:00
Christoph M. Becker
7962c3e6a2 Fix #80652: Leading whitespace in a regex is ignored 2021-03-16 17:37:54 +01:00
Calvin Buckley
52c463b1d9 Fix #77477: Document hard_timeout
I've encountered issues relating to the hard timeout, so having
this explained for myself in a few months time and others will be
handy.

ML post where hard_timeout was established (not linked in docs, but
may be useful):

http://php-news.ctrl-f5.net/message/php.internals/92559

Closes GH-491.
2021-03-16 17:31:45 +01:00
Calvin Buckley
530ceda342 Document ssh2_send_eof
Closes GH-490.
2021-03-16 17:27:15 +01:00
Christoph M. Becker
161f444538 Fix #76203: roundCorners method no longer exists 2021-03-16 14:33:38 +01:00
Christoph M. Becker
3b792d800d Fix #72189: Missing CURL_VERSION_HTTP2 from constants list 2021-03-15 19:13:06 +01:00
sy-records
f2da597f73 Update Swoole ini
Closes GH-486.
2021-03-15 12:13:48 +01:00
George Peter Banyard
fc26164b4b
Hot fix for comment of last line 2021-03-11 13:51:06 +00:00
George Peter Banyard
68c0fcdb9e
Add example of a float string as an array key
The behaviour is different from a float key

Also reorder to put this example closer to the numeric keys
Use single quotes consistently

Closes GH-487
2021-03-11 13:49:51 +00:00