tony2001 Fri Dec 9 13:53:54 2005 EDT
Modified files:
/php-src/ext/standard http_fopen_wrapper.c
Log:
MF51: fix wrong macro usage
http://cvs.php.net/diff.php/php-src/ext/standard/http_fopen_wrapper.c?r1=1.105&r2=1.106&ty=u
Index: php-src/ext/standard/http_fopen_wrapper.c
diff -u php-src/ext/standard/http_fopen_wrapper.c:1.105
php-src/ext/standard/http_fopen_wrapper.c:1.106
--- php-src/ext/standard/http_fopen_wrapper.c:1.105 Wed Dec 7 21:53:34 2005
+++ php-src/ext/standard/http_fopen_wrapper.c Fri Dec 9 13:53:54 2005
@@ -19,7 +19,7 @@
| Sara Golemon <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $Id: http_fopen_wrapper.c,v 1.105 2005/12/08 02:53:34 iliaa Exp $ */
+/* $Id: http_fopen_wrapper.c,v 1.106 2005/12/09 18:53:54 tony2001 Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -479,7 +479,7 @@
size_t tmp_line_len;
/* get response header */
- if (_php_stream_get_line(stream, tmp_line, sizeof(tmp_line) -
1, &tmp_line_len TSRMLS_CC) != NULL) {
+ if (php_stream_get_line(stream, tmp_line, sizeof(tmp_line) - 1,
&tmp_line_len) != NULL) {
zval *http_response;
int response_code;
@@ -528,7 +528,7 @@
while (!body && !php_stream_eof(stream)) {
size_t http_header_line_length;
- if (php_stream_get_line(stream, http_header_line,
HTTP_HEADER_BLOCK_SIZE, &http_header_line_length TSRMLS_CC) &&
*http_header_line != '\n' && *http_header_line != '\r') {
+ if (php_stream_get_line(stream, http_header_line,
HTTP_HEADER_BLOCK_SIZE, &http_header_line_length) && *http_header_line != '\n'
&& *http_header_line != '\r') {
char *e = http_header_line + http_header_line_length -
1;
while (*e == '\n' || *e == '\r') {
e--;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php