diff --git a/ext/standard/php_fopen_wrapper.c b/ext/standard/php_fopen_wrapper.c index 1e05f3d5563..eafd3a3850e 100644 --- a/ext/standard/php_fopen_wrapper.c +++ b/ext/standard/php_fopen_wrapper.c @@ -171,7 +171,7 @@ php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, char *path, ch path += 11; max_memory = strtol(path, NULL, 10); if (max_memory < 0) { - php_error_docref(NULL TSRMLS_CC, E_ERROR, "Max memory must be >= 0"); + php_error_docref(NULL TSRMLS_CC, E_RECOVERABLE_ERROR, "Max memory must be >= 0"); return NULL; } }