From: Derick Rethans Date: Mon, 4 Jul 2011 17:02:17 +0000 (+0100) Subject: Apparently this is needed for GCC to not optimise it out... X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=803c1a9f839d438988667001e09116011242d2d0;p=web%2Fkonrad%2Ftwig.git Apparently this is needed for GCC to not optimise it out... --- 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; }