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/php_fopen_wrapper.c | |
parent | 771e5cc24716304dd2bf8cbd8aec11d465965d0a (diff) | |
download | php-git-7d53864574e22a3f72fcee7eb902248fb25f85df.tar.gz |
E_RECOVERABLE_ERROR -> thrown Error
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 759a4f6a33..cfe047930c 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; } |