Commit graph

27564 commits

Author SHA1 Message Date
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
Christoph M. Becker
e8d10b3f15
Fix GH-1164: strftime is deprecated since PHP 8.1 2021-11-29 17:35:17 +01:00
Yoshinari Takaoka
75c0d66b7c
fixed cross reference related to CURL[String]File class. 2021-11-30 00:27:05 +09:00
Yoshinari Takaoka
f2b05d3988
CURLFile or CURLStringFile should be used to upload a file with CURLOPT_POSTFIELDS. 2021-11-29 23:46:09 +09:00
Yoshinari Takaoka
27fd6d7147
[PHP 8.1] Document CURLStringFile (#1154)
Reviewed by  Avatar Alexander Moskalev, CURLStringFile Author ( https://github.com/Irker )

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-11-29 23:27:25 +09:00
Benjamin Morel
06116ee1bf
Use lowercase null for consistency
Closes GH-1158.
2021-11-29 13:48:57 +01:00
Fabien Villepinte
537e1dfad9
Add missing final modifier
Closes GH-1152.
2021-11-29 13:47:04 +01:00
Christoph M. Becker
1c4b1d9f91
Fix GH-1157: Covarience/Contravarience with int/float doesn't work 2021-11-28 16:18:08 +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
iggyvolz
65782e9ec6
[PHP 8.1] Add note about implementing Serializable without __serialize (#1141)
* [PHP 8.1] Add note about implementing Serializable without __serialize

* fix

* Update serializable.xml

Co-authored-by: Sergey Panteleev <sergey@php.net>
2021-11-27 13:30:12 -06: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
Christoph M. Becker
7b6a20ed5d
Reflection(Property|Method)::setAccessible() no longer has effect
Cf. <https://wiki.php.net/rfc/make-reflection-setaccessible-no-op>.
2021-11-26 21:03:53 +01:00
Yoshinari Takaoka
c140370c35
Document autovivification from false deprecation. (#1126) 2021-11-27 01:38:00 +09:00
divinity76
669c19f74e
MBString overloading was removed in 8.0.0
Closes GH-1149.
2021-11-26 15:38:33 +01:00
Kamil Tekiela
14e5e29fd1
Remove typo whitespace 2021-11-25 21:26:37 +00:00
Fabien Villepinte
5f29513408
Generator is final
Closes GH-1145.
2021-11-25 17:28:03 +01:00
Christoph M. Becker
61a690b59c
Revert "Revert "Autoloaders receive the FQN as written, not lower-cased""
This reverts commit 1fd2694499.

Actually, all was good with the first commit.  The fact that the lower-
cased FQN is searched, is already conveyed in the description of the
`$file_extensions` parameter.
2021-11-25 15:34:39 +01:00
Christoph M. Becker
1fd2694499
Revert "Autoloaders receive the FQN as written, not lower-cased"
This reverts commit 046e85df78.

While "autoloaders receive the FQN as written" is true,
`spl_autoload()` actually lower-cases the FQN:
<https://github.com/php/php-src/blob/php-8.1.0/ext/spl/php_spl.c#L314>
2021-11-25 15:04:46 +01:00
Máté Kocsis
8208e01b8c
Add docs for ReflectionReference::__construct() (#1137) 2021-11-25 23:01:33 +09:00
Agustin Gomes
9dd74f527d
Correct note to state behavior is still possible
The behavior in the Example #7 Old way to make arguments nullable
is still possible in PHP today.

For reference, I thought initially this was a bug in the PHP Core,
and tried to add the respective test case in the PR:

https://github.com/php/php-src/pull/7627

Closes GH-1142.
2021-11-24 18:38:06 +01:00
Yoshinari Takaoka
d75781abc8
Document returning by reference from a void function deprecation. (#1127)
Document returning by reference from a void function deprecation.

Co-authored-by: George Peter Banyard <girgias@php.net>
2021-11-24 11:48:43 +00:00
Yoshinari Takaoka
61b163dbdf
BackedEnum is also an interface. (#1136)
closes #1135
https://github.com/php/doc-en/issues/1135#issuecomment-977262147
2021-11-24 17:59:09 +09:00
Christoph M. Becker
0445efae74
Fix GH-1135: UnitEnum is an interface 2021-11-23 19:15:08 +01:00
Dan
cf3707c0f4
Add stream_socket_client usage to stream_get_meta_data
This adds both examples and the missing optional key-value pair for the return array. Also switches to `var_dump` instead of `print_r`.

Co-authored-by: George Peter Banyard <girgias@php.net>

Closes GH-1124.
2021-11-23 15:20:40 +01:00
Yoshinari Takaoka
31979c1ec7
fixed XPointer evaluation failed warning.
This warning is emitted because RefrectionReference has no constructor page.

 XPointer evaluation failed: #xmlns(db=http://docbook.org/ns/docbook)
 xpointer(id('class.reflectionreference')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[not(@role='procedural')])
done.
2021-11-23 23:04:39 +09:00
Yoshinari Takaoka
f6e8402a6d
[skip-revcheck] fixed typo. 2021-11-23 22:51:23 +09:00
Máté Kocsis
8aec847009
Generate ext/reflection class synopses from stubs - part 2 (#1121) 2021-11-23 14:17:07 +01:00
Máté Kocsis
b0c0d6bcd9
Generate ext/reflection class synopses from stubs - part 1 (#1120) 2021-11-23 14:15:35 +01:00
Christoph M. Becker
470a17d5e8
Fix #39492: log_errors do not use error_append_string directive 2021-11-23 13:29:12 +01:00
Christoph M. Becker
3f1bb54ebf
Remove obsolete info about display_errors being bool once 2021-11-23 12:57:57 +01:00
Christoph M. Becker
046e85df78
Autoloaders receive the FQN as written, not lower-cased 2021-11-23 12:43:07 +01:00
vlakoff
76c26359d5
On page for key(), add link to array_key_first()
Closes GH-1129.
2021-11-23 00:32:07 +01:00
Christoph M. Becker
620dfaa244
imap_(un)delete expects sequences, not msgnos
Cf. <https://bugs.php.net/81649>.
2021-11-22 17:03:15 +01:00
Máté Kocsis
6740a14567
Generate ext/curl class synopses from stubs (#1112) 2021-11-19 10:57:06 +01:00
Christoph M. Becker
7a312f9c79
set_error_handler() no longer returns null on failure
As of PHP 8.0.0, it throws a TypeError; prior to that version, that was
undefined behavior (as documented for internal functions).
2021-11-18 15:23:04 +01:00
Christoph M. Becker
59244d9ae9
Fix #81635: No example of complex interpolation syntax with filenames 2021-11-18 15:18:17 +01:00
Máté Kocsis
83569ce5f5
Generate ext/json class synopses from stubs (#1104) 2021-11-18 11:23:48 +01:00
Sergey Panteleev
b7c12f23bd
Fix preg_match_all return values (#1122)
Closes #1102
2021-11-18 12:48:37 +03:00
Máté Kocsis
49c49b330e
[skip-revcheck] Generate ext/shmop class synopses from stubs (#1106) 2021-11-18 07:21:01 +01:00
Máté Kocsis
6384699ff8
[skip-revcheck] Generate ext/zlib class synopses from stubs (#1065) 2021-11-18 07:14:12 +01:00
Kamil Tekiela
5881f96d8b
Remove function name from return values of fetch_column
There are OOP and procedural variants, so specifying only the procedural
name can be confusing.
2021-11-17 18:35:47 +00:00
Kamil Tekiela
11731a4f73
Improve mysqli fetch_* descriptions 2021-11-17 18:33:05 +00:00
Christoph M. Becker
d74736d803
Fix #73857: Y2038 issue with getTimestamp and setTimestamp, with alternative 2021-11-17 15:47:43 +01:00
Christoph M. Becker
d332b5ae70
Uninitialized type properties are silently discarded on array cast
Cf. <https://bugs.php.net/81629>.
2021-11-17 15:15:09 +01:00
Máté Kocsis
a464e3bda1
Generate ext/fileinfo class synospes from stubs (#1115) 2021-11-17 12:45:24 +01:00
Máté Kocsis
7e711e8b79
[skip-revcheck] Generate ext/gd class synopses from stubs (#1117) 2021-11-17 12:10:03 +01:00
Máté Kocsis
cc9ca293a0
[skip-revcheck] Generate ext/imap class synopses from stubs (#1118) 2021-11-17 12:09:22 +01:00
Máté Kocsis
627e662b48
[skip-revcheck] Generate ext/ftp class synopses from stubs (#1114) 2021-11-17 11:56:21 +01:00