php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch patch_amqp_connection_php5.4.patch for amqp Bug #61510

Patch version 2012-05-16 14:21 UTC

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

Developer: jabi@irontec.com

+++ amqp_connection.c	2012-05-16 16:01:35.085681710 +0200
@@ -512,7 +512,7 @@
 	amqp_connection_object *connection;
 	char *key;
 	int key_len;
-    list_entry *le, new_le;
+    zend_rsrc_list_entry *le, new_le;
 
 	/* Try to pull amqp object out of method params */
 	if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &id, amqp_connection_class_entry) == FAILURE) {
@@ -545,7 +545,7 @@
 	/* Store a reference in the persistence list */
     new_le.ptr = connection->connection_resource;
     new_le.type = le_amqp_connection_resource;
-    zend_hash_add(&EG(persistent_list), key, key_len + 1, &new_le, sizeof(list_entry), NULL);
+    zend_hash_add(&EG(persistent_list), key, key_len + 1, &new_le, sizeof(zend_rsrc_list_entry), NULL);
 	
 	/* Cleanup our key */
 	efree(key);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 17:01:28 2024 UTC