php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #67528
Patch user_agent_rfc_patch revision 2014-06-26 20:03 UTC by martin at brightroll dot com

Patch user_agent_rfc_patch for pecl_http Bug #67528

Patch version 2014-06-26 20:03 UTC

Return to Bug #67528 | Download this patch
Patch Revisions:

Developer: martin@brightroll.com

diff --git a/php_http_client_curl.c b/patch.c
index 418a4c6..49bc45c 100644
--- a/php_http_client_curl.c
+++ b/patch.c
@@ -1103,7 +1103,7 @@ static void php_http_curle_options_init(php_http_options_t *registry TSRMLS_DC)
 	/* useragent */
 	if ((opt = php_http_option_register(registry, ZEND_STRL("useragent"), CURLOPT_USERAGENT, IS_STRING))) {
 		/* don't check strlen, to allow sending no useragent at all */
-		ZVAL_STRING(&opt->defval, "PECL::HTTP/" PHP_PECL_HTTP_VERSION " (PHP/" PHP_VERSION ")", 0);
+		ZVAL_STRING(&opt->defval, "PECL_HTTP/" PHP_PECL_HTTP_VERSION " (PHP/" PHP_VERSION ")", 0);
 	}
 
 	/* resume */
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 11 21:01:27 2024 UTC