@@ -352,7 +352,7 @@ PHP_FUNCTION(flock)
352
352
act = operation & 3 ;
353
353
if (act < 1 || act > 3 ) {
354
354
zend_value_error ("Illegal operation argument" );
355
- return ;
355
+ RETURN_THROWS () ;
356
356
}
357
357
358
358
if (wouldblock ) {
@@ -746,7 +746,7 @@ PHP_FUNCTION(file)
746
746
747
747
if (flags < 0 || flags > (PHP_FILE_USE_INCLUDE_PATH | PHP_FILE_IGNORE_NEW_LINES | PHP_FILE_SKIP_EMPTY_LINES | PHP_FILE_NO_DEFAULT_CONTEXT )) {
748
748
zend_value_error ("'" ZEND_LONG_FMT "' flag is not supported" , flags );
749
- return ;
749
+ RETURN_THROWS () ;
750
750
}
751
751
752
752
use_include_path = flags & PHP_FILE_USE_INCLUDE_PATH ;
@@ -1041,7 +1041,7 @@ PHPAPI PHP_FUNCTION(fgets)
1041
1041
} else if (argc > 1 ) {
1042
1042
if (len <= 0 ) {
1043
1043
zend_value_error ("Length parameter must be greater than 0" );
1044
- return ;
1044
+ RETURN_THROWS () ;
1045
1045
}
1046
1046
1047
1047
str = zend_string_alloc (len , 0 );
@@ -1496,7 +1496,7 @@ PHP_NAMED_FUNCTION(php_if_ftruncate)
1496
1496
1497
1497
if (size < 0 ) {
1498
1498
zend_value_error ("Negative size is not supported" );
1499
- return ;
1499
+ RETURN_THROWS () ;
1500
1500
}
1501
1501
1502
1502
PHP_STREAM_TO_ZVAL (stream , fp );
@@ -1751,7 +1751,7 @@ PHPAPI PHP_FUNCTION(fread)
1751
1751
1752
1752
if (len <= 0 ) {
1753
1753
zend_value_error ("Length parameter must be greater than 0" );
1754
- return ;
1754
+ RETURN_THROWS () ;
1755
1755
}
1756
1756
1757
1757
str = php_stream_read_to_str (stream , len );
@@ -1830,7 +1830,7 @@ PHP_FUNCTION(fputcsv)
1830
1830
/* Make sure that there is at least one character in string */
1831
1831
if (delimiter_str_len < 1 ) {
1832
1832
zend_value_error ("delimiter must be a character" );
1833
- return ;
1833
+ RETURN_THROWS () ;
1834
1834
} else if (delimiter_str_len > 1 ) {
1835
1835
php_error_docref (NULL , E_NOTICE , "delimiter must be a single character" );
1836
1836
}
@@ -1842,7 +1842,7 @@ PHP_FUNCTION(fputcsv)
1842
1842
if (enclosure_str != NULL ) {
1843
1843
if (enclosure_str_len < 1 ) {
1844
1844
zend_value_error ("enclosure must be a character" );
1845
- return ;
1845
+ RETURN_THROWS () ;
1846
1846
} else if (enclosure_str_len > 1 ) {
1847
1847
php_error_docref (NULL , E_NOTICE , "enclosure must be a single character" );
1848
1848
}
@@ -1968,7 +1968,7 @@ PHP_FUNCTION(fgetcsv)
1968
1968
/* Make sure that there is at least one character in string */
1969
1969
if (delimiter_str_len < 1 ) {
1970
1970
zend_value_error ("delimiter must be a character" );
1971
- return ;
1971
+ RETURN_THROWS () ;
1972
1972
} else if (delimiter_str_len > 1 ) {
1973
1973
php_error_docref (NULL , E_NOTICE , "delimiter must be a single character" );
1974
1974
}
@@ -1980,7 +1980,7 @@ PHP_FUNCTION(fgetcsv)
1980
1980
if (enclosure_str != NULL ) {
1981
1981
if (enclosure_str_len < 1 ) {
1982
1982
zend_value_error ("enclosure must be a character" );
1983
- return ;
1983
+ RETURN_THROWS () ;
1984
1984
} else if (enclosure_str_len > 1 ) {
1985
1985
php_error_docref (NULL , E_NOTICE , "enclosure must be a single character" );
1986
1986
}
@@ -2005,7 +2005,7 @@ PHP_FUNCTION(fgetcsv)
2005
2005
len = zval_get_long (len_zv );
2006
2006
if (len < 0 ) {
2007
2007
zend_value_error ("Length parameter may not be negative" );
2008
- return ;
2008
+ RETURN_THROWS () ;
2009
2009
} else if (len == 0 ) {
2010
2010
len = -1 ;
2011
2011
}
0 commit comments