diff options
author | Andrea Faulds <ajf@ajf.me> | 2016-09-11 22:46:20 +0100 |
---|---|---|
committer | Andrea Faulds <ajf@ajf.me> | 2016-09-11 22:46:20 +0100 |
commit | fc5497cb923df43e20deff3e03d1bfa50acc0570 (patch) | |
tree | 825752e4f4a4f73a7bf3da0346f6c8ebf326eef2 /ext/standard/file.c | |
parent | c90f7f66eadb8bc5577c39b9b4d6a4fe2d60f78e (diff) | |
parent | d690014bf35507ccb7a1150a27504d2f87848842 (diff) | |
download | php-git-fc5497cb923df43e20deff3e03d1bfa50acc0570.tar.gz |
Merge branch 'PHP-7.0' into PHP-7.1
Diffstat (limited to 'ext/standard/file.c')
-rw-r--r-- | ext/standard/file.c | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c index a5fedb79cb..c75d2d3fa0 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -884,15 +884,9 @@ PHPAPI PHP_FUNCTION(fclose) zval *res; php_stream *stream; -#ifndef FAST_ZPP - if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &res) == FAILURE) { - RETURN_FALSE; - } -#else ZEND_PARSE_PARAMETERS_START(1, 1) Z_PARAM_RESOURCE(res) ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); -#endif PHP_STREAM_TO_ZVAL(stream, res); @@ -980,15 +974,9 @@ PHPAPI PHP_FUNCTION(feof) zval *res; php_stream *stream; -#ifndef FAST_ZPP - if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &res) == FAILURE) { - RETURN_FALSE; - } -#else ZEND_PARSE_PARAMETERS_START(1, 1) Z_PARAM_RESOURCE(res) ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); -#endif PHP_STREAM_TO_ZVAL(stream, res); @@ -1012,17 +1000,11 @@ PHPAPI PHP_FUNCTION(fgets) zend_string *str; php_stream *stream; -#ifndef FAST_ZPP - if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|l", &res, &len) == FAILURE) { - RETURN_FALSE; - } -#else ZEND_PARSE_PARAMETERS_START(1, 2) Z_PARAM_RESOURCE(res) Z_PARAM_OPTIONAL Z_PARAM_LONG(len) ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); -#endif PHP_STREAM_TO_ZVAL(stream, res); @@ -1184,18 +1166,12 @@ PHPAPI PHP_FUNCTION(fwrite) zend_long maxlen = 0; php_stream *stream; -#ifndef FAST_ZPP - if (zend_parse_parameters(ZEND_NUM_ARGS(), "rs|l", &res, &input, &inputlen, &maxlen) == FAILURE) { - RETURN_FALSE; - } -#else ZEND_PARSE_PARAMETERS_START(2, 3) Z_PARAM_RESOURCE(res) Z_PARAM_STRING(input, inputlen) Z_PARAM_OPTIONAL Z_PARAM_LONG(maxlen) ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); -#endif if (ZEND_NUM_ARGS() == 2) { num_bytes = inputlen; @@ -1225,15 +1201,9 @@ PHPAPI PHP_FUNCTION(fflush) int ret; php_stream *stream; -#ifndef FAST_ZPP - if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &res) == FAILURE) { - RETURN_FALSE; - } -#else ZEND_PARSE_PARAMETERS_START(1, 1) Z_PARAM_RESOURCE(res) ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); -#endif PHP_STREAM_TO_ZVAL(stream, res); @@ -1252,15 +1222,9 @@ PHPAPI PHP_FUNCTION(rewind) zval *res; php_stream *stream; -#ifndef FAST_ZPP - if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &res) == FAILURE) { - RETURN_FALSE; - } -#else ZEND_PARSE_PARAMETERS_START(1, 1) Z_PARAM_RESOURCE(res) ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); -#endif PHP_STREAM_TO_ZVAL(stream, res); @@ -1279,15 +1243,9 @@ PHPAPI PHP_FUNCTION(ftell) zend_long ret; php_stream *stream; -#ifndef FAST_ZPP - if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &res) == FAILURE) { - RETURN_FALSE; - } -#else ZEND_PARSE_PARAMETERS_START(1, 1) Z_PARAM_RESOURCE(res) ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); -#endif PHP_STREAM_TO_ZVAL(stream, res); @@ -1307,18 +1265,12 @@ PHPAPI PHP_FUNCTION(fseek) zend_long offset, whence = SEEK_SET; php_stream *stream; -#ifndef FAST_ZPP - if (zend_parse_parameters(ZEND_NUM_ARGS(), "rl|l", &res, &offset, &whence) == FAILURE) { - RETURN_FALSE; - } -#else ZEND_PARSE_PARAMETERS_START(2, 3) Z_PARAM_RESOURCE(res) Z_PARAM_LONG(offset) Z_PARAM_OPTIONAL Z_PARAM_LONG(whence) ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); -#endif PHP_STREAM_TO_ZVAL(stream, res); @@ -1802,16 +1754,10 @@ PHPAPI PHP_FUNCTION(fread) zend_long len; php_stream *stream; -#ifndef FAST_ZPP - if (zend_parse_parameters(ZEND_NUM_ARGS(), "rl", &res, &len) == FAILURE) { - RETURN_FALSE; - } -#else ZEND_PARSE_PARAMETERS_START(2, 2) Z_PARAM_RESOURCE(res) Z_PARAM_LONG(len) ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE); -#endif PHP_STREAM_TO_ZVAL(stream, res); @@ -2356,15 +2302,9 @@ PHP_FUNCTION(realpath) size_t filename_len; char resolved_path_buff[MAXPATHLEN]; -#ifndef FAST_ZPP - if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &filename, &filename_len) == FAILURE) { - return; - } -#else ZEND_PARSE_PARAMETERS_START(1, 1) Z_PARAM_PATH(filename, filename_len) ZEND_PARSE_PARAMETERS_END(); -#endif if (VCWD_REALPATH(filename, resolved_path_buff)) { if (php_check_open_basedir(resolved_path_buff)) { |