cvs: Zend(PHP_4_4) / zend_operators.c

From: Date: Tue, 03 Oct 2006 17:55:40 +0000
Subject: cvs: Zend(PHP_4_4) / zend_operators.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-5297@lists.php.net to get a copy of this message
tony2001 Tue Oct 3 17:55:40 2006 UTC Modified files: (Branch: PHP_4_4) /Zend zend_operators.c Log: MFH: throw a warning when doing modulus by 0 (fr #39027) http://cvs.php.net/viewvc.cgi/Zend/zend_operators.c?r1=1.129.2.10.2.1&r2=1.129.2.10.2.2&diff_format=u Index: Zend/zend_operators.c diff -u Zend/zend_operators.c:1.129.2.10.2.1 Zend/zend_operators.c:1.129.2.10.2.2 --- Zend/zend_operators.c:1.129.2.10.2.1 Sun Jan 1 13:46:49 2006 +++ Zend/zend_operators.c Tue Oct 3 17:55:40 2006 @@ -789,6 +789,7 @@ zendi_convert_to_long(op2, op2_copy, result); if (op2->value.lval == 0) { + zend_error(E_WARNING, "Division by zero"); ZVAL_BOOL(result, 0); return FAILURE; /* modulus by zero */ }

« previous php.zend-engine.cvs (#5297) next »