Created
May 6, 2015 04:29
-
-
Save matason/52f268b3bff05bc2c630 to your computer and use it in GitHub Desktop.
zend_object_store_get_object to Z_OBJ_P
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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