Re: [PHP-DEV] Newcomer, PHP pre-processing, Magic Constants __FILE__ and __LINE__ override with #line like in C

2022-10-24 Thread Levi Morrison via internals
> I think you're also greatly over-estimating how large the startup cost is in > practice. It's real, certainly, but unless you have several nested > microservices a well-made framework should have a fairly small overhead. I want to share my experience that some users have very slow file I/O, a

Re: [PHP-DEV] Newcomer, PHP pre-processing, Magic Constants __FILE__ and __LINE__ override with #line like in C

2022-10-24 Thread Ludovic Pouzenc
Le 23/10/2022 à 18:02, Larry Garfield a écrit : On Sun, Oct 23, 2022, at 8:43 AM, Ludovic Pouzenc wrote: Hi, I'm a newcomer here. I came from https://wiki.php.net/rfc/howto. *TL;DR:* I want to know if a proposal of a #line parsing to alter __FILE__ and __LINE__ in PHP like it exists in C could

Re: [PHP-DEV] Newcomer, PHP pre-processing, Magic Constants __FILE__ and __LINE__ override with #line like in C

2022-10-23 Thread Larry Garfield
On Sun, Oct 23, 2022, at 8:43 AM, Ludovic Pouzenc wrote: > Hi, > > I'm a newcomer here. I came from https://wiki.php.net/rfc/howto. > > *TL;DR:* I want to know if a proposal of a #line parsing to alter > __FILE__ and __LINE__ in PHP like it exists in C could be a good idea. > > I've searched about

Re: [PHP-DEV] Newcomer, PHP pre-processing, Magic Constants __FILE__ and __LINE__ override with #line like in C

2022-10-23 Thread Stephen Reay
> On 23 Oct 2022, at 20:43, Ludovic Pouzenc wrote: > > Hi, > > I'm a newcomer here. I came from https://wiki.php.net/rfc/howto. > > *TL;DR:* I want to know if a proposal of a #line parsing to alter __FILE__ > and __LINE__ in PHP like it exists in C could be a good idea. > > I've searched ab

[PHP-DEV] Newcomer, PHP pre-processing, Magic Constants __FILE__ and __LINE__ override with #line like in C

2022-10-23 Thread Ludovic Pouzenc
Hi, I'm a newcomer here. I came from https://wiki.php.net/rfc/howto. *TL;DR:* I want to know if a proposal of a #line parsing to alter __FILE__ and __LINE__ in PHP like it exists in C could be a good idea. I've searched about __LINE__ and __FILE__ in mailing archives and wiki, I don't really