1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-23 23:32:18 +01:00

373 Commits

Author SHA1 Message Date
Máté Kocsis
0eb433f1de Add missing constant tag for $flags param of Attribute::__construct() 2026-03-08 21:16:05 +01:00
Máté Kocsis
462d2bcb3f Revert "Fix wrong xml:id on the fieldsynopsis element of Exception::$code"
This reverts commit 6a05d92a32.

The id is needed since 3c4752c0ae
2026-03-05 14:21:25 +01:00
Máté Kocsis
6a05d92a32 Fix wrong xml:id on the fieldsynopsis element of Exception::$code 2026-03-05 13:48:51 +01:00
Máté Kocsis
30bda33771 Fix missing attribute for NoDiscard 2026-03-05 13:46:32 +01:00
sasezaki
02bee41067 Add NoDiscard attribute (#5041)
Co-authored-by: Gina Peter Banyard <girgias@php.net>
2026-02-27 06:49:08 -08:00
Karoly Negyesi
31e56c25f9 add literal around getcurrent error 2026-02-06 17:33:25 +01:00
Máté Kocsis
5e36b489fc Add some missing properties and constants (intl/soap/attribute) (#5069) 2026-02-06 14:15:34 +00:00
Karoly Negyesi
f6406cdb5e add error message, use yoda style you should not 2026-02-05 12:30:30 +01:00
Karoly Negyesi
6fc2c24b6b no need for these see also 2026-02-02 17:24:34 +01:00
Karoly Negyesi
d74f3573b3 document getcurrent 2026-02-02 09:34:00 +01:00
Louis-Arnaud
7fbb16f538 Extend Iterator::rewind note to mention NoRewindIterator (#5110) 2026-01-30 10:33:05 +00:00
Louis-Arnaud
6b413423c7 Clarify REQUEST_TIME initialization timing (#5109) 2026-01-30 10:13:21 +00:00
Alexander Krause
5e6944e79f Fix Generator::rewind() docs to match actual behavior (#5031)
Clarify rewind() semantics to prevent misunderstandings about
generator-specific behavior.
2026-01-11 20:26:58 +00:00
Máté Kocsis
77325b622f Add missing attributes (#5067) 2026-01-02 14:37:19 +01:00
Gina Peter Banyard
fcf847c112 Mark $http_response_header as deprecated (#4977) 2025-11-05 21:36:51 +00:00
Gina Peter Banyard
2c62a67763 Minor markup-fixes to Override attribute page (#4920) 2025-10-12 17:49:15 +01:00
Jiří Pudil
9d31699614 Override: document usage with properties (PHP 8.5) (#4821) 2025-10-03 13:01:07 -05:00
Pere Orga
f56de7ebe7 Improve $_POST/$_GET definition (#4522)
* Improve $_POST/$_GET definition

* end example sentences with a dot

* $_GET: apply suggestions

* Do not use title case in refpurpose

* docs(post): reference php://input

* docs(php://input): provide example to read JSON data

* fix format in previous commits

* docs: apply suggestions

* docs: remove try/catch and improve variable names in example
2025-10-03 09:49:27 -05:00
DanielEScherzer
7c125c7d45 #[\Override]: document restriction on __construct() (#4738)
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
2025-06-22 11:18:06 -07:00
Juliette
a124543dd3 Fix links to magic constants page (#4668)
Not sure what happened here, but found quite a few incorrect links for the magic constants page.

Fixed now.
2025-05-15 21:59:00 -07:00
DanielEScherzer
dfb5ffae00 Document SensitiveParameterValue::getValue() 2025-05-07 08:28:33 -07:00
DanielEScherzer
660a03422a Document SensitiveParameterValue::__construct() 2025-05-07 08:28:09 -07:00
DanielEScherzer
4301234c0b $php_errormsg was removed in PHP 8.0 (#4650)
* $php_errormsg was removed in PHP 8.0

See php/php-src@920b4b249f
Use `&warn.deprecated.function-7-2-0.removed-8-0-0;` instead of
`&warn.deprecated.feature-7-2-0;`

* feature not function
2025-05-06 10:16:05 +02:00
Jakub Vrana
3c4752c0ae PDOException: Remove code from inherited properties (fix #2803) 2025-04-22 20:35:19 +02:00
Mikhail Alferov
873a99f094 Add link to yield keyword documentation (#4502) 2025-03-06 13:20:50 +00:00
philip
b905b4cded Improved the TypeError->ArgumentCountError 7.1.0 changelog entry.
This fixes https://github.com/php/doc-en/issues/4499
2025-02-28 11:04:58 -08:00
Mikhail Alferov
285d4ca580 rewind.xml Give more details about the generator's rewinding (#4497) 2025-02-26 14:54:54 -08:00
Markus Staab
63b4830921 More precise IteratorAggregate::getIterator() description (#4478)
* More precise IteratorAggregate::getIterator() description

* Update getiterator.xml
2025-02-21 19:18:31 +00:00
mowangjuanzi
f944fb771c Add requestparsebodyexception version (#4403) 2025-01-21 10:06:10 +08:00
Jim Winstead
74ba8fee29 Add warnings to use php_sapi_name() to test when running as CLI (#4337) 2024-12-30 15:12:28 -08:00
Mikhail Alferov
527e9b11ab count.xml Amend the code example and add return type (#4291)
Return type of Counter::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
2024-12-12 06:17:03 +00:00
Gina Peter Banyard
557acaf3c4 Fix typo in code 2024-12-10 18:54:27 +00:00
Gina Peter Banyard
267a3d4e60 Move Countable to predefined interfaces out from SPL (#1664)
It has been part of core since 7.2, so let's stop lying.
2024-12-10 18:04:18 +00:00
Alexandre Daubois
da5ebdf7e0 [PHP 8.4] Update Closure::__debugInfo() changelog (#4257) 2024-12-06 21:06:39 +00:00
Alexandre Daubois
7caf0c1376 [PHP 8.4] Update WeakReference::__debugInfo() changelog (#4256) 2024-12-06 21:05:58 +00:00
Máté Kocsis
c0e48705eb Synchronize manual with stubs for PHP 8.4 - part 3 (#4179)
* Synchronize manual with stubs for PHP 8.4 - part 3

* Remove duplicated description

* Fix property IDs
2024-12-01 12:18:57 +00:00
Gina Peter Banyard
4bf789e981 Create stub for request_parse_body() (#4108)
Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com>
2024-11-27 20:13:12 +01:00
Mikhail Alferov
68265e1135 Write introduction for #[\Override] attribute (#4075)
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
2024-11-17 02:52:42 +00:00
Gina Peter Banyard
3f1cd5121f PHP-8.4: Document http_(get|clear)_last_response_headers() functions (#4034) 2024-11-11 13:36:45 +00:00
Mikhail Alferov
cd391e65a6 Add more details about WeakReferences (#3976)
Possible follow-up is to describe weak references in more details elsewhere in the manual.

Co-authored-by: Jim Winstead <jimw@trainedmonkey.com>
Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-11-08 07:14:01 +00:00
Mikhail Alferov
d269b2528d exceptions.xml Add the missing dot character 2024-10-28 11:53:11 +00:00
Tim Düsterhus
e890e4a7f9 Document #[\Deprecated] attribute (#3894) 2024-10-22 15:12:44 +01:00
Tim Düsterhus
05b314c2ae Do not call attributes a “class” in the page title (#3891) 2024-10-22 14:05:54 +01:00
Kamil Tekiela
d6baeae3fa Refactor Language variables section variable scope (#3852) 2024-10-21 15:05:21 +01:00
Zebulan Stanphill
85050f5f88 Simplify example in Stringable docs. (#1816)
Integrates note 126627 by Gormack


Co-authored-by: Jim Winstead <jimw@trainedmonkey.com>
2024-10-21 15:00:12 +01:00
Mikhail Alferov
2f3c1237bc errorexception.xml: remove the extra dot cahr; combed the example code (#3539) 2024-10-08 10:46:11 +01:00
Mikhail Alferov
e50e797467 Remove extra space characters (GH-3737)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2024-09-12 23:37:42 +02:00
Yoshinari Takaoka
67b8da0d06 fixed __PHP_Incomplete_Class version info, PHP 4 >= 4.0.1 2024-08-31 20:49:28 +09:00
Mikhail Alferov
d58ee8eaaa Add a link to the explanation of the term 'symbol table' + slightly adjust the code of the examples (#3666)
* globals.xml: add a link to the explanation of the term "symbol table"

+ amend the code examples

* extract.xml: add a link to the explanation of the term "symbol table"

+ amend the code examples

* compact.xml: add a link to the explanation of the term "symbol table"

+ amend the code examples

* references.xml: add a link to the explanation of the term "symbol table"

+ amend the code examples

* Nits

---------

Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-08-25 23:22:41 +01:00
Yoshinari Takaoka
b3d172edcb Added __PHP_Incomplete_Class version info (#3626) 2024-08-25 22:14:07 +01:00