[PHP-DEV] [RFC] Invoke __callStatic when non-static public methods are called statically

2024-03-28 Thread 하늘아부지
Hello. I created a wiki for __callStatic related issues. Please see: https://wiki.php.net/rfc/complete_callstatc_magic I look forward to your interest and advice. Best Regards. Daddyofsky

Re: [PHP-DEV][RFC] grapheme cluster for str_split, grapheme_str_split function

2024-03-28 Thread Casper Langemeijer
> So... if you want to help make people more aware of the grapheme_* > functions, one place to start would be editing the documentation for the > various string, mbstring, and grapheme functions to use consistent > terminology, and sign-post each other more clearly. >

[PHP-DEV] PHP 8.3.5RC1 Ready for testing

2024-03-28 Thread ericmann
PHP 8.3.5RC1 has just been released and can be downloaded from: https://downloads.php.net/~eric/ or https://qa.php.net/ or use the git tag: php-8.3.5RC1 Windows binaries are available at: https://windows.php.net/qa/#php-8.3 Please test it carefully, and report any bugs to

Re: [PHP-DEV] Allow properties to be defined on interface

2024-03-28 Thread Saki Takamachi
Hi Claude, > For information, the question of properties on interfaces is covered by the > currently discussed RFC “Property hooks”: > https://wiki.php.net/rfc/property-hooks I only half-understand that RFC. Thanks for pointing me out. Regards. Saki

[PHP-DEV] Allow properties to be defined on interface

2024-03-28 Thread Saki Takamachi
Hi Larry, > This functionality is included in the Property Hooks RFC, which will be going > to a vote just as soon as Ilija finishes polishing up the test suite for it. > (I think he wants to get it into a "commit as soon as the vote passes" state > before we call the vote, even though

Re: [PHP-DEV] Allow properties to be defined on interface

2024-03-28 Thread Saki Takamachi
Hi Larry, > This functionality is included in the Property Hooks RFC, which will be going > to a vote just as soon as Ilija finishes polishing up the test suite for it. > (I think he wants to get it into a "commit as soon as the vote passes" state > before we call the vote, even though that's

Re: [PHP-DEV] Allow properties to be defined on interface

2024-03-28 Thread Claude Pache
> Le 28 mars 2024 à 16:03, Saki Takamachi a écrit : > > Therefore, I propose to allow public properties to be defined on the > interface (It does not matter whether it is read-only or not). > Hi, For information, the question of properties on interfaces is covered by the currently

Re: [PHP-DEV] Allow properties to be defined on interface

2024-03-28 Thread Larry Garfield
On Thu, Mar 28, 2024, at 3:03 PM, Saki Takamachi wrote: > Hi internals, > > With read-only properties, we no longer need to define getter methods > when we can take advantage of them. > > However, there is still one problem here from a convenience standpoint. > That is if we use an interface, we

[PHP-DEV] Allow properties to be defined on interface

2024-03-28 Thread Saki Takamachi
Hi internals, With read-only properties, we no longer need to define getter methods when we can take advantage of them. However, there is still one problem here from a convenience standpoint. That is if we use an interface, we still need to define a getter method. This was mentioned by

Re: [PHP-DEV] [RFC] [Discussion] Support object type in BCMath

2024-03-28 Thread Saki Takamachi
Hi Aleksander, > Enums have 'value' and 'name' properties. Although they are kinda special. I overlooked a few things. https://www.php.net/manual/en/class.transliterator.php https://www.php.net/manual/en/class.random-randomizer.php https://www.php.net/manual/en/class.directory.php

Re: [PHP-DEV] [RFC] [Discussion] Support object type in BCMath

2024-03-28 Thread Aleksander Machniak
On 28.03.2024 14:30, Saki Takamachi wrote: The Readonly property was implemented since PHP 8.1, so inner classes implemented before then did not have the option of using the readonly property. As far as I know, no new inner classes with readonly properties or simple getters have been added

Re: [PHP-DEV] [RFC] [Discussion] Support object type in BCMath

2024-03-28 Thread Saki Takamachi
Hi Derick, >> What is the main difference between getting a read-only property with >> `->value` and getting the value using a method? > > Feeling :-) Do we have precedence with other extension's objects > perhaps already? It depends on the extension. Probably some readonly properties exist

Re: [PHP-DEV] [RFC idea introduce] The issue where the __callStatic magic method is not called when statically calling a public method.

2024-03-28 Thread 하늘아부지
2024년 3월 28일 (목) 오후 6:33, Stéphane Hulard 님이 작성: > Le jeudi 28 mars 2024 à 10:40, Claude Pache a > écrit : > > > > > > > > > > Le 28 mars 2024 à 03:29, 하늘아부지 a écrit : > > > > > > > > > > > Hi. > > > > > > > I would like to register an RFC on the following issue. > > >

Re: [PHP-DEV] [RFC] [Discussion] Support object type in BCMath

2024-03-28 Thread Derick Rethans
On Wed, 27 Mar 2024, Saki Takamachi wrote: > > - You've picked as class name "BcNum". Following > > our naming guidelines, that probably should be \BCMath\Num (or > > \BC\Num, but that is less descriptive): > > > >

[PHP-DEV] [RFC] [Vote] Add dedicated StreamBucket object

2024-03-28 Thread Máté Kocsis
Hi Everyone, As promised last week, I am opening the vote for the dedicated StreamBucket object RFC. RFC: https://wiki.php.net/rfc/dedicated_stream_bucket Discussion thread: https://externals.io/message/122190 The vote remains open until 2024-04-11 10:00 UTC. Regards, Máté

Re: [PHP-DEV] [RFC idea introduce] The issue where the __callStatic magic method is not called when statically calling a public method.

2024-03-28 Thread Stéphane Hulard
Le jeudi 28 mars 2024 à 10:40, Claude Pache a écrit : > > > > Le 28 mars 2024 à 03:29, 하늘아부지 a écrit : > > > > > > Hi. > > > > I would like to register an RFC on the following issue. > > https://github.com/php/php-src/issues/13813 > > > > To summarize briefly, users expect that the

Re: [PHP-DEV] [RFC idea introduce] The issue where the __callStatic magic method is not called when statically calling a public method.

2024-03-28 Thread Claude Pache
> Le 28 mars 2024 à 03:29, 하늘아부지 a écrit : > > Hi. > > I would like to register an RFC on the following issue. > https://github.com/php/php-src/issues/13813 > > To summarize briefly, users expect that the `__callStatic` magic method will > be called in all cases when a method is not static

Re: [PHP-DEV][RFC] grapheme cluster for str_split, grapheme_str_split function

2024-03-28 Thread Derick Rethans
On 27 March 2024 23:18:21 GMT, "Rowan Tommins [IMSoP]" wrote: >On 26/03/2024 21:14, Casper Langemeijer wrote: >> If you need someone to help for the grapheme_ marketing team, let me know. > >I think a big part of the problem is that very few people dig into the >complexities of text encoding,