Skip to content

Commit ccad354

Browse files
author
Ilia Alshanetsky
committed
Make filters without a resource throw E_RECOVERABLE_ERROR rather then
E_ERROR
1 parent 1feef82 commit ccad354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/php_fopen_wrapper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, char *path, ch
207207
pathdup = estrndup(path + 6, strlen(path + 6));
208208
p = strstr(pathdup, "/resource=");
209209
if (!p) {
210-
php_error_docref(NULL TSRMLS_CC, E_ERROR, "No URL resource specified.");
210+
php_error_docref(NULL TSRMLS_CC, E_RECOVERABLE_ERROR, "No URL resource specified.");
211211
efree(pathdup);
212212
return NULL;
213213
}

0 commit comments

Comments
 (0)