Re: [PHP-DEV] [RFC] [VOTE] Transform exit() from a languageconstructinto a standard function

2024-08-06 Thread Christoph M. Becker
On 06.08.2024 at 21:07, Gina P. Banyard wrote: > On Monday, 5 August 2024 at 23:55, Christoph M. Becker > wrote: > >> Most likely, yes, although still somebody has to provide a fix, and >> someone has to do a new release. > > Why should I investigate time to fix extensions when this RFC might no

Re: [PHP-DEV] Require C11 in PHP 8.4

2024-08-06 Thread Christoph M. Becker
On 06.08.2024 at 22:21, Lanre wrote: > On Thu, Aug 1, 2024 at 4:01 PM Ilija Tovilo wrote: > >> Hence, it seems like it would be ok to bump our C compiler requirement >> to C11. We'd like to make this change before beta 1 if there are no >> objections. There are no immediate plans to make non-opti

Re: [PHP-DEV] Require C11 in PHP 8.4

2024-08-06 Thread Lanre
On Thu, Aug 1, 2024 at 4:01 PM Ilija Tovilo wrote: > Hi everyone > > We've gotten a bug report about compile errors in the PHP 8.4 alpha on > old C99 compilers (and on some modern compilers when passing the > -std=c99 flag). Specifically, C99 does not support typedef > redeclarations, which is a

Re: [PHP-DEV] [Discussion] Sandbox API

2024-08-06 Thread Niels Dossche
On 06/08/2024 21:05, Rob Landers wrote: > Hey Niels, > > I find this assertion kind of scary from a shared hosting perspective or even > from a 3v4l kind of perspective. How do these services protect themselves if > php is inherently insecure? > > — Rob Hi Rob I'm not a sysadmin guy or anyth

Re: [PHP-DEV] [RFC] [VOTE] Transform exit() from a languageconstructinto a standard function

2024-08-06 Thread Gina P. Banyard
On Monday, 5 August 2024 at 23:55, Christoph M. Becker wrote: > On 05.08.2024 at 21:37, Gina P. Banyard wrote: > > > This sounds like a uopz extension issue that is easily fixed. > > > Most likely, yes, although still somebody has to provide a fix, and > someone has to do a new release. Why

Re: [PHP-DEV] [Discussion] Sandbox API

2024-08-06 Thread Rob Landers
On Tue, Aug 6, 2024, at 20:59, Niels Dossche wrote: > On 06/08/2024 10:41, Nick Lockheart wrote: > > > > Sandbox: Security > > > > A SandBox has two use cases: > > > > 1. Unit Testing of code with mocks or stubs, and also, allowing testing > > with different environments. > > > > 2. The secur

Re: [PHP-DEV] [RFC] [VOTE] Transform exit() from a language construct into a standard function

2024-08-06 Thread Gina P. Banyard
On Tuesday, 6 August 2024 at 09:27, Benjamin Außenhofer wrote: > Am 06.08.2024, 09:43:21 schrieb Benjamin Außenhofer : > >> - If it still does not allow me to set exit as disabled_functions, then this >> creates an inconsistency > > That left me wondering why disabled_functions does not work, a

Re: [PHP-DEV] [Discussion] Sandbox API

2024-08-06 Thread Niels Dossche
On 06/08/2024 10:41, Nick Lockheart wrote: > > Sandbox: Security > > A SandBox has two use cases: > > 1. Unit Testing of code with mocks or stubs, and also, allowing testing > with different environments. > > 2. The secure running of 3rd party code inside a 1st party application. > The use-ca

Re: [PHP-DEV] [Discussion] Sandbox API

2024-08-06 Thread Rob Landers
Hey Nick, Looking forward to the RFC! On Tue, Aug 6, 2024, at 19:28, Nick Lockheart wrote: > > > > This looks quite valuable, and I assume auto loading would work just > > like normal? Register an autoloader that will eventually require the > > file and call this function? > > > > It would be n

[PHP-DEV] Archive php/pftt2?

