Re: [PHP-DEV] [RFC] Property accessors

2021-05-07 Thread Mike Schinkel
> On May 4, 2021, at 6:33 AM, Nikita Popov wrote: > > Hi internals, > > I'd like to present an RFC for property accessors: > https://wiki.php.net/rfc/property_accessors > > Property accessors are like __get() and __set(), but for a single property. > They also support read-only properties and

Re: [PHP-DEV] [RFC] Property accessors

2021-05-07 Thread Hendra Gunawan
Hi internals, I am new here. Let me make a suggestion for this one of mostly asked feature: class MyOldOrdinaryObject { public string $prop1 { get use getProp1; set use setProp1; } public string $prop2 { get use prefixProp2; set use prop2Sufix; } // pre existing

Re: [PHP-DEV] PR for minor bugfix in compact()

2021-05-07 Thread David Gebler
Great, that's been updated, build in progress (relevant tests passing locally). I'd have preferred TypeError but appreciate there being a consistent convention to follow. These kind of small fixes are also about me becoming more familiar with typical conventions in the engine - some of this stuff

Re: [PHP-DEV] PR for minor bugfix in compact()

2021-05-07 Thread Ben Ramsey
Christian Schneider wrote on 5/7/21 02:06: > I agree with George that it should be an E_WARNING first and then changed to > a TypeError in PHP 9. > This should be the default process for reasons given in many other threads > about tightening type rules IMHO. > > So no, I'd prefer if this PR to

Re: [PHP-DEV] [RFC] Property accessors

2021-05-07 Thread Larry Garfield
On Tue, May 4, 2021, at 5:33 AM, Nikita Popov wrote: > Hi internals, > > I'd like to present an RFC for property accessors: > https://wiki.php.net/rfc/property_accessors > > Property accessors are like __get() and __set(), but for a single property. > They also support read-only properties and

[PHP-DEV] PHP 8.0.6 released

2021-05-07 Thread Sara Golemon
The PHP development team announces the immediate availability of PHP 8.0.6. This release reverts a bug related to PDO_pgsql that was introduced in PHP 8.0.5. PHP 8.0 users that use PDO_pgsql are encouraged to upgrade to this version For source downloads of PHP 8.0.6 please visit our downloads

Re: [PHP-DEV] PHP Language Specification

2021-05-07 Thread Rowan Tommins
On 07/05/2021 09:10, Nikita Popov wrote: If we want to include "writing documentation" as part of the change process, then it would be much more valuable to write documentation for php.net, which is used by hundreds of thousands of developers, rather than the language specification, which is

Re: [PHP-DEV] PHP Language Specification

2021-05-07 Thread Nikita Popov
On Thu, May 6, 2021 at 4:01 PM Christoph M. Becker wrote: > Hi all, > > I wonder what to do with the PHP Language Specification[1]. Apparently, > the repo is abandoned (last commit was more than a year ago, although > PHP 8 changed quite some stuff). If we don't have the bandwidth to >

Re: [PHP-DEV] PR for minor bugfix in compact()

2021-05-07 Thread Christian Schneider
Am 07.05.2021 um 03:44 schrieb Ben Ramsey : > On 4/28/21 06:17, G. P. B. wrote: >> On Wed, 28 Apr 2021 at 12:12, David Gebler wrote: >>> Hi internals, >>> I've opened a PR to cause compact() to throw a TypeError if its parameters >>> are not valid, which I consider to be a fix for what is