cvs: pecl /http http.c http_message_object.c php_http.h php_http_message_object.h

From: Date: Tue, 12 Apr 2005 15:36:00 +0000
Subject: cvs: pecl /http http.c http_message_object.c php_http.h php_http_message_object.h
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-2979@lists.php.net to get a copy of this message
mike Tue Apr 12 11:36:00 2005 EDT Modified files: /pecl/http http.c http_message_object.c php_http.h php_http_message_object.h Log: - even better use a object struct member for that crap http://cvs.php.net/diff.php/pecl/http/http.c?r1=1.63&r2=1.64&ty=u Index: pecl/http/http.c diff -u pecl/http/http.c:1.63 pecl/http/http.c:1.64 --- pecl/http/http.c:1.63 Tue Apr 12 11:28:44 2005 +++ pecl/http/http.c Tue Apr 12 11:35:59 2005 @@ -13,7 +13,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: http.c,v 1.63 2005/04/12 15:28:44 mike Exp $ */ +/* $Id: http.c,v 1.64 2005/04/12 15:35:59 mike Exp $ */ #ifdef HAVE_CONFIG_H @@ -283,8 +283,6 @@ phpstr_dtor(&HTTP_G(curlbuf)); #endif - zval_dtor(&HTTP_G(message_object_tmp_property)); - return SUCCESS; } /* }}} */ http://cvs.php.net/diff.php/pecl/http/http_message_object.c?r1=1.2&r2=1.3&ty=u Index: pecl/http/http_message_object.c diff -u pecl/http/http_message_object.c:1.2 pecl/http/http_message_object.c:1.3 --- pecl/http/http_message_object.c:1.2 Tue Apr 12 11:28:44 2005 +++ pecl/http/http_message_object.c Tue Apr 12 11:35:59 2005 @@ -13,7 +13,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: http_message_object.c,v 1.2 2005/04/12 15:28:44 mike Exp $ */ +/* $Id: http_message_object.c,v 1.3 2005/04/12 15:35:59 mike Exp $ */ #ifdef HAVE_CONFIG_H @@ -28,8 +28,6 @@ #ifdef ZEND_ENGINE_2 -ZEND_EXTERN_MODULE_GLOBALS(http); - #define http_message_object_declare_default_properties() _http_message_object_declare_default_properties(TSRMLS_C) static inline void _http_message_object_declare_default_properties(TSRMLS_D); #define http_message_object_read_prop _http_message_object_read_prop @@ -105,6 +103,7 @@ if (o->message) { http_message_free(o->message); } + zval_dtor(&o->_tmp_property); efree(o); } @@ -112,7 +111,7 @@ { getObjectEx(http_message_object, obj, object); http_message *msg = obj->message; - zval *return_value = &HTTP_G(message_object_tmp_property); + zval *return_value = &obj->_tmp_property; if (!EG(scope) || !instanceof_function(EG(scope), obj->zo.ce TSRMLS_CC)) { zend_error(E_WARNING, "Cannot access protected property %s::$%s", obj->zo.ce->name, Z_STRVAL_P(member)); http://cvs.php.net/diff.php/pecl/http/php_http.h?r1=1.42&r2=1.43&ty=u Index: pecl/http/php_http.h diff -u pecl/http/php_http.h:1.42 pecl/http/php_http.h:1.43 --- pecl/http/php_http.h:1.42 Tue Apr 12 11:28:44 2005 +++ pecl/http/php_http.h Tue Apr 12 11:35:59 2005 @@ -13,7 +13,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_http.h,v 1.42 2005/04/12 15:28:44 mike Exp $ */ +/* $Id: php_http.h,v 1.43 2005/04/12 15:35:59 mike Exp $ */ #ifndef PHP_EXT_HTTP_H #define PHP_EXT_HTTP_H @@ -47,7 +47,6 @@ char curlerr[CURL_ERROR_SIZE + 1]; # endif zend_llist to_free; - zval message_object_tmp_property; #endif /* HTTP_HAVE_CURL */ ZEND_END_MODULE_GLOBALS(http) http://cvs.php.net/diff.php/pecl/http/php_http_message_object.h?r1=1.2&r2=1.3&ty=u Index: pecl/http/php_http_message_object.h diff -u pecl/http/php_http_message_object.h:1.2 pecl/http/php_http_message_object.h:1.3 --- pecl/http/php_http_message_object.h:1.2 Tue Apr 12 11:28:44 2005 +++ pecl/http/php_http_message_object.h Tue Apr 12 11:36:00 2005 @@ -13,7 +13,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_http_message_object.h,v 1.2 2005/04/12 15:28:44 mike Exp $ */ +/* $Id: php_http_message_object.h,v 1.3 2005/04/12 15:36:00 mike Exp $ */ #ifndef PHP_HTTP_MESSAGE_OBJECT_H #define PHP_HTTP_MESSAGE_OBJECT_H @@ -24,6 +24,7 @@ typedef struct { zend_object zo; http_message *message; + zval _tmp_property; } http_message_object; extern zend_class_entry *http_message_object_ce;

« previous php.pecl.cvs (#2979) next »