From 0f06df310c879e3506409277831c4cba7d4d9af7 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 14 Dec 2017 22:46:22 +0300 Subject: Turn "php_stream_wrapper"s into constants Keep non-constant "php_stream_wrapper"s in API functions and callbacks for compatibility. --- ext/standard/php_fopen_wrappers.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/standard/php_fopen_wrappers.h') 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 -- cgit v1.2.1