diff options
author | Jason Greene <jason@php.net> | 2001-05-11 19:55:44 +0000 |
---|---|---|
committer | Jason Greene <jason@php.net> | 2001-05-11 19:55:44 +0000 |
commit | c115a755441c392661c03b94f760d4d43dcd96c3 (patch) | |
tree | 6075f6cf86ed53175410da3b3c04d79cfad4d883 /ext/standard/php_filestat.h | |
parent | c081e6f417c9e4c6abde7bab2e0bf51346919a69 (diff) | |
download | php-git-c115a755441c392661c03b94f760d4d43dcd96c3.tar.gz |
Rewrote stat() and fstat() to be memory efficient, due to a recent
thread on php-dev.
Note: I added a macro that might have use in other instances, but for now
is included in php_filestat.h
Diffstat (limited to 'ext/standard/php_filestat.h')
-rw-r--r-- | ext/standard/php_filestat.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/standard/php_filestat.h b/ext/standard/php_filestat.h index 8566599d7d..fc78fb4dfe 100644 --- a/ext/standard/php_filestat.h +++ b/ext/standard/php_filestat.h @@ -50,4 +50,9 @@ PHP_FUNCTION(chmod); PHP_FUNCTION(touch); PHP_FUNCTION(clearstatcache); +#define MAKE_LONG_ZVAL_INCREF(name, val)\ + MAKE_STD_ZVAL(name); \ + ZVAL_LONG(name,val); \ + name->refcount++; + #endif /* PHP_FILESTAT_H */ |