Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) / zend_operators.c
| From: | Pierre Joye | Date: | Tue, 17 Feb 2009 14:36:01 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_2) / zend_operators.c | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-7408@lists.php.net to get a copy of this message | ||
hi Matt,
On Tue, Feb 17, 2009 at 3:16 PM, Matt Wilmas <mattwil@php.net> wrote:
> @@ -936,7 +936,7 @@
> return FAILURE; /* modulus by zero */
> }
>
> - if (abs(op2->value.lval) == 1) {
> + if (op2->value.lval == -1) {
> ZVAL_LONG(result, 0);
> return SUCCESS;
> }
Is it not changing the behavior? What happened when lval was 1? It
would be nice to have some tests too, if they do not exist already.
Cheers,
--
Pierre
http://blog.thepimp.net | http://www.libgd.org