diff options
author | Aaron Piotrowski <aaron@trowski.com> | 2016-07-05 02:08:39 -0500 |
---|---|---|
committer | Aaron Piotrowski <aaron@trowski.com> | 2016-07-05 02:08:39 -0500 |
commit | 24237027bc7e4f7aed9287fe9815c0577eeb1c22 (patch) | |
tree | bc23b05ba89a75f0e0711933371f708b96e63345 /ext/standard/php_fopen_wrapper.c | |
parent | 42666da1714673d537356221e688f57f404fe1d2 (diff) | |
parent | e9832b5ab1d986ddd3ea0705bcbc5a391dc16614 (diff) | |
download | php-git-24237027bc7e4f7aed9287fe9815c0577eeb1c22.tar.gz |
Merge branch 'throw-error-in-extensions'
Diffstat (limited to 'ext/standard/php_fopen_wrapper.c')
-rw-r--r-- | ext/standard/php_fopen_wrapper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/php_fopen_wrapper.c b/ext/standard/php_fopen_wrapper.c index dbd0a3fba1..398bd0a9ae 100644 --- a/ext/standard/php_fopen_wrapper.c +++ b/ext/standard/php_fopen_wrapper.c @@ -195,7 +195,7 @@ php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, const char *pa path += 11; max_memory = ZEND_STRTOL(path, NULL, 10); if (max_memory < 0) { - php_error_docref(NULL, E_RECOVERABLE_ERROR, "Max memory must be >= 0"); + zend_throw_error(NULL, "Max memory must be >= 0"); return NULL; } } @@ -353,7 +353,7 @@ php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, const char *pa pathdup = estrndup(path + 6, strlen(path + 6)); p = strstr(pathdup, "/resource="); if (!p) { - php_error_docref(NULL, E_RECOVERABLE_ERROR, "No URL resource specified"); + zend_throw_error(NULL, "No URL resource specified"); efree(pathdup); return NULL; } |