Re: Require C11 in PHP 8.4

From: Date: Tue, 06 Aug 2024 11:26:02 +0000
Subject: Re: Require C11 in PHP 8.4
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
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 <[email protected]> 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? 
> >> That could instantly provide a link to the documentation saving all 
> >> of us time.
> >
> > it is significantly easier at configure time. Gcc 4.9 is (almost) 
> > fully c11 compliant (not 4.7).
> 
> 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.

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 test.

But it's just possible to check for the flag for compilers that we *do* 
know about. And by checking for it and showing a warning, we make 
people's lives easire.

cheers,
Derick


Thread (33 messages)

« previous php.internals (#124802) next »