ZEND_MALIAS(HttpMessage, __toString, toString, HTTP_ARGS(HttpMessage, toString), ZEND_ACC_PUBLIC)
HTTP_MESSAGE_ME(fromString, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
- {NULL, NULL, NULL}
+
+ EMPTY_FUNCTION_ENTRY
};
static zend_object_handlers http_message_object_handlers;
{
zend_class_entry *ce = http_message_object_ce;
+#ifndef WONKY
DCL_CONST(long, "NONE", HTTP_MSG_NONE);
DCL_CONST(long, "REQUEST", HTTP_MSG_REQUEST);
DCL_CONST(long, "RESPONSE", HTTP_MSG_RESPONSE);
+#endif
DCL_PROP(PROTECTED, long, type, HTTP_MSG_NONE);
DCL_PROP(PROTECTED, string, body, "");
fprintf(stderr, "Read HttpMessage::$%s\n", Z_STRVAL_P(member));
#endif
if (!EG(scope) || !instanceof_function(EG(scope), obj->zo.ce TSRMLS_CC)) {
- zend_error(HE_WARNING, "Cannot access protected property %s::$%s", obj->zo.ce->name, Z_STRVAL_P(member));
+ zend_error(E_WARNING, "Cannot access protected property %s::$%s", obj->zo.ce->name, Z_STRVAL_P(member));
return EG(uninitialized_zval_ptr);
}
fprintf(stderr, "Write HttpMessage::$%s\n", Z_STRVAL_P(member));
#endif
if (!EG(scope) || !instanceof_function(EG(scope), obj->zo.ce TSRMLS_CC)) {
- zend_error(HE_WARNING, "Cannot access protected property %s::$%s", obj->zo.ce->name, Z_STRVAL_P(member));
+ zend_error(E_WARNING, "Cannot access protected property %s::$%s", obj->zo.ce->name, Z_STRVAL_P(member));
}
switch (zend_get_hash_value(Z_STRVAL_P(member), Z_STRLEN_P(member) + 1))