@@ -219,7 +219,7 @@ php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, const char *pa
219
219
220
220
if ((options & STREAM_OPEN_FOR_INCLUDE ) && !PG (allow_url_include ) ) {
221
221
if (options & REPORT_ERRORS ) {
222
- php_error_docref (NULL , E_WARNING , "URL file-access is disabled in the server configuration" );
222
+ zend_throw_error (NULL , "URL file-access is disabled in the server configuration" );
223
223
}
224
224
return NULL ;
225
225
}
@@ -238,7 +238,7 @@ php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, const char *pa
238
238
if (!strcasecmp (path , "stdin" )) {
239
239
if ((options & STREAM_OPEN_FOR_INCLUDE ) && !PG (allow_url_include ) ) {
240
240
if (options & REPORT_ERRORS ) {
241
- php_error_docref (NULL , E_WARNING , "URL file-access is disabled in the server configuration" );
241
+ zend_throw_error (NULL , "URL file-access is disabled in the server configuration" );
242
242
}
243
243
return NULL ;
244
244
}
@@ -297,14 +297,14 @@ php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, const char *pa
297
297
298
298
if (strcmp (sapi_module .name , "cli" )) {
299
299
if (options & REPORT_ERRORS ) {
300
- php_error_docref (NULL , E_WARNING , "Direct access to file descriptors is only available from command-line PHP" );
300
+ zend_throw_error (NULL , "Direct access to file descriptors is only available from command-line PHP" );
301
301
}
302
302
return NULL ;
303
303
}
304
304
305
305
if ((options & STREAM_OPEN_FOR_INCLUDE ) && !PG (allow_url_include ) ) {
306
306
if (options & REPORT_ERRORS ) {
307
- php_error_docref (NULL , E_WARNING , "URL file-access is disabled in the server configuration" );
307
+ zend_throw_error (NULL , "URL file-access is disabled in the server configuration" );
308
308
}
309
309
return NULL ;
310
310
}
0 commit comments