projects
/
roojspacker
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fc1298
)
bindings/php/roojspacker.xml
author
Alan Knowles
<alan@roojs.com>
Thu, 26 May 2016 10:02:46 +0000
(18:02 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 26 May 2016 10:02:46 +0000
(18:02 +0800)
bindings/php/roojspacker.xml
patch
|
blob
|
history
diff --git
a/bindings/php/roojspacker.xml
b/bindings/php/roojspacker.xml
index
eb167a7
..
728851b
100644
(file)
--- a/
bindings/php/roojspacker.xml
+++ b/
bindings/php/roojspacker.xml
@@
-31,7
+31,13
@@
<function name="pack">
<proto>string pack(string target, string debug_target)</proto>
<code>
-gchar *buf = jsdoc_packer_pack(payload->data, target, debug_target);
+GError *err = NULL;
+gchar *buf = jsdoc_packer_pack(payload->data, target, debug_target, &err);
+if (err !=NULL) {
+ zend_throw_exception(zend_exception_get_default(TSRMLS_C), err->message, 0 TSRMLS_CC);
+ RETURN FALSE;
+}
+
RETURN_STRING(buf, 1);
</code>