From 803c1a9f839d438988667001e09116011242d2d0 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Mon, 4 Jul 2011 18:02:17 +0100 Subject: [PATCH] Apparently this is needed for GCC to not optimise it out... --- twig.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/twig.c b/twig.c index 74ed67e..d2cc1ea 100644 --- 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; } -- 1.7.2.5