BCMath has bcdiv() and bcmod(), and the operation must be performed twice to obtain both the quotient and remainder. This is also true for the BcMath\Number cla...
While finalizing the implementation of the property hooks RFC patch, we have found a small area for improvement. This is nominally changes from the behavior de...
Transparent lazy-initialization of objects is an important part of many PHP applications. However, achieving this kind of laziness in userland is complex, limit...
PHP has long had the ability to control the visibility of object properties -- public, private, or protected. However, that control is always the same for both...
The exit language construct (and its alias die) can be used on its own without parentheses
1)
to terminate a PHP script with status code 0, or it can be used l...
Accept Transform exit() from a language construct into a standard function RFC?
PHPs internal functions and (class-)constants can be marked as deprecated, making this information available to Reflection and emitting deprecation errors (E_DE...
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?
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...
The PDO extension contains a SQL parser, whose main purpose is to recognise parameter placeholders inside queries (i.e. ? and :paramName), so that it knows how ...
This RFC proposes the addition of new array functions: array_find, array_find_key, array_any and array_all, which are helper functions for common patterns of ch...
BCMath currently only supports procedural functionality and does not support object types. Object-based programming is mainstream these days, so it's a bit outd...
I noticed PHP does not have a grapheme cluster based str_split function. So I think need str_split for grapheme cluster, grapheme_str_split function using ICU. ...
Add grapheme cluster for str_split function: grapheme_str_split
PHP supports two ways to propagate session token ID: via cookies and through GET or POST parameters. Cookies are the default preferred method that has become th...
When using user filters for stream processing, one of the fundamental concepts is stream buckets. A stream bucket is effectively a chunk of stream which can be ...
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...
The $http_response_header
variable is magically created in the local scope whenever an HTTP request is performed through PHP's stream layer,
i.e. when using the...
Accept Add http_(get|clear)_last_response_headers() function RFC?
The class member access on instantiation feature
was introduced in PHP 5.4.0.
Since then constants, properties and methods can be accessed on a newly created in...
Allow to omit parentheses around the new expression as described?
PHP supports nullable type declarations as of PHP 7.1 with the ?T syntax,
and with the T|null syntax as of PHP 8.0 when generalized support for union types was ...
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?
PHP does not have a multibyte equivalent of the trim function. It is possible to get close enough behavior using preg_replace(/^\s+|\s+$/u, '', $string), howeve...
Multibyte for trim function mb_trim, mb_ltrim and mb_rtrim
As you know, BCMath is an arbitrary precision mathematical function that supports exact calculations. As of the writing of this RFC, nine calculation functions ...
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...
Developers often use methods to wrap and guard access to object properties. There are several highly common patterns for such logic, which in practice may be ve...
PDO is a generic database class. Some of the databases it supports have functionality that is specific to that database. For example, when connected to an SQLit...