Dan
c36ce0b514
[8.0] Document remaining core changes
...
* document changes to `new` in php 8.0
* document php 8.0 changes for `instanceof`
* document php 8.0 change to `define`
Co-authored-by: Peter Cowburn <petercowburn@gmail.com>
Closes GH-1155.
2021-12-14 18:34:40 +01:00
Kamil Tekiela
5dfba3d91f
Add more implode examples
...
Closes GH-1195.
2021-12-13 14:07:29 +01:00
Tyson Andre
917c06eac8
Update runkit7 function documentation, names
...
Closes GH-1194.
2021-12-12 16:17:01 +01:00
Tyson Andre
8d226f128f
Link to spl_object_id from similar functions
...
Using an integer is faster and more memory-efficient than creating a 32-byte
string hash.
`runkit7_object_id` is one way to polyfill PHP 7.2+ `spl_object_id`
in older PHP 7 versions and continues to exist in the PECL.
Closes GH-1198.
2021-12-12 16:15:16 +01:00
Carlos C Soto
9d1833c496
Reword description on DOMDocument::domElement ( #973 )
...
* Reword documentElement clumsy description
* Reword "will return" to "evaluates to"
2021-12-11 19:14:58 -06:00
Christopher Jones
a48db6e7cd
Document new function oci_set_prefetch_lob()
2021-12-11 23:18:09 +11:00
Kamil Tekiela
d83aa96e67
PHP 8.1: FILTER_SANITIZE_STRING is deprecated ( #1193 )
2021-12-10 14:25:58 +00:00
Christoph M. Becker
32cd7f679d
FILTER_FLAG_(SCHEME|HOST)_REQUIRED are removed as of PHP 8.0.0
2021-12-10 14:47:50 +01:00
Christoph M. Becker
730cbb0a7a
Fix GH-1192: setcookie() description is not updated
...
The exact date in the past may not matter too much, so we are
unspecific here.
And no, you can't set `$value` to false, because the parameter expects
a string.
2021-12-10 10:59:35 +01:00
Sergey Panteleev
92673cc45a
[PHP 8.1] Documentation for full_path
entry of $_FILES
( #1130 )
...
Co-authored-by: Yoshinari Takaoka <mumumu@mumumu.org>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-12-10 10:16:31 +03:00
Christoph M. Becker
64a905b806
Delete luasandbox entity files
...
These are generated by ./configure, and are not supposed to be
committed to the repo.
2021-12-09 16:24:07 +01:00
Christoph M. Becker
c5c3a4153d
fopen() $mode is ignored for several php:// stream wrappers
...
Cf. <https://bugs.php.net/79905 >.
2021-12-09 16:21:49 +01:00
Christoph M. Becker
fbba47c54e
Remove obsolete info regarding php://stdin
2021-12-09 16:13:27 +01:00
Christoph M. Becker
0219f62dcd
*Declaring* mandatory after optional parameters is deprecated
...
It's not about *passing* of the arguments.
2021-12-09 13:53:23 +01:00
Christoph M. Becker
d6eb5fda8a
Fix GH-1188: APCu Installation page is outdated
2021-12-09 12:51:30 +01:00
魔王卷子
690c3ea7c7
[skip-revcheck] fixed typo ( #1187 )
2021-12-09 10:12:38 +03:00
Christoph M. Becker
761f713125
Fix GH-1182: constant() throws Error exception as of PHP 8.0.0
2021-12-08 13:53:42 +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
Christoph M. Becker
8a7836bf88
Fix GH-1178: array_flip allegedly can return null
2021-12-08 11:29:58 +01:00
Christoph M. Becker
2790c0fd69
Fix GH-1181: Incorrect example for IntlDateFormatter::setPattern()
...
In addition to fixing the format specifiers, we also echo line breaks,
so the output matches the example code.
2021-12-08 11:23:17 +01:00
Christoph M. Becker
d09a881a8e
Fix #79809 : imagecreatefromwebp() does not support animated WebP
2021-12-06 17:53:36 +01:00
Christoph M. Becker
213fbd9440
Remove obsolete info regarding libgd < 2.1.0
...
As of PHP 7.0.0, libgd ≥ 2.1.0 is required anyway.
2021-12-06 17:51:26 +01:00
Szopen Xiao
4c0783f336
fix FFI non-static method is written to static method
...
Closes GH-1174.
2021-12-06 11:56:51 +01:00
Christoph M. Becker
91a4618df8
imap_mail_move() does actually copy and delete
...
Cf. <https://github.com/php/php-src/issues/7719 >.
2021-12-05 23:13:48 +01:00
Christoph M. Becker
c470f264a0
Document MYSQLI_IS_MARIADB
...
Cf. <https://github.com/php/php-src/pull/7713 >.
2021-12-05 19:29:04 +01: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
ca12a0c524
added link language.fibers in seealso section.
2021-12-04 20:56:31 +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
Eric Stern
93cc19efef
Add list of attribute target constants
...
I think the constant names are self-explanatory enough to not require additional information
Closes GH-1168.
2021-12-02 23:01:16 +01:00
Christoph M. Becker
766f190db3
.Net framework 4.0 and later are supported as of PHP 8.0.0
2021-12-02 19:22:30 +01:00
Christoph M. Becker
6bc82c07c2
Fix #47569 : DOTNET cannot instantiate generic classes
2021-12-02 19:16:58 +01:00
Deleu
ff054fcb4e
Fix #79111 : is_numeric documentation utterly incomplete
...
We add information about leading and trailing whitespace.
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-870.
2021-12-02 18:56:20 +01:00
Christoph M. Becker
c1f8c2ea33
Fix #69290 : Invalid modes do not trigger errors
2021-12-02 18:06:55 +01:00
Christoph M. Becker
60c391265d
Document \ escaping of escapeshellarg on Windows
...
Cf. <https://bugs.php.net/69646 >.
2021-12-02 17:54:26 +01: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
Yoshinari Takaoka
49eff29e8e
replaced class
with method
.
...
Because these classes are NOT originally `final` class in PHP 8.0.
https://github.com/php/php-src/blob/PHP-8.0/ext/reflection/php_reflection.stub.php
2021-12-03 00:51:27 +09:00
Aaron Piotrowski
1f7a0e4af8
Fiber documentation
...
Co-authored-by: George Peter Banyard <girgias@php.net>
Co-authored-by: Sergey Panteleev <sergey@php.net>
Co-authored-by: Fabien Villepinte <fabien.villepinte@gmail.com>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-1096.
2021-12-02 16:11:55 +01:00
Sergey Panteleev
0a192fcd9c
[PHP 8.1] Changelog entry for standard functions ( #1123 )
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes #1034
2021-12-02 15:26:58 +03:00
Máté Kocsis
ae0b8c5502
Inherited constants were unintentionally removed from ReflectionEnumUnitCase class synopsis page
...
Closes GH-1170.
2021-12-02 13:26:25 +01:00
Sergey Panteleev
83b6431800
[PHP 8.1] Remove final modifier from __clone()
( #1131 )
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-12-02 15:16:08 +03:00
Máté Kocsis
00b3ebfa68
Generate ext/reflection class synopses from stubs - part 3
...
Closes GH-1138.
2021-12-02 13:07:26 +01:00
therealgaxbo
f8718da894
Document PDO::PGSQL_ATTR_DISABLE_PREPARES attribute
...
Closes GH-1167.
2021-12-01 19:36:44 +01:00
Alexander M. Turek
a324fcef80
Add ReflectionIntersectionType
...
… to the list of ReflectionType subtypes
Closes GH-1166.
2021-12-01 15:26:16 +01:00
ignace nyamagana butera
3561c702e7
Document stream_bucket_make_writable()
...
Closes GH-1156.
2021-11-29 23:00:21 +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
Yoshinari Takaoka
a7f535a32b
[PHP 8.1] Document restriction of $GLOBALS usage. ( #1147 )
...
* [PHP 8.1] Document restriction of $GLOBALS usage.
* clarify the meaning of "read-only copy of the global symbol table".
* added sample of how to restore the previous behavior.
2021-11-29 14:56:48 -06:00
Christoph M. Becker
4c79733cf7
Fix typo (Avix → Avif)
2021-11-29 19:01:02 +01:00