From 351f3f4798d8b51c461489c2e716f7ba7ed855d1 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Thu, 22 Sep 2011 23:14:38 +0200 Subject: [PATCH] Handle NULL values in php5-swig. --- php5-swig/xml-template.swig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/php5-swig/xml-template.swig b/php5-swig/xml-template.swig index fa9e7aa..8a915ff 100644 --- a/php5-swig/xml-template.swig +++ b/php5-swig/xml-template.swig @@ -58,6 +58,8 @@ Directive* convert_php_objects_to_directive(zval *obj) char *str = Z_STRVAL_P(obj); return new Replace(str); } + case IS_NULL: + return NULL; default: printf("WARNING: Unknown type %d!\n", Z_TYPE_P(obj)); break; -- 2.39.2