- fix build failure when strncmp() is a macro
authorMichael Wallner <mike@php.net>
Thu, 25 Jan 2007 14:37:16 +0000 (14:37 +0000)
committerMichael Wallner <mike@php.net>
Thu, 25 Jan 2007 14:37:16 +0000 (14:37 +0000)
http_message_api.c

index 096ee7c..9c4d58b 100644 (file)
@@ -91,7 +91,7 @@ PHP_HTTP_API http_message *_http_message_init_env(http_message *message, http_me
        memset(&inf, 0, sizeof(http_info));
        switch (inf.type = type) {
                case HTTP_MSG_REQUEST:
-                       if ((sval = http_get_server_var("SERVER_PROTOCOL", 1)) && !strncmp(Z_STRVAL_P(sval), ZEND_STRL("HTTP/"))) {
+                       if ((sval = http_get_server_var("SERVER_PROTOCOL", 1)) && !strncmp(Z_STRVAL_P(sval), "HTTP/", lenof("HTTP/")) {
                                inf.http.version = atof(Z_STRVAL_P(sval) + lenof("HTTP/"));
                        } else {
                                inf.http.version = 1.1;