summaryrefslogtreecommitdiff
path: root/main/streams/cast.c
diff options
context:
space:
mode:
authorGustavo André dos Santos Lopes <cataphract@php.net>2010-11-05 18:53:48 +0000
committerGustavo André dos Santos Lopes <cataphract@php.net>2010-11-05 18:53:48 +0000
commitd37e1ea243ed78e9e925420080b8c8777399c95d (patch)
treee8b6a057cb4dadc2ff02928221013007908a2c42 /main/streams/cast.c
parent6bc20667c7bbea2c2040038031bda0bb7cfd2f4a (diff)
downloadphp-git-d37e1ea243ed78e9e925420080b8c8777399c95d.tar.gz
- Renamed php_stream_rep_nonstand_mode to
php_stream_mode_sanitize_fdopen_fopencookie, made it not exported and movied it from php_streams.h to php_streams_int.h.
Diffstat (limited to 'main/streams/cast.c')
-rw-r--r--main/streams/cast.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/streams/cast.c b/main/streams/cast.c
index 89bfa0ab46..d3be31b22e 100644
--- a/main/streams/cast.c
+++ b/main/streams/cast.c
@@ -144,9 +144,9 @@ static COOKIE_IO_FUNCTIONS_T stream_cookie_functions =
#endif
/* }}} */
-/* {{{ php_stream_rep_nonstand_mode
+/* {{{ php_stream_mode_sanitize_fdopen_fopencookie
* Result should have at least size 5, e.g. to write wbx+\0 */
-PHPAPI void php_stream_rep_nonstand_mode(php_stream *stream, char *result)
+void php_stream_mode_sanitize_fdopen_fopencookie(php_stream *stream, char *result)
{
/* replace modes not supported by fdopen and fopencookie, but supported
* by PHP's fread(), so that their calls won't fail */
@@ -233,7 +233,7 @@ PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show
{
char fixed_mode[5];
- php_stream_rep_nonstand_mode(stream, fixed_mode);
+ php_stream_mode_sanitize_fdopen_fopencookie(stream, fixed_mode);
*(FILE**)ret = fopencookie(stream, fixed_mode, PHP_STREAM_COOKIE_FUNCTIONS);
}