php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #60917
Patch http_requestpool_object.patch revision 2012-01-28 13:38 UTC by yos dot asakawa at gmail dot com
Patch http_requestdatashare_object.patch revision 2012-01-28 13:38 UTC by yos dot asakawa at gmail dot com
Patch http_request_object.patch revision 2012-01-28 13:37 UTC by yos dot asakawa at gmail dot com
Patch http_querystring_object.patch revision 2012-01-28 13:36 UTC by yos dot asakawa at gmail dot com
Patch http_inflatestream_object.patch revision 2012-01-28 13:35 UTC by yos dot asakawa at gmail dot com
Patch http_deflatestream_object.patch revision 2012-01-28 13:34 UTC by yos dot asakawa at gmail dot com

Patch http_requestdatashare_object.patch for PECL Bug #60917

Patch version 2012-01-28 13:38 UTC

Return to Bug #60917 | Download this patch
Patch Revisions:

Developer: yos.asakawa@gmail.com

*** http_requestdatashare_object.c.org	Sat Jan 28 22:08:51 2012
--- http_requestdatashare_object.c	Sat Jan 28 21:19:38 2012
***************
*** 126,133 ****
--- 126,137 ----
  	}
  
  	ALLOC_HASHTABLE(OBJ_PROP(o));
+ #if PHP_VERSION_ID < 50399
  	zend_hash_init(OBJ_PROP(o), zend_hash_num_elements(&ce->default_properties), NULL, ZVAL_PTR_DTOR, 0);
  	zend_hash_copy(OBJ_PROP(o), &ce->default_properties, (copy_ctor_func_t) zval_add_ref, NULL, sizeof(zval *));
+ #else
+ 	object_properties_init(OBJ_PROP(o), ce);
+ #endif
  
  	ov.handle = putObject(http_requestdatashare_object, o);
  	ov.handlers = &http_requestdatashare_object_handlers;
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 04:01:29 2024 UTC