diff options
author | Aaron Piotrowski <aaron@trowski.com> | 2015-07-07 12:10:22 -0500 |
---|---|---|
committer | Aaron Piotrowski <aaron@trowski.com> | 2015-07-07 12:10:55 -0500 |
commit | 5df893ce3c6630fc77337ab0d78097eab1002bc1 (patch) | |
tree | 999340047c771e7ba4a6a17677330016bd803162 /Zend/zend_operators.c | |
parent | 29c3cd44485fb8e43b29c46b1f9451e99bca92c8 (diff) | |
download | php-git-5df893ce3c6630fc77337ab0d78097eab1002bc1.tar.gz |
Use NULL where possible for exception class
Matches usage of zend_throw_exception()/zend_throw_exception_ex().
Diffstat (limited to 'Zend/zend_operators.c')
-rw-r--r-- | Zend/zend_operators.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index 8226cec9fe..64c2620bf3 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -907,7 +907,7 @@ ZEND_API int ZEND_FASTCALL add_function(zval *result, zval *op1, zval *op2) /* { zendi_convert_scalar_to_number(op2, op2_copy, result); converted = 1; } else { - zend_throw_error(zend_ce_error, "Unsupported operand types"); + zend_throw_error(NULL, "Unsupported operand types"); return FAILURE; /* unknown datatype */ } } @@ -960,7 +960,7 @@ ZEND_API int ZEND_FASTCALL sub_function(zval *result, zval *op1, zval *op2) /* { zendi_convert_scalar_to_number(op2, op2_copy, result); converted = 1; } else { - zend_throw_error(zend_ce_error, "Unsupported operand types"); + zend_throw_error(NULL, "Unsupported operand types"); return FAILURE; /* unknown datatype */ } } @@ -1007,7 +1007,7 @@ ZEND_API int ZEND_FASTCALL mul_function(zval *result, zval *op1, zval *op2) /* { zendi_convert_scalar_to_number(op2, op2_copy, result); converted = 1; } else { - zend_throw_error(zend_ce_error, "Unsupported operand types"); + zend_throw_error(NULL, "Unsupported operand types"); return FAILURE; /* unknown datatype */ } } @@ -1095,7 +1095,7 @@ ZEND_API int ZEND_FASTCALL pow_function(zval *result, zval *op1, zval *op2) /* { } converted = 1; } else { - zend_throw_error(zend_ce_error, "Unsupported operand types"); + zend_throw_error(NULL, "Unsupported operand types"); return FAILURE; } } @@ -1160,7 +1160,7 @@ ZEND_API int ZEND_FASTCALL div_function(zval *result, zval *op1, zval *op2) /* { zendi_convert_scalar_to_number(op2, op2_copy, result); converted = 1; } else { - zend_throw_error(zend_ce_error, "Unsupported operand types"); + zend_throw_error(NULL, "Unsupported operand types"); return FAILURE; /* unknown datatype */ } } @@ -1310,7 +1310,7 @@ try_again: default: ZEND_TRY_UNARY_OBJECT_OPERATION(ZEND_BW_NOT); - zend_throw_error(zend_ce_error, "Unsupported operand types"); + zend_throw_error(NULL, "Unsupported operand types"); return FAILURE; } } @@ -1627,7 +1627,7 @@ ZEND_API int ZEND_FASTCALL concat_function(zval *result, zval *op1, zval *op2) / zend_string *result_str; if (UNEXPECTED(op1_len > SIZE_MAX - op2_len)) { - zend_throw_error(zend_ce_error, "String size overflow"); + zend_throw_error(NULL, "String size overflow"); ZVAL_FALSE(result); return FAILURE; } |