cvs: php4 /ext/standard http_fopen_wrapper.c
| From: | Andi Gutmans | Date: | Sat, 14 Jul 2001 16:41:58 +0000 |
| Subject: | cvs: php4 /ext/standard http_fopen_wrapper.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-6225@lists.php.net to get a copy of this message | ||
andi Sat Jul 14 12:41:58 2001 EDT
Modified files:
/php4/ext/standard http_fopen_wrapper.c
Log:
- Faster without calling strlen()
Index: php4/ext/standard/http_fopen_wrapper.c
diff -u php4/ext/standard/http_fopen_wrapper.c:1.11 php4/ext/standard/http_fopen_wrapper.c:1.12
--- php4/ext/standard/http_fopen_wrapper.c:1.11 Sat Jul 14 11:08:36 2001
+++ php4/ext/standard/http_fopen_wrapper.c Sat Jul 14 12:41:58 2001
@@ -17,7 +17,7 @@
| Hartmut Holzgraefe <hholzgra@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: http_fopen_wrapper.c,v 1.11 2001/07/14 15:08:36 rasmus Exp $ */
+/* $Id: http_fopen_wrapper.c,v 1.12 2001/07/14 16:41:58 andi Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -120,7 +120,7 @@
strcpy(hdr_line, "GET ");
/* tell remote http which file to get */
- if (resource->path != NULL && strlen(resource->path)) {
+ if (resource->path != NULL && *resource->path) {
strlcat(hdr_line, resource->path, sizeof(hdr_line));
} else {
strlcat(hdr_line, "/", sizeof(hdr_line));