cvs: php4 /ext/standard filestat.c

From: Date: Wed, 03 Jul 2002 03:18:55 +0000
Subject: cvs: php4 /ext/standard filestat.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-12679@lists.php.net to get a copy of this message
sniper Tue Jul 2 23:18:55 2002 EDT Modified files: /php4/ext/standard filestat.c Log: Fix the nasty crash. And Sterling..test next time before you commit? Index: php4/ext/standard/filestat.c diff -u php4/ext/standard/filestat.c:1.95 php4/ext/standard/filestat.c:1.96 --- php4/ext/standard/filestat.c:1.95 Tue Jul 2 17:02:34 2002 +++ php4/ext/standard/filestat.c Tue Jul 2 23:18:55 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: filestat.c,v 1.95 2002/07/02 21:02:34 sterling Exp $ */ +/* $Id: filestat.c,v 1.96 2002/07/03 03:18:55 sniper Exp $ */ #include "php.h" #include "safe_mode.h" @@ -806,8 +806,9 @@ 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_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_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 @@ 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; }

« previous php.cvs (#12679) next »