RE: [PHP-DEV] [RFC] intdiv()
| From: | Zeev Suraski | Date: | Thu, 17 Jul 2014 06:29:00 +0000 |
| Subject: | RE: [PHP-DEV] [RFC] intdiv() | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75643@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Andrea Faulds [mailto:ajf@ajf.me]
> Sent: Wednesday, July 16, 2014 6:15 PM
> To: bishop@php.net
> Cc: PHP internals
> Subject: Re: [PHP-DEV] [RFC] intdiv()
>
> The RFC has been updated to v0.2. It now proposes a %% operator for
integer
> division (with corresponding %%= assignment operator). However, it
returns 0
> for the PHP_INT_MIN overflow case like %, rather than FALSE and an
> E_WARNING.
Guys,
From debating whether it's worth it to add a new function for an
not-so-commonly-used-operation-to-say-the-least, we're now seriously
considering adding a new language level operator? Really?
Zeev