summaryrefslogtreecommitdiff
path: root/ext/standard/php_fopen_wrappers.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2017-12-14 22:46:22 +0300
committerDmitry Stogov <dmitry@zend.com>2017-12-14 22:46:22 +0300
commit0f06df310c879e3506409277831c4cba7d4d9af7 (patch)
treeb671614a3bdeaf315fa1f69bbbc76fa7e2ab3477 /ext/standard/php_fopen_wrappers.h
parent83e495e0fdc0c59b449bd173d0c8df1999239634 (diff)
downloadphp-git-0f06df310c879e3506409277831c4cba7d4d9af7.tar.gz
Turn "php_stream_wrapper"s into constants
Keep non-constant "php_stream_wrapper"s in API functions and callbacks for compatibility.
Diffstat (limited to 'ext/standard/php_fopen_wrappers.h')
-rw-r--r--ext/standard/php_fopen_wrappers.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/php_fopen_wrappers.h b/ext/standard/php_fopen_wrappers.h
index b5a538184f..189496faee 100644
--- a/ext/standard/php_fopen_wrappers.h
+++ b/ext/standard/php_fopen_wrappers.h
@@ -25,9 +25,9 @@
php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
php_stream *php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, zend_string **opened_path, php_stream_context *context STREAMS_DC);
-extern PHPAPI php_stream_wrapper php_stream_http_wrapper;
-extern PHPAPI php_stream_wrapper php_stream_ftp_wrapper;
-extern PHPAPI php_stream_wrapper php_stream_php_wrapper;
-extern PHPAPI php_stream_wrapper php_plain_files_wrapper;
+extern PHPAPI const php_stream_wrapper php_stream_http_wrapper;
+extern PHPAPI const php_stream_wrapper php_stream_ftp_wrapper;
+extern PHPAPI const php_stream_wrapper php_stream_php_wrapper;
+extern PHPAPI const php_stream_wrapper php_plain_files_wrapper;
#endif