diff options
author | foobar <sniper@php.net> | 2002-07-03 03:18:55 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2002-07-03 03:18:55 +0000 |
commit | 980d7a11a978791ba89429610dcec3e646c6919c (patch) | |
tree | f59911f17c8d3940f71334821b34297420f843c5 | |
parent | 29aae162e014848bf51e713447190dd32aaa1417 (diff) | |
download | php-git-980d7a11a978791ba89429610dcec3e646c6919c.tar.gz |
Fix the nasty crash. And Sterling..test next time before you commit?
-rw-r--r-- | ext/standard/filestat.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index a321fe89c5..bc92f9fd00 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -806,8 +806,9 @@ FileFunction(PHP_FN(filetype), FS_TYPE) PHP_FUNCTION(is_writable) { char *filename; + int filename_len; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) { return; } @@ -820,8 +821,9 @@ PHP_FUNCTION(is_writable) PHP_FUNCTION(is_readable) { char *filename; + int filename_len; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) { return; } @@ -834,8 +836,9 @@ PHP_FUNCTION(is_readable) PHP_FUNCTION(is_executable) { char *filename; + int filename_len; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) { return; } @@ -863,8 +866,9 @@ FileFunction(PHP_FN(is_link), FS_IS_LINK) PHP_FUNCTION(file_exists) { char *filename; + int filename_len; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) { return; } |