Skip to content

Instantly share code, notes, and snippets.

@matason
Created May 6, 2015 04:29
Show Gist options
  • Save matason/52f268b3bff05bc2c630 to your computer and use it in GitHub Desktop.
Save matason/52f268b3bff05bc2c630 to your computer and use it in GitHub Desktop.
zend_object_store_get_object to Z_OBJ_P
diff --git a/php_stomp.c b/php_stomp.c
index 5e6f1e7..d9537b2 100755
--- a/php_stomp.c
+++ b/php_stomp.c
@@ -32,9 +32,10 @@
#include "ext/standard/php_smart_string.h"
#define FETCH_STOMP_OBJECT \
- i_obj = (stomp_object_t *) zend_object_store_get_object(stomp_object TSRMLS_CC); \
+ stomp_object_t *i_obj; \
+ i_obj = (stomp_object_t *)Z_OBJ_P(stomp_object); \
if (!(stomp = i_obj->stomp)) { \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment