diff options
author | Aaron Piotrowski <aaron@trowski.com> | 2016-06-14 11:32:33 -0500 |
---|---|---|
committer | Aaron Piotrowski <aaron@trowski.com> | 2016-06-14 13:18:43 -0500 |
commit | 7d53864574e22a3f72fcee7eb902248fb25f85df (patch) | |
tree | 19e9f8a5a99ae125ccd94124d32712ddb9c5eddb /ext/standard/assert.c | |
parent | 771e5cc24716304dd2bf8cbd8aec11d465965d0a (diff) | |
download | php-git-7d53864574e22a3f72fcee7eb902248fb25f85df.tar.gz |
E_RECOVERABLE_ERROR -> thrown Error
Diffstat (limited to 'ext/standard/assert.c')
-rw-r--r-- | ext/standard/assert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/assert.c b/ext/standard/assert.c index 016c90e02e..05d0387224 100644 --- a/ext/standard/assert.c +++ b/ext/standard/assert.c @@ -180,10 +180,10 @@ PHP_FUNCTION(assert) if (zend_eval_stringl(myeval, Z_STRLEN_P(assertion), &retval, compiled_string_description) == FAILURE) { efree(compiled_string_description); if (!description) { - php_error_docref(NULL, E_RECOVERABLE_ERROR, "Failure evaluating code: %s%s", PHP_EOL, myeval); + zend_throw_error(NULL, "Failure evaluating code: %s%s", PHP_EOL, myeval); } else { zend_string *str = zval_get_string(description); - php_error_docref(NULL, E_RECOVERABLE_ERROR, "Failure evaluating code: %s%s:\"%s\"", PHP_EOL, ZSTR_VAL(str), myeval); + zend_throw_error(NULL, "Failure evaluating code: %s%s:\"%s\"", PHP_EOL, ZSTR_VAL(str), myeval); zend_string_release(str); } if (ASSERTG(bail)) { |