Skip to content

Commit

Permalink
Fix the nasty crash. And Sterling..test next time before you commit?
Browse files Browse the repository at this point in the history
  • Loading branch information
foobar committed Jul 3, 2002
1 parent 29aae16 commit 980d7a1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions ext/standard/filestat.c
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 980d7a1

Please sign in to comment.