@@ -1029,7 +1029,7 @@ PHPAPI php_stream *_php_stream_fopen(const char *filename, const char *mode, zen
1029
1029
1030
1030
if (FAILURE == php_stream_parse_fopen_modes (mode , & open_flags )) {
1031
1031
if (options & REPORT_ERRORS ) {
1032
- php_error_docref ( NULL , E_WARNING , "`%s' is not a valid mode for fopen" , mode );
1032
+ zend_value_error ( "`%s' is not a valid mode for fopen" , mode );
1033
1033
}
1034
1034
return NULL ;
1035
1035
}
@@ -1464,7 +1464,7 @@ static int php_plain_files_metadata(php_stream_wrapper *wrapper, const char *url
1464
1464
ret = VCWD_CHMOD (url , mode );
1465
1465
break ;
1466
1466
default :
1467
- php_error_docref1 ( NULL , url , E_WARNING , "Unknown option %d for stream_metadata" , option );
1467
+ zend_value_error ( "Unknown option %d for stream_metadata" , option );
1468
1468
return 0 ;
1469
1469
}
1470
1470
if (ret == -1 ) {
@@ -1561,6 +1561,7 @@ PHPAPI php_stream *_php_stream_fopen_with_path(const char *filename, const char
1561
1561
* (cwd + 3 ) = '\0' ;
1562
1562
1563
1563
if (snprintf (trypath , MAXPATHLEN , "%s%s" , cwd , filename ) >= MAXPATHLEN ) {
1564
+ /* Raise to warning? */
1564
1565
php_error_docref (NULL , E_NOTICE , "%s/%s path was truncated to %d" , cwd , filename , MAXPATHLEN );
1565
1566
}
1566
1567
@@ -1616,6 +1617,7 @@ PHPAPI php_stream *_php_stream_fopen_with_path(const char *filename, const char
1616
1617
goto stream_skip ;
1617
1618
}
1618
1619
if (snprintf (trypath , MAXPATHLEN , "%s/%s" , ptr , filename ) >= MAXPATHLEN ) {
1620
+ /* Raise to warning? */
1619
1621
php_error_docref (NULL , E_NOTICE , "%s/%s path was truncated to %d" , ptr , filename , MAXPATHLEN );
1620
1622
}
1621
1623
0 commit comments