summaryrefslogtreecommitdiff
path: root/ext/standard/file.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2015-02-02 14:45:19 +0800
committerXinchen Hui <laruence@gmail.com>2015-02-02 14:45:19 +0800
commite98caf27eaed852ee3567b1994167c85b89f79e5 (patch)
treea91443579d8cc9c8c304e104a5b52c9cc89597cc /ext/standard/file.c
parent50ae5b31b4f88310f6941ee0ccc6e12b4792381e (diff)
downloadphp-git-e98caf27eaed852ee3567b1994167c85b89f79e5.tar.gz
found type is unnecessary
Diffstat (limited to 'ext/standard/file.c')
-rw-r--r--ext/standard/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c
index 49b3689c53..7c8fd1b0a5 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -1151,7 +1151,7 @@ PHPAPI PHP_FUNCTION(fgetss)
Implements a mostly ANSI compatible fscanf() */
PHP_FUNCTION(fscanf)
{
- int result, type, argc = 0;
+ int result, argc = 0;
size_t format_len;
zval *args = NULL;
zval *file_handle;
@@ -1163,7 +1163,7 @@ PHP_FUNCTION(fscanf)
return;
}
- what = zend_fetch_resource2(Z_RES_P(file_handle), "File-Handle", &type, php_file_le_stream(), php_file_le_pstream());
+ what = zend_fetch_resource2(Z_RES_P(file_handle), "File-Handle", php_file_le_stream(), php_file_le_pstream());
/* we can't do a ZEND_VERIFY_RESOURCE(what), otherwise we end up
* with a leak if we have an invalid filehandle. This needs changing