iliaa Tue Oct 19 18:25:15 2004 EDT Modified files: /php-src/ext/standard file.c Log: Simplify code. http://cvs.php.net/diff.php/php-src/ext/standard/file.c?r1=1.389&r2=1.390&ty=u Index: php-src/ext/standard/file.c diff -u php-src/ext/standard/file.c:1.389 php-src/ext/standard/file.c:1.390 --- php-src/ext/standard/file.c:1.389 Wed Oct 13 19:26:29 2004 +++ php-src/ext/standard/file.c Tue Oct 19 18:25:15 2004 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: file.c,v 1.389 2004/10/13 23:26:29 iliaa Exp $ */ +/* $Id: file.c,v 1.390 2004/10/19 22:25:15 iliaa Exp $ */ /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */ @@ -2297,14 +2297,11 @@ Match filename against pattern */ PHP_FUNCTION(fnmatch) { - char *pattern = NULL; - char *filename = NULL; - int argc = ZEND_NUM_ARGS(); - int pattern_len; - int filename_len; - long flags=0; + char *pattern, *filename; + int pattern_len, filename_len; + long flags = 0; - if (zend_parse_parameters(argc TSRMLS_CC, "ss|l", + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", &pattern, &pattern_len, &filename, &filename_len, &flags)
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php