Pavel Djundik
464ffb2289
Document missing tokens
...
Closes GH-1510.
2022-04-11 12:16:20 +02:00
Michael Diodone
05a2d4c535
Fix >= on SplFileObject::seek migration notes
...
for PHP 8.0
Closes GH-1506.
2022-04-05 14:35:57 +02:00
Martin Samesch
87b5827062
Typos
2022-04-05 14:00:49 +02:00
George Peter Banyard
73fae4ee51
Fix syntax errors in examples ( #1504 )
2022-04-05 11:15:46 +01:00
David Grudl
14a60fad6e
Fixed info about @ operator ( #1196 )
...
- UPGRADING says that the error_reporting (ie. value returned by error_reporting() or ini_get('error_reporting ')) is changed, not the severity value passed to the handler.
- UPGRADING says that the error_reporting() == 0 should be replaced with !(error_reporting() & $err_no) in code, not the return with return false. So there is currenctly no way how to detect @ operator.
- "Prior to PHP 8.0.0, the value of the severity passed to the custom error handler was always 0" - no true
- "return false; // Silenced" - not true, if the function returns false then the normal error handler continues, so it is not "silenced".
(partially reverts "Cleanup and update docs related to @ operator" commit 12b1d4704ea448b55ec155619be1e50c0e67e9f9.)
Co-authored-by: George Peter Banyard <girgias@php.net>
Co-authored-by: Larry Garfield <larry@garfieldtech.com>
2022-04-04 20:28:18 +01:00
George Peter Banyard
ca1c139b22
Fix extension membership for igbinary extension
2022-04-04 18:34:26 +01:00
Laurent VOULLEMIER
64b3b8a362
Fix unpacking with string key example
...
The example seems not relevant since it already works and produces the same output in the previous PHP versions.
Closes GH-1501.
2022-04-04 12:29:44 +02:00
Michael Diodone
432e2731ee
Fix listing of unimplemented DOM methods
...
`DOMNamedNodeMap::removeNamedItem` is listed twice and I suspect the one after `DOMNamedNodeMap::setNamedItemNS` was meant to be `DOMNamedNodeMap::removeNamedItemNS` instead.
Closes GH-1491.
2022-03-31 16:07:03 +02:00
Bradley Taylor
883d2fe5cb
assert() no longer evaluates strings as of PHP 8.0.0
...
As per the PHP changelog, the functionality to use a string for `assert` has been removed in PHP 8.0: 69888c3ff1/UPGRADING (L350-L354)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-1471.
2022-03-20 11:59:40 +01:00
Juliette
553fabc18a
PHP 8.1 | MigrationGuide/New classes: add missing classes
...
> Added `CURLStringFile`, which can be used to post a file from a string rather than a file
Refs:
* f67986a921/UPGRADING (L231-L235)
* https://github.com/php/php-src/pull/6456
* e727919b97
As part of the Fibers RFC/PR, the Reflection extension also received a new class.
* https://wiki.php.net/rfc/fibers
* https://github.com/php/php-src/pull/6875
* c276c16b66
Note: I've not listed the `Fiber` and `FiberError` classes as those could be considered covered via the mention of Fibers on the "New Features" page, though happy to update the commit if so desired.
Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
Closes GH-1447.
2022-03-11 12:59:52 +01:00
Juliette
fa107f441b
PHP 8.1 | MigrationGuide/New functions: add missing functions
...
* PHP 8.1 | MigrationGuide/New functions: add missing functions [1]
(mentioned in new features, but not in the new functions list)
> GD:
> * Avif support is now available through the `imagecreatefromavif()` and
> `imageavif()` functions, if libgd has been built with avif support.
Refs:
* f67986a921/UPGRADING (L245-L247)
* https://github.com/php/php-src/pull/7026
* 81f6d36c90
* PHP 8.1 | MigrationGuide/New functions: add missing functions [2]
(mentioned in new features, but not in the new functions list)
> `mysqli_result::fetch_column()` has been added to allow fetching a single scalar value from the result set.
While only the method is mentioned in the RFC and the Migration guide, a procedural version of the same was also implemented.
Refs:
* https://www.php.net/manual/en/migration81.new-features.php#migration81.new-features.mysqli.mysqli_fetch_column
* https://wiki.php.net/rfc/mysqli_fetch_column
* https://github.com/php/php-src/pull/6798
* 54222a6fe4
Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
Closes GH-1448.
2022-03-11 10:59:10 +01:00
Juliette
5530a3afb4
PHP 8.1 | MigrationGuide/New constants: add missing constants
...
* PHP 8.1 | MigrationGuide/New constants: add missing constants [1]
> * Added CURLOPT_DOH_URL option
> * Added certificate blob options when for libcurl >= 7.71.0:
>
> CURLOPT_ISSUERCERT_BLOB
> CURLOPT_PROXY_ISSUERCERT
> CURLOPT_PROXY_ISSUERCERT_BLOB
> CURLOPT_PROXY_SSLCERT_BLOB
> CURLOPT_PROXY_SSLKEY_BLOB
> CURLOPT_SSLCERT_BLOB
> CURLOPT_SSLKEY_BLOB
Refs:
* f67986a921/UPGRADING (L220-L229)
* https://github.com/php/php-src/pull/6612
* 3dad63b5b2
* https://github.com/php/php-src/pull/7194
* b11785c5e4
* PHP 8.1 | MigrationGuide/New constants: add missing constants [2]
> GD:
> * Avif support is now available through the `imagecreatefromavif()` and
> `imageavif()` functions, if libgd has been built with avif support.
While not mentioned in the changelog entry, the commit to PHP does contain a new constant declaration...
Refs:
* f67986a921/UPGRADING (L245-L247)
* https://github.com/php/php-src/pull/7026
* 81f6d36c90 (diff-00d1efef2247b288c86a6c3bfefac111a4774fbc5453fdc02dcf36c4a23da283R373)
> GD:
> * `imagewebp()` can do lossless WebP encoding by passing `IMG_WEBP_LOSSLESS` as
> quality. This constant is only defined, if a libgd is used which supports
> lossless WebP encoding.
Refs:
* 3a71fcf5ca/UPGRADING (L568-L571)
* https://github.com/php/php-src/pull/7348
* eb6c9eb936
* PHP 8.1 | MigrationGuide/New constants: add missing constants [3]
> Added `POSIX_RLIMIT_KQUEUES` and `POSIX_RLIMIT_NPTS`. These rlimits are only available on FreeBSD.
Refs:
* https://www.php.net/manual/en/migration81.new-features.php#migration81.new-features.posix
* https://github.com/php/php-src/pull/6608
* ebca8deaaf
* PHP 8.1 | MigrationGuide/New constants: add missing constants [4]
Refs:
* https://wiki.php.net/rfc/readonly_properties_v2
* https://github.com/php/php-src/pull/7089
* 6780aaa532
* PHP 8.1 | MigrationGuide/New constants: add missing constants [5]
While not mentioned anywhere at all, the commit to PHP itself adding support for the Sodium xchacha* functions, does declare a couple of new constants as well...
Refs:
* https://github.com/php/php-src/pull/6868
* f7f1f7fce2 (diff-3fe4027560fd299248af1dc1efe04287cc2b6418e8f01755c05c9db64b668b1eR352-R357)
While not mentioned anywhere at all, the commit to PHP itself adding support for the Sodium ristretto255* functions, also declares a number of new constants as well...
Refs:
* https://github.com/php/php-src/pull/6922
* 9b794f8e5e (diff-3fe4027560fd299248af1dc1efe04287cc2b6418e8f01755c05c9db64b668b1eR368-R381)
Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
Closes GH-1449.
2022-03-11 10:57:07 +01:00
Juliette
7d6c8735cc
PHP 8.1 | MigrationGuide/Deprecated: add missing function
...
> GD:
> The `$num_points` parameter of `image(open|filled)polygon` has been deprecated.
Refs:
* f67986a921/UPGRADING (L397-L398)
* https://github.com/php/php-src/pull/6789
* e1285c4aa5
Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
Closes GH-1450.
2022-03-11 10:43:37 +01:00
Martin Samesch
e67f3f3092
typo/wording
2022-03-09 14:39:15 +01:00
Christoph M. Becker
4e19b91a19
Fix cols of reserved keywords table
...
The table of reserved keywords obviously has four columns, and this
should be reflected by the `col` attribute (although that is apparently
ignored by PhD for now). We also specify four columns for the table of
soft reserved words.
2022-03-01 10:46:26 +01:00
Juliette
a6a4d6ad6e
PHP 8.1 | Other reserved words: add never
...
Similar to PR 938 for the PHP 8.0 `mixed` reserved word, this commit adds the new reserved word `never` to the list of "Other reserved words" and adds a mention of this to the Backward Incompatible Changes page in the migration guide.
Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
Closes GH-1434.
2022-03-01 10:28:24 +01:00
Christoph M. Becker
91da56315c
Fix GH-1402: PHP 8.* ZTS wrong compilation flag for Linux
2022-02-28 14:34:15 +01:00
Christoph M. Becker
72f3125b6d
These config options are removed as of PHP 5.4.0
2022-02-28 13:29:43 +01:00
Yoshinari Takaoka
68b5e2c562
mixed is a reserved word (not keyword!) as of PHP 8.0.0. ( #938 )
2022-02-28 17:10:32 +09:00
Rowan Tommins
0bafd5454e
Optional parameter changes in 8.1, and description improvements
...
* Document change in behaviour of misplaced optional parameters in 8.1
(see https://github.com/php/php-src/commit/afc4d67c )
* Expand and update documentation of default/optional parameters
* Fix example labels to use correctly formatted entities
* Style improvements, and a couple of extra notes.
Closes GH-1191.
2022-02-18 13:24:09 +01:00
Christoph M. Becker
ec140c5b58
Fix GH-1410: ext/hash is no longer experimental
2022-02-15 09:53:41 +01:00
Martin Samesch
90242f8793
typo
2022-02-10 14:10:34 +01:00
Kamil Tekiela
9c21d93b4c
Changed mandatory to optional
2022-02-01 10:00:59 +00:00
Martin Samesch
2df577d9be
[skip-revcheck] typo/WS
2022-01-23 11:49:54 +01:00
Christoph M. Becker
032661ad05
Add internal_encoding, input_encoding and output_encoding to the INI list
2022-01-20 13:37:13 +01:00
Christoph M. Becker
fc7fe7faec
Don't use &url.php.bugs; to refer to the doc issue tracker
...
This doesn't work anymore since we've switched to using GH issues for
php-src bugs as well. Since there is only one occurrence left, and
that needs some rewording anyway, we hard code the URLs for now.
2022-01-14 23:34:43 +01:00
Máté Kocsis
b9e6268918
Rename OCI-Lob and OCI-Collection
...
Closes GH-1323.
2022-01-14 14:26:19 +01:00
George Peter Banyard
7d9aa6352e
Restructure type declaration page & document Intersection types ( #982 )
2022-01-06 12:36:43 +00:00
Martin Samesch
56fd9ea411
[skip-revcheck] Fix typo; WS
2021-12-30 13:48:11 +01:00
Christoph M. Becker
0e28c9d2fa
Fix GH-1277: Document zend.exception_string_param_max_len ini setting
2021-12-29 12:24:40 +01:00
Yoshinari Takaoka
0b005cfe4e
[PHP 8.1] Document the first class callable syntax. ( #1176 )
...
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
2021-12-28 15:51:30 +09:00
Kamil Tekiela
88890f831c
Fix loose type comparison table
...
Closes GH-1218.
2021-12-19 16:17:29 +01:00
Kamil Tekiela
457de0ada3
Use short array syntax for consistency
2021-12-18 21:38:00 +00:00
Christoph M. Becker
9b7ab9bc8e
Close GH-1216: strftime() is deprecated, yet advised to use here
...
We fix the wrong wording in the migration guide as well.
2021-12-18 14:25:25 +01:00
Christoph M. Becker
1a89eb1e2d
Close GH-1146: Loose comparison table incorrect for PHP 8
...
Cf. <https://3v4l.org/5tmej >.
2021-12-17 14:50:33 +01:00
Christoph M. Becker
afbe8ad5ba
Fix GH-1205: Multiple undocumented BC in DOM extension
2021-12-15 12:52:26 +01:00
Yoshinari Takaoka
39247cb926
[PHP 8.1] Document deprecated ctype non-string argument. ( #1179 )
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-12-08 20:18:41 +09:00
Yoshinari Takaoka
5e8652131e
added link for "final class constant" example.
...
This link will be also used from releases/8.1/en.php.
2021-12-05 22:47:41 +09:00
Yoshinari Takaoka
e0f02a3b23
Moved [overview|example] of Fibers to language/fibers.xml
...
Closes GH-1172.
2021-12-04 12:47:35 +01:00
Yoshinari Takaoka
2ff6e6bcad
[PHP 8.1] Document Array Unpacking with [int|string] Keys. ( #1171 )
...
Co-authored-by: George Peter Banyard <girgias@php.net>
2021-12-03 12:05:42 +00:00
Yoshinari Takaoka
cd6ad4d03c
added link for Fibers.
...
Should we move class.fibers page to language.fibers?
2021-12-03 17:53:18 +09:00
Christoph M. Becker
a049ea0cfb
Fix #81423 : UPGRADING doesn't mention that readonly becomes a reserved keyword
2021-12-02 17:16:56 +01:00
MorganAWS
33e1bb798e
Drop use of noise word "respectively" ( #1165 )
...
That's not what "respectively" means.
http://www.lexico.com/definition/respectively
"The PSpell functions now accept and return, respectively, PSpell\Config objects instead of pspell config resources."
means (a) there are precisely _two_ PSpell functions, where the first one (and you know which one that is) now accepts an object instead of a resource, and the second returns one.
2021-11-29 21:51:48 +00:00
Yoshinari Takaoka
5d1673b7a0
[PHP 8.1] Document final class constants. ( #1041 )
...
* Document final class constant.
* use singular form.
* Update language/oop5/constants.xml
Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com>
* Update language/oop5/constants.xml
Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com>
Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com>
2021-11-29 15:06:49 -06:00
Christoph M. Becker
4c79733cf7
Fix typo (Avix → Avif)
2021-11-29 19:01:02 +01:00
Christoph M. Becker
e8d10b3f15
Fix GH-1164: strftime is deprecated since PHP 8.1
2021-11-29 17:35:17 +01:00
Yoshinari Takaoka
51dd596655
fixed readonly modifier link.
...
`xref linkend` leads to force all locales (translators) to `ReadOnly Properties` title.
2021-11-28 09:55:07 +09:00
Yoshinari Takaoka
d73c3dcbd6
[PHP 8.1] Document readonly properties. ( #1047 )
...
* [PHP 8.1] Document readonly properties.
* added ReflectionProperty::isReadOnly method.
* Apply suggestions from code review
Co-authored-by: Sergey Panteleev <sergey@php.net>
* Update language/oop5/properties.xml
Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>
* Update language/oop5/properties.xml
Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>
* added link to readonly-properties docs.
Co-authored-by: Sergey Panteleev <sergey@php.net>
Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>
2021-11-27 13:00:13 -06:00
Yoshinari Takaoka
0bbcee7822
added link for Enumerations.
2021-10-29 22:41:33 +09:00
Marco Aurélio Deleu
eb81160ac9
[80772] Add PHP 8 tokens ( #475 )
...
Co-authored-by: Sergey Panteleev <sergey@php.net>
2021-10-28 11:39:54 +03:00