Michelle Paradis
1352dd77d7
[skip-revcheck] Removing extra 'the' ( #1602 )
2022-05-28 00:37:41 +03:00
Pierrick Charron
08e0e7dd68
Replace each() with foreach in usort and simplexmlelement/xpath
2022-05-26 13:16:41 -04:00
Michal Špaček
6be77ad626
Argon2's memory_cost is in kilobytes, not bytes
...
https://www.php.net/password-hash says "kibibytes", spec https://www.password-hashing.net/argon2-specs.pdf says "kilobytes", went with "kibibytes" to match the other docs page.
Closes GH-1596.
2022-05-25 19:39:34 +02:00
Christoph M. Becker
0780c13160
Fix GH-1453: missing enum keyword
2022-05-23 16:36:27 +02:00
Christoph M. Becker
36a894a627
Fix #1566 : crypt(): --with-external-libcrypt undocumented
2022-05-23 16:09:37 +02:00
Christoph M. Becker
3d9dad29c7
Fix bug #67034 : Unable to compare DateInterval instances with == operator
...
Closes GH-1590.
2022-05-23 11:31:55 +02:00
Rochdi Nassah
9ed2d17d58
Typo ( #1593 )
2022-05-22 19:31:50 +01:00
Zebulan Stanphill
12ce6e72ca
Fix: Ds\Collection
extends IteratorAggregate
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-1587.
2022-05-20 17:57:46 +02:00
Derick Rethans
9ff98b3827
Fixed bug #76378 : strftime format "%p" is not always uppercase "AM/PM"
2022-05-20 15:45:29 +01:00
Kamil Tekiela
09f4a3f040
Reword parameter description of set_exception_handler ( #1004 )
2022-05-18 17:56:55 +01:00
Christoph M. Becker
214519fdbd
Fix GH-1586: Changed error behavior in array_chunk in php 8
2022-05-18 14:55:27 +02:00
Marko Kaznovac
4a26c016c3
Fix memcached.get $$flags
( #1585 )
2022-05-17 16:01:56 +03:00
Christoph M. Becker
214335df7e
Fix Iterator example for PHP 8.1+
...
The newly introduced tentative return types require us to specify
return types for the method implementation. Since `mixed` is only
available as of PHP 8.0.0, we use the `ReturnTypeWillChange` attribute
to suppress the deprecation for now.
This includes user note 127109 (well, at least the actionable part of
it).
2022-05-17 13:57:38 +02:00
Christoph M. Becker
cfaa7659da
Fix ArrayAccess::offsetExists() example for PHP 8.1+
...
The newly introduced tentative return types require us to specify
return types for the method implementation. Since `mixed` is only
available as of PHP 8.0.0, we use the `ReturnTypeWillChange` attribute
to suppress the deprecation for now.
This includes user note 127108 (well, at least the relevant parts of
it).
2022-05-17 13:46:08 +02:00
Yoshinari Takaoka
8d18153861
fixed nullsafe operator link.
2022-05-16 23:26:58 +09:00
Kamil Tekiela
77887dc8e5
Improve resource functions examples ( #1435 )
2022-05-16 15:20:33 +01:00
Dennis Birkholz
498bb30063
Mention nullsafe object operator in OOP changelog
...
Closes GH-1584.
2022-05-16 15:00:28 +02:00
Christoph M. Becker
4b3eb0a80c
Drop half-finished clause
...
Cf. <fd8fcbcd6f (r73701907)
>.
2022-05-16 10:24:34 +02:00
Derick Rethans
d836dea93e
Fixed #69176 : strtotime: support "first/last of" with weeks
2022-05-13 15:47:06 +01:00
Derick Rethans
5267e13731
Fixed bug #67921 : createFromFormat allows overflow for 'H' and 'G' so 25-99 rolls to next day
2022-05-13 15:27:53 +01:00
Derick Rethans
43709b0d94
Merge branch 'master' of https://github.com/php/doc-en
2022-05-13 15:15:57 +01:00
Derick Rethans
fd8fcbcd6f
Fixed bug #66510 : Clarify the return values of DateTimeZone::listAbbreviations
2022-05-13 15:15:43 +01:00
Sergey Panteleev
4a41b3c620
Fix the build
2022-05-13 14:08:44 +03:00
Derick Rethans
8cc12de858
Fixed bug #45509 : Clarify ocumentation for DateTime::format and DateTime::createFromFormat's 'Y' character
2022-05-13 11:24:02 +01:00
Derick Rethans
5e865c822b
Document new 'N' and 'o' letters (ISO-8601 day-of-the-week, and ISO-8601 year)
2022-05-13 10:05:31 +01:00
Christoph M. Becker
aa471e2d84
filter.default is deprecated as of PHP 8.1.0
2022-05-12 13:46:53 +02:00
Christoph M. Becker
a3eab3abd6
ZipArchive::getExternalAttributesIndex(): use canonical capitalization
2022-05-10 20:14:06 +02:00
Sergey Panteleev
081cf71ecb
[PHP 8.1] Return Type Compatibility with Internal Classes ( #1560 )
...
Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com>
Co-authored-by: Larry Garfield <larry@garfieldtech.com>
2022-05-10 20:19:06 +03:00
Christoph M. Becker
85b2c17bff
Fix GH-1572: Not specifying the pgsql connection parameter is deprecated
2022-05-09 16:12:16 +02:00
Christoph M. Becker
ad618eea48
Remove grossly outdated info about PHP 4.0.3 requirement
2022-05-09 16:02:38 +02:00
Christoph M. Becker
4225e50bc3
Fix GH-1571: f/sscanf() do not mention assignment suppression feature
2022-05-09 14:49:30 +02:00
Christoph M. Becker
46048f1cb2
Fix GH-1576: New opcache.record_warnings setting is undocumented
2022-05-09 10:49:39 +02:00
Christoph M. Becker
f004f576e7
Fix GH-1575: get_parent_class may return false
2022-05-07 13:20:49 +02:00
Christoph M. Becker
1af58f6311
Fix GH-1568: No info on return value of ctype_alnum() in case of empty string
...
We explicitly add the info to every ctype's function return value
section.
We also overhaul the ctype introduction section by removing obsolete
information, adding a warning about the deprecation of int parameters,
and removing personalization.
2022-05-06 17:53:06 +02:00
Christoph M. Becker
7fc84e37b7
Fix GH-1569: gzdecode raises Warning on invalid data
...
We keep that unspecific, at least for now.
2022-05-06 17:18:41 +02:00
Christoph M. Becker
8bf7045ecc
Fix GH-1574: Keyword documentation contradicts itself
2022-05-06 17:13:39 +02:00
Christoph M. Becker
ce9a6b3a30
Clarify where Windows users can get the SNMP mib files
...
Judging from the user notes, there is apparently some confusion, so we
add a link.
While we're at it, we also fix the grammar and mark-up.
2022-05-06 13:56:22 +02:00
Ollie Read
8d2b545eef
Add missing documentation for the ReflectionClass::getAttributes method
...
Closes GH-1539.
2022-05-03 13:08:20 +02:00
Christoph M. Becker
6105486171
Fix enable_dl description
...
`enable_dl` is certainly not useful for the Apache module version of
PHP, since `dl()` is removed from that SAPI as of PHP 5.3.0.
I'm not sure about the `&removed.php.future;` in the summary table. Is
`enable_dl` indeed deprecated and will certainly be removed in the
future, or is that out-dated info which referred to certain SAPIs?
2022-05-02 18:13:25 +02:00
Christoph M. Becker
6c7300690f
Update Enchant installation instructions
...
As of PHP 8.0.0, Windows uses Enchant-2 by default, and that looks for
the providers in a different folder (what is no longer changeable via
the Registry).
We also remove the outdated PHP 5 related information.
2022-05-02 18:05:14 +02:00
Christoph M. Becker
7639cf8773
ZTS support doesn't forbid/disable dl()
...
The apparently erroneous note might stem from the respective error
message[1].
[1] <https://github.com/php/php-src/blob/PHP-5.3/ext/standard/dl.c#L76-L86 >
2022-05-02 17:46:01 +02:00
Martin Rehberger
c1da6cc7c2
Fix type for index in ZipArchive::replaceFile()
...
Closes GH-1563.
2022-05-02 14:31:28 +02:00
Christoph M. Becker
34a35a3681
Fix GH-1561: SplPriorityQueue & friends don't have a constructor
2022-04-29 14:32:03 +02:00
Calvin Buckley
ae6a2efed7
Link to the drivers, since it's not obvious what it's meant
...
Closes GH-1552.
2022-04-28 15:03:54 +02:00
Sergey Panteleev
754641d8dd
[PHP 8.1] Document incompatible float to int implicit conversions ( #1528 )
...
Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com>
Co-authored-by: George Peter Banyard <girgias@php.net>
2022-04-28 11:57:41 +01:00
Sergey Panteleev
3e087a5c61
[PHP 8.1] Passing null to non-nullable parameters of built-in functions ( #1555 )
...
Closes #1554
Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2022-04-28 12:22:42 +03:00
Sergey Panteleev
ed8eead5c4
[PHP 8.1] Add ReflectionFunctionAbstract::getClosureUsedVariables ( #1032 )
...
Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com>
2022-04-28 09:58:00 +03:00
Sergey Panteleev
61cfd00858
[PHP 8.1] Usage of static Variables in Inherited Methods ( #1549 )
2022-04-27 15:49:21 +03:00
Christoph M. Becker
da9e1ca208
Collator::create() does not accept null
...
Cf. <https://github.com/php/doc-en/pull/1551#issuecomment-1110886470 >.
2022-04-27 13:43:07 +02:00
Christoph M. Becker
69e0955f7b
Fix GH-1550: Collator::__construct() does not accept null
2022-04-27 12:24:11 +02:00