summaryrefslogtreecommitdiff
path: root/Zend/zend_operators.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2015-07-02 01:54:08 +0200
committerBob Weinand <bobwei9@hotmail.com>2015-07-02 02:20:58 +0200
commit007d7ac7ca6d52ba5e7a0ba7b2c582a04ddc50df (patch)
tree1a3615bd2fb103b7a0e9703fd869891613a57510 /Zend/zend_operators.c
parentf9724b93f6592d2f77fa9165038a0ba0db3da0c6 (diff)
downloadphp-git-007d7ac7ca6d52ba5e7a0ba7b2c582a04ddc50df.tar.gz
Use DivisionByZeroError instead of exception for %/intdiv()
Diffstat (limited to 'Zend/zend_operators.c')
-rw-r--r--Zend/zend_operators.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c
index 7abd978079..a669cc206c 100644
--- a/Zend/zend_operators.c
+++ b/Zend/zend_operators.c
@@ -1157,7 +1157,7 @@ ZEND_API int ZEND_FASTCALL mod_function(zval *result, zval *op1, zval *op2) /* {
if (op2_lval == 0) {
/* modulus by zero */
if (EG(current_execute_data) && !CG(in_compilation)) {
- zend_throw_exception_ex(NULL, 0, "Division by zero");
+ zend_throw_exception_ex(zend_ce_division_by_zero_error, 0, "Modulo by zero");
} else {
zend_error_noreturn(E_ERROR, "Division by zero");
}