cvs: php4 /ext/standard filestat.c

From: Date: Sat, 06 Oct 2001 18:55:09 +0000
Subject: cvs: php4 /ext/standard filestat.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-7704@lists.php.net to get a copy of this message
sterling Sat Oct 6 14:55:09 2001 EDT Modified files: /php4/ext/standard filestat.c Log: avoid TSRMLS_FETCH() Index: php4/ext/standard/filestat.c diff -u php4/ext/standard/filestat.c:1.83 php4/ext/standard/filestat.c:1.84 --- php4/ext/standard/filestat.c:1.83 Sat Oct 6 14:52:37 2001 +++ php4/ext/standard/filestat.c Sat Oct 6 14:55:09 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: filestat.c,v 1.83 2001/10/06 18:52:37 sterling Exp $ */ +/* $Id: filestat.c,v 1.84 2001/10/06 18:55:09 sterling Exp $ */ #include "php.h" #include "safe_mode.h" @@ -554,7 +554,7 @@ /* {{{ php_stat */ -static void php_stat(const char *filename, php_stat_len filename_length, int type, pval *return_value) +static void php_stat(const char *filename, php_stat_len filename_length, int type, pval *return_value TSRMLS_DC) { zval *stat_dev, *stat_ino, *stat_mode, *stat_nlink, *stat_uid, *stat_gid, *stat_rdev, *stat_size, *stat_atime, *stat_mtime, *stat_ctime, *stat_blksize, *stat_blocks; @@ -562,7 +562,6 @@ int rmask=S_IROTH, wmask=S_IWOTH, xmask=S_IXOTH; /* access rights defaults to other */ char *stat_sb_names[13]={"dev", "ino", "mode", "nlink", "uid", "gid", "rdev", "size", "atime", "mtime", "ctime", "blksize", "blocks"}; - TSRMLS_FETCH(); stat_sb = &BG(sb); @@ -736,6 +735,7 @@ zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_nlink, sizeof(zval *), NULL); zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_uid, sizeof(zval *), NULL); zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_gid, sizeof(zval *), NULL); + zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_rdev, sizeof(zval *), NULL); zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_size, sizeof(zval *), NULL); zend_hash_next_index_insert(HASH_OF(return_value), (void *)&stat_atime, sizeof(zval *), NULL); @@ -774,7 +774,7 @@ WRONG_PARAM_COUNT; \ } \ convert_to_string_ex(filename); \ - php_stat(Z_STRVAL_PP(filename), (php_stat_len) Z_STRLEN_PP(filename), funcnum, return_value); \ + php_stat(Z_STRVAL_PP(filename), (php_stat_len) Z_STRLEN_PP(filename), funcnum, return_value TSRMLS_CC); \ } /* {{{ proto int fileperms(string filename)

« previous php.cvs (#7704) next »