X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=php5-swig%2Fxml-template.swig;h=e39053c0e1f8a7a958c83023f79cb79f51cf1b13;hb=c1442a39c69a0e27eaf47165e53c801672390acc;hp=d70e223fec9d1355d7727247876bedf630105374;hpb=c106bd8b8b015aa433ff94a1c6ef63d82dfb4440;p=xml-template 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;