Re: [PHP-DEV] RFC: Records

2024-11-19 Thread Larry Garfield
On Tue, Nov 19, 2024, at 5:56 AM, Michał Marcin Brzuchalski wrote: > Hi Larry, > > niedz., 17 lis 2024 o 08:24 Larry Garfield > napisał(a): >> ... >> I can see the benefit of an inline constructor. Kotlin has something >> similar. But I can see the benefit of it for all classes, even service

[PHP-DEV] [RFC][Vote] PHP.net analytics

2024-11-19 Thread Larry Garfield
I have now opened the vote on the PHP.net Analytics RFC. The vote will close on 4 December. https://wiki.php.net/rfc/phpnet-analytics -- Larry Garfield la...@garfieldtech.com

Re: [PHP-DEV] Better development streamlining of the built-in server

2024-11-19 Thread Bilge
On 19/11/2024 23:14, Rowan Tommins [IMSoP] wrote: On 19/11/2024 13:48, Hammed Ajao wrote: So if symfony and laravel do this, whose best practices are we going by exactly, yours? One common citation for this is "The Twelve-Factor App" [https://12factor.net/], a methodology/manifesto publish

Re: [PHP-DEV] Better development streamlining of the built-in server

2024-11-19 Thread Rowan Tommins [IMSoP]
On 19/11/2024 13:48, Hammed Ajao wrote: So if symfony and laravel do this, whose best practices are we going by exactly, yours? One common citation for this is "The Twelve-Factor App" [https://12factor.net/], a methodology/manifesto published in 2011 by some engineers from Heroku as a way

Re: [PHP-DEV] Better development streamlining of the built-in server

2024-11-19 Thread John D'Orazio
I don't understand why an application should not know which environment it is running in? You should be able to instruct a frontend where to look for a backend, depending on the environment it is running in. What best practice are you referring to? And may I ask why the PHP built-in server was crea

Re: [PHP-DEV] Better development streamlining of the built-in server

2024-11-19 Thread John D'Orazio
> Why couldn't you just do>> ```php> if (php_sapi_name() === 'cli-server') {>     $_ENV['APP_ENV'] = 'development';> }> ```>> in your entry point script?In fact this is pretty much how I currently handle the situation. Of course it can be handled in the entry point script.My point is, would the bui

[PHP-DEV] PHP 8.2 Active Support Closed Reminder

2024-11-19 Thread Sergey Panteleev
Hi, all! Just a friendly reminder, according to the supported versions page [1], active support for PHP-8.2 ends on 31 December 2024. Since our release cycle has a release falling on 19 December, this means PHP 8.2.27 is the last bug-fix release for the 8.2 series. Following PHP 8.2.27, PHP 8.2

Re: [PHP-DEV] Better development streamlining of the built-in server

2024-11-19 Thread Bruce Weirdan
> I think it would be a nice feature of PHP's built-in server to do something similar, automatically provide a `$_ENV[APP_ENV]` variable with a value of `development` so that the application logic knows whether it's running on a localhost development environment rather than on a production server.

Re: [PHP-DEV] Better development streamlining of the built-in server

2024-11-19 Thread Bilge
On 19/11/2024 13:26, John D'Orazio wrote: I don't understand why an application should not know which environment it is running in? I don't know if this list is the place to be discussing this, but here goes: Typically you are injecting the environment name to have the application switch to a

Re: [PHP-DEV] Better development streamlining of the built-in server

2024-11-19 Thread Bilge
On 19/11/2024 12:52, John D'Orazio wrote: My point is, would the built-in server ever be used for anything other than local development? If not, then it would be a simple convenience to developers to have an automatic environment variable of "development" when launching the built-in server. Ins

Re: [PHP-DEV] Better development streamlining of the built-in server

2024-11-19 Thread John D'Orazio
Sorry for the typo, I meant to write 'LAMP'. I have always setup a Linux Apache MySQL PHP environment for local development. But I find that not everyone is so keen on such an involved local setup. Which is why I find the built-in server such a great convenience. It greatly simplifies the developme

Re: [PHP-DEV] Better development streamlining of the built-in server

2024-11-19 Thread Christoph M. Becker
On 19.11.2024 at 03:33, John D'Orazio wrote: > […] I even recently discovered the great > feature that was introduced in PHP 7.4 `PHP_CLI_SERVER_WORKERS`, which I > sorely > needed because my API makes a couple of requests internally to various paths > of > the API, and nested requests require m

Re: [PHP-DEV] RFC: Records

2024-11-19 Thread Michał Marcin Brzuchalski
Hi Larry, niedz., 17 lis 2024 o 08:24 Larry Garfield napisał(a): > ... > I can see the benefit of an inline constructor. Kotlin has something > similar. But I can see the benefit of it for all classes, even service > classes, not just records. (In Kotlin, it's used for service classes all > t

Re: [PHP-DEV] RFC: Records

2024-11-19 Thread Michał Marcin Brzuchalski
Hi Rob and Ilia Thank you both for your detailed proposals and the efforts you put into shaping this important feature for PHP It is clear a lot of thought has gone into both approaches and I appreciate the opportunity to share my thoughts. niedz., 17 lis 2024 o 01:17 Ilija Tovilo napisał(a): >

Re: [PHP-DEV] [RFC] [Discussion] Add WHATWG compliant URL parsing API

2024-11-19 Thread Máté Kocsis
Hi Dennis, Even though I didn't answer for a long time, I was improving my RFC implementation in the meanwhile as well as evaluating your suggestions. I’m worried about the side-effects that having a global uri.default_handler could > have with code running differently for no apparent reason, or

Re: [PHP-DEV] A new fuzz testing tool for PHP

2024-11-19 Thread Jakub Zelenka
On Tue, Nov 19, 2024 at 12:22 AM Ilija Tovilo wrote: > Hi Yuancheng > > On Fri, Nov 15, 2024 at 2:21 PM Yuancheng Jiang <0599jian...@gmail.com> > wrote: > > > > I have been submitting hundreds of bugs (see > https://github.com/php/php-src/issues/created_by/YuanchengJiang) during > the past months