Re: [PHP-DEV] PHP Package for PHP

2023-05-18 Thread Mike Schinkel
> On May 18, 2023, at 1:34 PM, Rowan Tommins wrote: > On Thu, 18 May 2023 at 16:27, Deleu wrote: >> Monolog is a great example of what PHP is missing - a single library for a >> purpose. I have never worked with any other library besides Monolog and I >> never worked on any project which didn't h

Re: [PHP-DEV] PHP Package for PHP

2023-05-18 Thread Gunnard engebreth
On 5/18/23 9:00 PM, Deleu wrote: On Thu, May 18, 2023 at 6:56 PM Rowan Tommins wrote: On 18 May 2023 20:15:44 BST, Deleu wrote: I meant exactly the opposite. Monolog is an example of what PHP (is missing === doesn't have enough of). There's hardly any reason to re-release it under the PH

Re: [PHP-DEV] PHP 8 Backward Incompatible Change Notifications

2023-05-18 Thread Thomas Bley
Hi Alan, regarding "String to Number Comparison", you can cast the value to int to get the old behaviour: php -r "var_dump(0 == (int) '0');" php -r "var_dump(0 == (int) '0.0');" php -r "var_dump(0 == (int) 'foo');" php -r "var_dump(0 == (int) '');" php -r "var_dump(42 == (int) ' 42');" php -r "v

Re: [PHP-DEV] PHP Package for PHP

2023-05-18 Thread Deleu
On Thu, May 18, 2023 at 6:56 PM Rowan Tommins wrote: > On 18 May 2023 20:15:44 BST, Deleu wrote: > > I meant exactly the opposite. Monolog is an example of what PHP (is > missing > > === doesn't have enough of). There's hardly any reason to re-release it > > under the PHP umbrella. Monolog alrea

Re: [PHP-DEV] PHP Package for PHP

2023-05-18 Thread Mike Schinkel
> On May 18, 2023, at 10:27 AM, Rowan Tommins wrote: > > On the one hand, PEAR was a single "baseline" that everyone expected; on > the other hand, packages tended to be slow to adapt to new needs and > fashions, and inflexible to different environments. So instead, people > moved to: > > - Fram

Re: [PHP-DEV] PHP Package for PHP

2023-05-18 Thread Rowan Tommins
On 18 May 2023 20:15:44 BST, Deleu wrote: > I meant exactly the opposite. Monolog is an example of what PHP (is missing > === doesn't have enough of). There's hardly any reason to re-release it > under the PHP umbrella. Monolog already won the log battle. I can't say the > same for virtually anyth

[PHP-DEV] PHP 8 Backward Incompatible Change Notifications

2023-05-18 Thread Alan Smithee
Hi Internals! Looking for counsel from the PHP maintainers here regarding the upgrade path from PHP v7 to v8. There is a subset of backward incompatible language changes that are remarkably tricky to track back into a codebase through manual code inspection, automated testing, or static anal

Re: [PHP-DEV] PHP Package for PHP

2023-05-18 Thread Deleu
On Thu, May 18, 2023 at 2:35 PM Rowan Tommins wrote: > On Thu, 18 May 2023 at 16:27, Deleu wrote: > > Monolog is a great example of what PHP is missing - a single library for a > > purpose. I have never worked with any other library besides Monolog and I > > never worked on any project which did

Re: [PHP-DEV] PHP Package for PHP

2023-05-18 Thread Ilija Tovilo
Hi Marco On Thu, May 18, 2023 at 7:35 PM Rowan Tommins wrote: > > On Thu, 18 May 2023 at 16:27, Deleu wrote: > > Monolog is a great example of what PHP is missing - a single library for a > > purpose. I have never worked with any other library besides Monolog and I > > never worked on any projec

Re: [PHP-DEV] PHP Package for PHP

2023-05-18 Thread Larry Garfield
On Thu, May 18, 2023, at 5:34 PM, Rowan Tommins wrote: > I actually wonder if some things in core should be removed to encourage > userland replacements - ext/soap, for instance, and some of the data > structures in ext/spl. > > IMHO, the things that would benefit from being written in PHP then b

Re: [PHP-DEV] PHP Package for PHP

2023-05-18 Thread Rowan Tommins
On Thu, 18 May 2023 at 16:27, Deleu wrote: Monolog is a great example of what PHP is missing - a single library for a > purpose. I have never worked with any other library besides Monolog and I > never worked on any project which didn't have it installed. Perhaps my > bubble might be a limiting f

Re: [PHP-DEV] PHP Package for PHP

2023-05-18 Thread Tim Düsterhus
Hi On 5/18/23 18:13, tag Knife wrote: An extension of this, Looking on packagist. The namespace PHP is reserved, in collaboration with PHP, Composer and Packagist. Official PHP packages can use the /PHP/... root namespace. And can be published on packagist under the PHP namespace To my underst

Re: [PHP-DEV] PHP Package for PHP

2023-05-18 Thread Deleu
On Thu, May 18, 2023 at 11:43 AM Reinis Rozitis wrote: > > I have worked with PHP for 14 years now and I know nothing about PEAR. > It either says something about me or about PEAR. > > Then the next logical question would be do you know what PECL is? :) > > But to be short my point is - before

Re: [PHP-DEV] PHP Package for PHP

2023-05-18 Thread tag Knife
An extension of this, Looking on packagist. The namespace PHP is reserved, in collaboration with PHP, Composer and Packagist. Official PHP packages can use the /PHP/... root namespace. And can be published on packagist under the PHP namespace https://packagist.org/packages/php/ -- Note this URL CU

Re: [PHP-DEV] PHP Package for PHP

2023-05-18 Thread tag Knife
> > The work to get started seems to be about: > > 1- Getting an RFC to approve this idea itself > 2- Getting a repository to host the PHP package code. > 3- CI/CD > 4- Release Management > 5- Versioning Strategy > 6- Package naming convention > 7- Distribution strategy (single package vs multiple

Re: [PHP-DEV] PHP Package for PHP

2023-05-18 Thread Deleu
On Thu, May 18, 2023 at 11:27 AM Rowan Tommins wrote: > On Thu, 18 May 2023 at 14:12, Deleu wrote: > > > > Or PEAR? > > > Like that particular path_join() request is exactly > > > > > > https://pear.php.net/package/File_Util/docs/latest/File/File_Util/File_Util.html#methodbuildPath > > > > > > I

RE: [PHP-DEV] PHP Package for PHP

2023-05-18 Thread Reinis Rozitis
> I have worked with PHP for 14 years now and I know nothing about PEAR. It > either says something about me or about PEAR. Then the next logical question would be do you know what PECL is? :) But to be short my point is - before attempting to get new function(ality) in core it (seems to me)

Re: [PHP-DEV] PHP Package for PHP

2023-05-18 Thread Rowan Tommins
On Thu, 18 May 2023 at 14:12, Deleu wrote: > > Or PEAR? > > Like that particular path_join() request is exactly > > > https://pear.php.net/package/File_Util/docs/latest/File/File_Util/File_Util.html#methodbuildPath > > > I have worked with PHP for 14 years now and I know nothing about PEAR. It >

Re: [PHP-DEV] PHP Package for PHP

2023-05-18 Thread Lynn
On Thu, May 18, 2023 at 3:07 AM Deleu wrote: > Hi folks! > > Reading through https://externals.io/message/120323#120326 and > https://externals.io/message/120323#120332, it reminded me of a few times > I've seen similar debates on internals about "why not do this on userland?" > and the consensus

Re: [PHP-DEV] PHP Package for PHP

2023-05-18 Thread Deleu
On Thu, May 18, 2023 at 8:55 AM Reinis Rozitis wrote: > > Which begs the question of a PHP Package for PHP. Some benefits: > > > > - Written in PHP, it will allow a much wider pool of contributors than > the > scarce pool of C developers contributing to PHP source code. > > Aren't this what frame

RE: [PHP-DEV] PHP Package for PHP

2023-05-18 Thread Reinis Rozitis
> Which begs the question of a PHP Package for PHP. Some benefits: > > - Written in PHP, it will allow a much wider pool of contributors than the scarce pool of C developers contributing to PHP source code. Aren't this what frameworks are for (Laravel / Yii / Symfony / Zend etc)? Or PEAR? Like th

Re: [PHP-DEV] RFC [Discussion]: Marking overridden methods (#[\Override])

2023-05-18 Thread Marco Pivetta
Hey Tim, On Thu, 11 May 2023, 18:37 Tim Düsterhus, wrote: > Hi > > I'm now opening discussion for the RFC "Marking overridden methods > (#[\Override])": > > > > RFC: Marking overridden methods (#[\Override]) > https://wiki.php.net/rfc/marking_overriden_methods > > Proof of concept implement