Skip to content

Commit c5e2e02

Browse files
author
Ilia Alshanetsky
committed
Simplify code.
1 parent 2559c94 commit c5e2e02

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

ext/standard/file.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2297,14 +2297,11 @@ php_meta_tags_token php_next_meta_token(php_meta_tags_data *md TSRMLS_DC)
22972297
Match filename against pattern */
22982298
PHP_FUNCTION(fnmatch)
22992299
{
2300-
char *pattern = NULL;
2301-
char *filename = NULL;
2302-
int argc = ZEND_NUM_ARGS();
2303-
int pattern_len;
2304-
int filename_len;
2305-
long flags=0;
2300+
char *pattern, *filename;
2301+
int pattern_len, filename_len;
2302+
long flags = 0;
23062303

2307-
if (zend_parse_parameters(argc TSRMLS_CC, "ss|l",
2304+
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l",
23082305
&pattern, &pattern_len,
23092306
&filename, &filename_len,
23102307
&flags)

0 commit comments

Comments
 (0)