nielsdos

nielsdos

Contributor Directory

RFCs

Language and policy proposals from this contributor
RFCs are part of the process by which decisions are made about PHP. For more information about the RFC process as well as viewing a full list of RFCs please visit the RFC section.

Deprecations for PHP 8.4

Author
The RFC proposes to deprecate the listed functionality in PHP 8.4 and remove it in PHP 9 (except where otherwise noted).

Formally deprecate and remove the aforementioned DOMDocument and DOMEntity properties?

Yes
No
Yes
36 Votes (100%)
No
0 Votes (0%)

Remove DOMImplementation::getFeature($feature, $version)

Yes
No
Yes
38 Votes (100%)
No
0 Votes (0%)

Deprecate DOM_PHP_ERR constant?

Yes
No
Yes
37 Votes (100%)
No
0 Votes (0%)

Deprecate unserialize()’s ‘S’ tag?

Yes
No
Yes
36 Votes (100%)
No
0 Votes (0%)

Deprecate the INI settings ‘session.sid_length’ and ‘session.sid_bits_per_character’?

Yes
No
Yes
35 Votes (100%)
No
0 Votes (0%)

Deprecate SplFixedArray::__wakeup()?

Yes
No
Yes
36 Votes (100%)
No
0 Votes (0%)

Deprecate xml_set_object() and xml_set_*_handler() with string method names

Yes
No
Yes
33 Votes (100%)
No
0 Votes (0%)

Deprecate passing null and false to dba_key_split()

Yes
No
Yes
33 Votes (100%)
No
0 Votes (0%)

Deprecate passing incorrect data types for options to ext/hash functions

Yes
No
Yes
33 Votes (100%)
No
0 Votes (0%)

Deprecate constants SUNFUNCS_RET_STRING, SUNFUNCS_RET_DOUBLE, and SUNFUNCS_RET_TIMESTAMP?

Yes
No
Yes
32 Votes (100%)
No
0 Votes (0%)

Deprecate passing a non-empty string to the $escape parameter

Yes
No
Yes
26 Votes (93%)
No
2 Votes (7%)

Remove the E_STRICT Error Level and Deprecate the E_STRICT constant?

Yes
No
Yes
29 Votes (85%)
No
5 Votes (15%)

Deprecate strtok()?

Yes
No
Yes
6 Votes (18%)
No
27 Votes (82%)

Deprecate returning non-string values from a user output buffer handler?

Yes
No
Yes
23 Votes (85%)
No
4 Votes (15%)

Deprecate producing output in a user output handler?

Yes
No
Yes
25 Votes (93%)
No
2 Votes (7%)

Deprecate using an array as the $data argument for file_put_contents()

Yes
No
Yes
20 Votes (57%)
No
15 Votes (43%)

Deprecate mysqli_ping() and mysqli::ping()?

Yes
No
Yes
27 Votes (100%)
No
0 Votes (0%)

Deprecate mysqli_refresh(), mysqli::refresh() and related constants?

Yes
No
Yes
27 Votes (96%)
No
1 Votes (4%)

Deprecate mysqli_kill() and mysqli::kill()?

Yes
No
Yes
27 Votes (96%)
No
1 Votes (4%)

Deprecate the second parameter to mysqli_store_result()?

Yes
No
Yes
31 Votes (100%)
No
0 Votes (0%)

Deprecate lcg_value()?

Yes
No
Yes
29 Votes (94%)
No
2 Votes (6%)

Deprecate uniqid()?

Yes
No
Yes
14 Votes (38%)
No
23 Votes (62%)

Deprecate md5(), sha1(), md5_file(), and sha1_file()?

Yes
No
Yes
18 Votes (46%)
No
21 Votes (54%)

Deprecate passing E_USER_ERROR to trigger_error()

Yes
No
Yes
27 Votes (93%)
No
2 Votes (7%)

Deprecate using a single underscore as a class name?

Yes
No
Yes
28 Votes (80%)
No
7 Votes (20%)

Deprecate SOAP_FUNCTIONS_ALL constant and passing it to SoapServer::addFunction()?

Yes
No
Yes
28 Votes (97%)
No
1 Votes (3%)

array_first() and array_last()

Author
Target
8.5
In PHP 7.3, we got array_key_first() and array_key_last() to get the first and last keys from an array. What we don't have yet is a way to get the first and las...

Add array_first() and array_last()?

Yes
No
Yes
35 Votes (100%)
No
0 Votes (0%)

DOM HTML5 parsing and serialization

Author
Target
8.4
Important: parts of this RFC were further enhanced by https://wiki.php.net/rfc/opt_in_dom_spec_compliance

Introduce the proposed DOM classes and namespace aliases

Yes
No
Yes
16 Votes (100%)
No
0 Votes (0%)

DOM\HTMLDocument::fromFile should respect the resolver set by libxml_set_external_entity_loader

Yes
No
Yes
1 Votes (9%)
No
10 Votes (91%)

XML_OPTION_PARSE_HUGE

Author
Target
8.4
ext/xml allows the user to parse XML in an event-driven way (SAX). The user can register callbacks to be called when certain nodes are encountered while parsing...

Add XML_OPTION_PARSE_HUGE parsing option

Yes
No
Yes
11 Votes (100%)
No
0 Votes (0%)

Improve callbacks in ext/dom and ext/xsl

Author
Target
8.4
The DOMXPath class allows developers to run XPath expression queries on HTML/XML documents. The XSLTProcessor class allows developers to perform XSL transformat...

Accept the proposed changes to registerPhpFunctions in ext/dom and ext/xsl?

Yes
No
Yes
15 Votes (100%)
No
0 Votes (0%)

Add registerPhpFunctionNS to ext/dom and ext/xsl?

Yes
No
Yes
13 Votes (100%)
No
0 Votes (0%)

Opt-in DOM spec-compliance

Author
Target
8.4
The DOM extension in PHP is used to parse, query, and manipulate XML/HTML documents. The DOM extension is supposed to follow the DOM specification. Originally t...

Accept Opt-in DOM spec-compliance RFC?

Yes
No
Yes
14 Votes (100%)
No
0 Votes (0%)

Add stream open functions to XML{Reader,Writer}

Author
Target
8.4
The XMLReader and XMLWriter classes deal with XML in a stream-oriented manner. The former implements an XML pull parser. This means that instead of keeping the ...

Accept adding the methods from the Main Proposal section?

Yes
No
Yes
12 Votes (100%)
No
0 Votes (0%)

Accept adding the methods from the Consistency section?

Yes
No
Yes
13 Votes (100%)
No
0 Votes (0%)

New ext-dom features in PHP 8.4

Author
Target
8.4
The PHP 8.4 development cycle has seen two major improvements to the ext-dom extension already: HTML 5 support, and opt-in spec compliance. This RFC is (probabl...

Accept PHP 8.4 DOM additions RFC?

Yes
No
Yes
25 Votes (100%)
No
0 Votes (0%)