- get rid of 1001 strict-aliasing warnings
[m6w6/ext-http] / http_message_object.c
index c0f5bf006118626abe6577acf8a6b97bf8f46565..3d2e72714ba5e818b1426691c9fa984af69194e3 100644 (file)
@@ -1139,7 +1139,7 @@ PHP_METHOD(HttpMessage, getParentMessage)
                if (obj->message->parent) {
                        RETVAL_OBJVAL(obj->parent, 1);
                } else {
-                       http_error(HE_WARNING, HTTP_E_MESSAGE, "HttpMessage does not have a parent message");
+                       http_error(HE_WARNING, HTTP_E_RUNTIME, "HttpMessage does not have a parent message");
                }
        }
        SET_EH_NORMAL();