diff options
author | Sara Golemon <pollita@php.net> | 2004-01-28 22:21:54 +0000 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2004-01-28 22:21:54 +0000 |
commit | 6d10371ec642cbb42d61b9ee82448128c89cdf63 (patch) | |
tree | 2bd640225274195a8753b1a6818b363d8c0e3667 /main/php_streams.h | |
parent | e691cbd4ee3d6a86e20ca93b1365996af7f23f62 (diff) | |
download | php-git-6d10371ec642cbb42d61b9ee82448128c89cdf63.tar.gz |
'Bug Fix': scandir, being a new function in PHP5 should have always been wrapper aware.
Diffstat (limited to 'main/php_streams.h')
-rwxr-xr-x | main/php_streams.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/main/php_streams.h b/main/php_streams.h index 2fcb1c413d..47ed1181e3 100755 --- a/main/php_streams.h +++ b/main/php_streams.h @@ -325,6 +325,13 @@ PHPAPI php_stream_dirent *_php_stream_readdir(php_stream *dirstream, php_stream_ #define php_stream_closedir(dirstream) php_stream_close((dirstream)) #define php_stream_rewinddir(dirstream) php_stream_rewind((dirstream)) +PHPAPI int php_stream_dirent_alphasort(const php_stream_dirent **a, const php_stream_dirent **b); +PHPAPI int php_stream_dirent_alphasortr(const php_stream_dirent **a, const php_stream_dirent **b); + +PHPAPI int _php_stream_scandir(char *dirname, php_stream_dirent **namelist[], int flags, php_stream_context *context, + int (*compare) (const php_stream_dirent **a, const php_stream_dirent **b) TSRMLS_DC); +#define php_stream_scandir(dirname, namelist, context, compare) _php_stream_scandir((dirname), (namelist), 0, (context), (compare) TSRMLS_CC) + PHPAPI int _php_stream_set_option(php_stream *stream, int option, int value, void *ptrparam TSRMLS_DC); #define php_stream_set_option(stream, option, value, ptrvalue) _php_stream_set_option((stream), (option), (value), (ptrvalue) TSRMLS_CC) |