]> git.sesse.net Git - xml-template/commitdiff
Handle NULL values in php5-swig.
authorsgunderson@bigfoot.com <>
Thu, 22 Sep 2011 21:14:38 +0000 (23:14 +0200)
committersgunderson@bigfoot.com <>
Thu, 22 Sep 2011 21:14:38 +0000 (23:14 +0200)
php5-swig/xml-template.swig

index fa9e7aa81d4bf0fbb6ee4b358c885549657025f7..8a915ff4b8a7922459c813aaf2ff59fffb92982c 100644 (file)
@@ -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;