2024-08-06 Thread Christoph M. Becker
Hi all, this is about the PFTT2 repository[1]. This was used by the Windows QA team long ago, and had a short-term revival about 2019, but was then dropped in favor of using run-tests.php, while all the other features (such as PHPUnit tests for applications and frameworks, WebDriver based UI test

Re: [PHP-DEV] [Discussion] Sandbox API

2024-08-06 Thread Nick Lockheart
> > This looks quite valuable, and I assume auto loading would work just > like normal? Register an autoloader that will eventually require the > file and call this function? > > It would be nice to provide a simplified api as well, maybe > “CopyCurrentEnvironment()” or something?  In most cases,

Re: [PHP-DEV] Require C11 in PHP 8.4

2024-08-06 Thread Christoph M. Becker
On 06.08.2024 at 15:01, Peter Kokot wrote: > On Mon, 5 Aug 2024 at 19:15, Christoph M. Becker wrote: >> But what about other compilers we support on non Windows platforms >> currently, like clang, Apple's clang, Solaris Studio and maybe some more >> we don't even know about. > > Might be worth no

Re: [PHP-DEV] Require C11 in PHP 8.4

2024-08-06 Thread Pierre Joye
On Tue, Aug 6, 2024 at 12:10 AM Christoph M. Becker wrote: > > On 05.08.2024 at 17:42, Pierre Joye wrote: > > > On Mon, Aug 5, 2024, 10:03 PM Derick Rethans wrote: > > > >> Instead of having to deal with tickets, wouldn't be be easier if the > >> compiler they used works with the features that we

Re: [PHP-DEV] Require C11 in PHP 8.4

2024-08-06 Thread Peter Kokot
On Mon, 5 Aug 2024 at 19:15, Christoph M. Becker wrote: > But what about other compilers we support on non Windows platforms > currently, like clang, Apple's clang, Solaris Studio and maybe some more > we don't even know about. Might be worth noting here that from what I've tested so far that PHP

Re: [PHP-DEV] Require C11 in PHP 8.4

2024-08-06 Thread Stephen Reay
> On 6 Aug 2024, at 18:26, Derick Rethans wrote: > > Normal clang supports the same flag. Apple clang potentially too, but > not currently: > https://opensource.apple.com/source/clang/clang-23/clang/tools/clang/docs/UsersManual.html > — it could be outdated information though. I don't have a

Re: [PHP-DEV] Require C11 in PHP 8.4

2024-08-06 Thread Christoph M. Becker
On 06.08.2024 at 13:26, Derick Rethans wrote: > Normal clang supports the same flag. Apple clang potentially too, but > not currently: > https://opensource.apple.com/source/clang/clang-23/clang/tools/clang/docs/UsersManual.html > — it could be outdated information though. I don't have a mac to tes

Re: [PHP-DEV] Require C11 in PHP 8.4

2024-08-06 Thread Derick Rethans
On Mon, 5 Aug 2024, Christoph M. Becker wrote: > On 05.08.2024 at 17:42, Pierre Joye wrote: > > > On Mon, Aug 5, 2024, 10:03 PM Derick Rethans wrote: > > > >> Instead of having to deal with tickets, wouldn't be be easier if > >> the compiler they used works with the features that we are using?

Re: [PHP-DEV] Require C11 in PHP 8.4

2024-08-06 Thread Christoph M. Becker
On 05.08.2024 at 18:42, Levi Morrison wrote: > As a person who wrote some of those atomics, I would definitely prefer > to move to standard C11/C17 atomics at some point in the future and > remove all other fallbacks. The blocker right now is Microsoft Visual > Studio. Although they added C11/C17

Re: [PHP-DEV] [RFC] Lazy Objects

2024-08-06 Thread Benjamin Außenhofer
Am 06.08.2024, 11:01:54 schrieb Côme Chilliet : > Le mardi 4 juin 2024, 14:28:53 UTC+2 Nicolas Grekas a écrit : > > Dear all, > > > Arnaud and I are pleased to share with you the RFC we've been shaping for > > over a year to add native support for lazy objects to PHP. > > > Please find all the det

Re: [PHP-DEV] [RFC] Lazy Objects

2024-08-06 Thread Marco Pivetta
Hey Côme, On Tue, 6 Aug 2024 at 11:05, Côme Chilliet wrote: > > What does Proxy allows that Ghost do not? > Ghosts work well when you need to use the object identity, such as: * `$a === $b` checks * `spl_object_id(...)` * `SplObjectStorage` Ghost objects operate at property level, and can

Re: [PHP-DEV] [RFC] Lazy Objects

2024-08-06 Thread Côme Chilliet
Le mardi 4 juin 2024, 14:28:53 UTC+2 Nicolas Grekas a écrit : > Dear all, > > Arnaud and I are pleased to share with you the RFC we've been shaping for > over a year to add native support for lazy objects to PHP. > > Please find all the details here: > https://wiki.php.net/rfc/lazy-objects > > W

Re: [PHP-DEV] [Discussion] Sandbox API

2024-08-06 Thread Mike Schinkel
> On Aug 6, 2024, at 2:09 AM, Nick Lockheart wrote: > > Sand Box: A first class API that allows unit testing of code with mocks > and stubs of other classes or functions, without the need to modify the > class under test. > > This is an initial idea of how a Sand Box API could work: > > $oSandb

Re: [PHP-DEV] [Discussion] Sandbox API

2024-08-06 Thread Rob Landers
On Tue, Aug 6, 2024, at 10:41, Nick Lockheart wrote: > > Sandbox: Security > > A SandBox has two use cases: > > 1. Unit Testing of code with mocks or stubs, and also, allowing testing > with different environments. > > 2. The secure running of 3rd party code inside a 1st party application. >

Re: [PHP-DEV] [Discussion] Sandbox API

2024-08-06 Thread Nick Lockheart
Sandbox: Security A SandBox has two use cases: 1. Unit Testing of code with mocks or stubs, and also, allowing testing with different environments. 2. The secure running of 3rd party code inside a 1st party application. For the second use case, I will use a fictional blogging software called

Re: [PHP-DEV] [RFC] [VOTE] Transform exit() from a language construct into a standard function

2024-08-06 Thread Benjamin Außenhofer
Am 06.08.2024, 09:43:21 schrieb Benjamin Außenhofer : > > > Am 30.07.2024, 11:49:52 schrieb Gina P. Banyard : > >> Hello Internals, >> >> I have just opened the vote for the "Transform exit() from a language >> construct into a standard function" RFC: >> https://wiki.php.net/rfc/exit-as-function >

Re: [PHP-DEV] [Early Feedback] Pattern matching

2024-08-06 Thread Côme Chilliet
Le jeudi 20 juin 2024, 19:38:40 UTC+2 Larry Garfield a écrit : > To that end, we're looking for *very high level* feedback on this RFC: > > https://wiki.php.net/rfc/pattern-matching Hello, Thank you for this RFC. Sorry if that’s a bit focused on syntax, but I’m really concerned by the binding

Re: [PHP-DEV] [RFC] [VOTE] Transform exit() from a language construct into a standard function

2024-08-06 Thread Benjamin Außenhofer
Am 30.07.2024, 11:49:52 schrieb Gina P. Banyard : > Hello Internals, > > I have just opened the vote for the "Transform exit() from a language > construct into a standard function" RFC: > https://wiki.php.net/rfc/exit-as-function > > The vote will last for two weeks until the 13th of August 2024.