fix typo
authorMichael Wallner <mike@php.net>
Sun, 18 Jan 2015 10:48:18 +0000 (11:48 +0100)
committerMichael Wallner <mike@php.net>
Sun, 18 Jan 2015 10:48:18 +0000 (11:48 +0100)
php_http_message.c

index fdfc3d640594d85e7c454ffdba1af8ac676e957d..0c5b1b9736f49c2388423d4ced29a7ccd5b379ba 100644 (file)
@@ -1017,7 +1017,7 @@ static PHP_METHOD(HttpMessage, __construct)
                msg = php_http_message_parse(NULL, zs_msg->val, zs_msg->len, greedy);
 
                if (!msg && !EG(exception)) {
-                       php_http_throw(bad_message, "Could not parse message: %.*s", MIN(25, zs_msg->len), zs_msg->len);
+                       php_http_throw(bad_message, "Could not parse message: %.*s", MIN(25, zs_msg->len), zs_msg->val);
                }
                zend_string_release(zs_msg);
        }