Re: [PHP-DEV] [RFC] Integer Semantics

[email protected] (Derick Rethans)
Newsgroups php.internals
Message-ID <[email protected]>
On Wed, 20 Aug 2014, Andrea Faulds wrote:

> 
> On 20 Aug 2014, at 03:53, Laruence <[email protected]> wrote:
> 
> > On Wed, Aug 20, 2014 at 6:36 AM, Andrea Faulds <[email protected]> wrote:
> >> Good evening,
> >> 
> >> I have made an RFC which would make some small changes to how 
> >> integers are handled, targeted at PHP 7:
> >> 
> >> https://wiki.php.net/rfc/integer_semantics
> > 
> > I'd like don't change the works behavior.  make it act the similar 
> > as C does.
> 
> For some of these things the behaviour is explicitly undefined in C, 
> meaning it’s dangerous for us not to handle them specially, as 
> undefined behaviour seems to give compilers an unlimited license to do 
> absolutely anything at all.

Although I think it is good to make it work the same on every platform, 
I do think that changing it to *match* what the most used compiler (GCC) 
on our most used platform (Linux/AMD64) is what the new behaviour should 
be like — not something that "looks best". I think that's what Laruence 
was trying to say as well.

It causes the least amount of BC breaks for our users.

cheers,
Derick
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.