From c1442a39c69a0e27eaf47165e53c801672390acc Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Sat, 24 Sep 2011 00:06:53 +0200 Subject: [PATCH] In php5-swig, handle NULLs as empty strings instead of crashing on them in substitute. --- php5-swig/xml-template.swig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php5-swig/xml-template.swig b/php5-swig/xml-template.swig index d70e223..e39053c 100644 --- a/php5-swig/xml-template.swig +++ b/php5-swig/xml-template.swig @@ -79,7 +79,7 @@ Directive* convert_php_objects_to_directive(zval *obj) return new ReplaceInclude(xmlCopyDoc((*doc)->ptr, 1)); } case IS_NULL: - return NULL; + return new Replace { "" }; default: printf("WARNING: Unknown type %d!\n", Z_TYPE_P(obj)); break; -- 2.39.2