summaryrefslogtreecommitdiffstats
path: root/bindings/lang_php5_helpers/wrapper_source.py
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/lang_php5_helpers/wrapper_source.py')
-rw-r--r--bindings/lang_php5_helpers/wrapper_source.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/bindings/lang_php5_helpers/wrapper_source.py b/bindings/lang_php5_helpers/wrapper_source.py
index 02404f33..286d2ad7 100644
--- a/bindings/lang_php5_helpers/wrapper_source.py
+++ b/bindings/lang_php5_helpers/wrapper_source.py
@@ -119,11 +119,13 @@ PHP_MSHUTDOWN_FUNCTION(lasso)
}'''
elif vtype == 'xmlNode*':
print >> self.fd, '''\
- char* xmlString = get_string_from_xml_node(return_c_value);
- if (xmlString) {
- RETURN_STRING(xmlString, 1);
- } else {
- RETURN_NULL();
+ {
+ char* xmlString = get_string_from_xml_node(return_c_value);
+ if (xmlString) {
+ RETURN_STRING(xmlString, 1);
+ } else {
+ RETURN_NULL();
+ }
}
'''
elif vtype in ('GList*',) and options.get('elem_type') == 'char*':