Apparently this is needed for GCC to not optimise it out...
authorDerick Rethans <github@derickrethans.nl>
Mon, 4 Jul 2011 17:02:17 +0000 (18:02 +0100)
committerDerick Rethans <github@derickrethans.nl>
Mon, 4 Jul 2011 17:02:17 +0000 (18:02 +0100)
twig.c

diff --git a/twig.c b/twig.c
index 74ed67e..d2cc1ea 100644 (file)
--- a/twig.c
+++ b/twig.c
@@ -524,7 +524,7 @@ PHP_FUNCTION(twig_template_get_attributes)
                }
 */
 
-       if (!Z_TYPE_P(object) == IS_OBJECT) {
+       if (Z_TYPE_P(object) != IS_OBJECT) {
                if (isDefinedTest) {
                        RETURN_FALSE;
                }