# [PHP-CVS] svn: /php/php-src/ branches/PHP_5_2/NEWS branches/PHP_5_2/ext/pcre/pcrelib/AUTHORS branches/PHP_5_2/ext/pcre/pcrelib/ChangeLog branches/PHP_5_2/ext/pcre/pcrelib/HACKING branches/PHP_5_2/ext/pcre/pcrelib/LICENCE branches/PH

- Thread: https://externals.io/message/46905
- Original archive: https://news-web.php.net/php.internals/46905
- Started by Pierre Joye on 2010-01-29T10:32:25+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #46905 — Pierre Joye — 2010-01-29T10:32:25+00:00

URL: https://externals.io/message/46905#46905

> As far as I remember, it was decided that C99 is ok for php6.

I can't remember any decision about C99.

> Anyway, we probably need to compose some table on what compilers have limited (and how limited) support for c99.
> Then we can objectively decide if we can leave those aside

That's not a solution, or we kill solaris, HPUX, windows, etc.
support. GCC does a very bad job here by enabling part of C99 by
default and breaking the other half of the specs. Also C99 is pretty
much a bastarized version of C++ in an incompatible way. The price to
accept C99 is too high, especially when all we use (in 99.99999% of
what the usages) is stdint/stdbool.

Simply detect and define them at configure time will kill the need to
use c99 and keeps us on the good/right side (what I do on win for
example,easy) :)

Cheers,
-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

---

## #46906 — Alexey Zakhlestin — 2010-01-29T11:26:20+00:00

URL: https://externals.io/message/46905#46906 · In reply to: #46905

> 
> > […]
> 
> I can't remember any decision about C99.

I remember some talk with andrei on irc… I guess we never wrote that down

> 
> > […]
> 
> That's not a solution, or we kill solaris, HPUX, windows, etc.
> support. GCC does a very bad job here by enabling part of C99 by
> default and breaking the other half of the specs. Also C99 is pretty
> much a bastarized version of C++ in an incompatible way. The price to
> accept C99 is too high, especially when all we use (in 99.99999% of
> what the usages) is stdint/stdbool.
> 
> Simply detect and define them at configure time will kill the need to
> use c99 and keeps us on the good/right side (what I do on win for
> example,easy) :)

you forgot about C++-style comments :)
Does Visual Studio support none of C99? I thought recent versions had partial support

---

## #46933 — Sriram Natarajan — 2010-02-02T19:17:18+00:00

URL: https://externals.io/message/46905#46933 · In reply to: #46905

Pierre Joye wrote:
> 
>   
> > […]
>
> I can't remember any decision about C99.
>
>   
> > […]
>
> That's not a solution, or we kill solaris, HPUX, windows, etc.
> support. GCC does a very bad job here by enabling part of C99 by
> default and breaking the other half of the specs. Also C99 is pretty
> much a bastarized version of C++ in an incompatible way. The price to
> accept C99 is too high, especially when all we use (in 99.99999% of
> what the usages) is stdint/stdbool.
>
> Simply detect and define them at configure time will kill the need to
> use c99 and keeps us on the good/right side (what I do on win for
> example,easy) :)
>
>   
This seems to be the best solution. I very much agree.

- Sriram
