summaryrefslogtreecommitdiffstats
path: root/amqp-php54.patch
diff options
context:
space:
mode:
Diffstat (limited to 'amqp-php54.patch')
-rw-r--r--amqp-php54.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/amqp-php54.patch b/amqp-php54.patch
new file mode 100644
index 0000000..322cc34
--- /dev/null
+++ b/amqp-php54.patch
@@ -0,0 +1,21 @@
+diff -up amqp-1.0.1/amqp_connection.c.php54 amqp-1.0.1/amqp_connection.c
+--- amqp-1.0.1/amqp_connection.c.php54 2012-03-10 09:08:22.807066125 +0100
++++ amqp-1.0.1/amqp_connection.c 2012-03-10 09:09:12.428067313 +0100
+@@ -512,7 +512,7 @@ PHP_METHOD(amqp_connection_class, pconne
+ 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 @@ PHP_METHOD(amqp_connection_class, pconne
+ /* 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);