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_ast.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_ast.c')
| -rw-r--r-- | Zend/zend_ast.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_ast.c b/Zend/zend_ast.c index 6051fa7166..714a1443b0 100644 --- a/Zend/zend_ast.c +++ b/Zend/zend_ast.c @@ -203,7 +203,7 @@ static int zend_ast_add_array_element(zval *result, zval *offset, zval *expr) zend_hash_index_update(Z_ARRVAL_P(result), zend_dval_to_lval(Z_DVAL_P(offset)), expr); break; default: - zend_throw_error(zend_ce_error, "Illegal offset type"); + zend_throw_error(NULL, "Illegal offset type"); return FAILURE; } return SUCCESS; @@ -405,7 +405,7 @@ ZEND_API int zend_ast_evaluate(zval *result, zend_ast *ast, zend_class_entry *sc } break; default: - zend_throw_error(zend_ce_error, "Unsupported constant expression"); + zend_throw_error(NULL, "Unsupported constant expression"); ret = FAILURE; } return ret; |
