Re: svn: /php/php-src/ branches/PHP_5_3/NEWS branches/PHP_5_3/ext/standard/file.c branches/PHP_5_3/ext/standard/file.h
branches/PHP_5_3/ext/standard/ftp_fopen_wrapper.c branches/PHP_5_3/ext/standard/http_fopen_wrapper.c
branches/PHP_5_3/ext/standard/tests/http/bug53198.phpt trunk/ext/standard/file.c trunk/ext/standard/file.h trunk/ext/standard/ftp_fopen_wrapper.c
trunk/ext/standard/http_fopen_wrapper.c trunk/ext/standard/tests/http/bug53198.phpt
| From: | Johannes Schlüter | Date: | Thu, 18 Nov 2010 11:39:25 +0000 |
| Subject: | Re: svn: /php/php-src/ branches/PHP_5_3/NEWS branches/PHP_5_3/ext/standard/file.c branches/PHP_5_3/ext/standard/file.h branches/PHP_5_3/ext/standard/ftp_fopen_wrapper.c branches/PHP_5_3/ext/standard/http_fopen_wrapper.c branches/PHP_5_3/ext/standard/tests/http/bug53198.phpt trunk/ext/standard/file.c trunk/ext/standard/file.h trunk/ext/standard/ftp_fopen_wrapper.c trunk/ext/standard/http_fopen_wrapper.c trunk/ext/standard/tests/http/bug53198.phpt |
||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-63893@lists.php.net to get a copy of this message | ||
Hi
On Fri, 2010-10-29 at 15:29 +0000, Gustavo André dos Santos Lopes wrote:
>
> Modified: php/php-src/branches/PHP_5_3/ext/standard/file.h
> ===================================================================
> --- php/php-src/branches/PHP_5_3/ext/standard/file.h 2010-10-29
> 15:02:39 UTC (rev 304984)
> +++ php/php-src/branches/PHP_5_3/ext/standard/file.h 2010-10-29
> 15:29:15 UTC (rev 304985)
> @@ -118,7 +118,8 @@
> size_t def_chunk_size;
> long auto_detect_line_endings;
> long default_socket_timeout;
> - char *user_agent;
> + char *user_agent; /* for the http wrapper */
> + char *from_address; /* for the ftp and http wrappers */
> char *user_stream_current_filename; /* for simple recursion
> protection */
> php_stream_context *default_context;
> HashTable *stream_wrappers; /* per-request
> copy of url_stream_wrappers_hash */
php_file_globals are used from different extensions via the FG() macro:
http://lxr.php.net/search?q=&project=XDEBUG&project=PECL&project=PHP-GTK&project=PHP_5_3&defs=&refs=FG&path=&hist=
Adding elements to the end might be acceptable (while not preferred)
adding elements in between causes trouble for extensions.
johannes