projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
dc6645f
)
facilitate zend_exception_set_previous() of PHP 5.3
author
Michael Wallner
<mike@php.net>
Wed, 30 Dec 2009 12:31:03 +0000
(12:31 +0000)
committer
Michael Wallner
<mike@php.net>
Wed, 30 Dec 2009 12:31:03 +0000
(12:31 +0000)
http_api.c
patch
|
blob
|
history
diff --git
a/http_api.c
b/http_api.c
index 04247fa310d771ac16a9fc99e810671ff1f7db56..00461d9d7e49050e8212769e0667548eaa6f2486 100644
(file)
--- a/
http_api.c
+++ b/
http_api.c
@@
-180,7
+180,10
@@
zval *_http_exception_wrap(zval *old_exception, zval *new_exception, zend_class_
copy_bt_args(old_exception, new_exception TSRMLS_CC);
copy_bt_args(old_exception, sub_exception TSRMLS_CC);
}
-
+#if PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 3
+ Z_ADDREF_P(old_exception);
+ zend_exception_set_previous(new_exception, old_exception);
+#endif
zval_ptr_dtor(&old_exception);
return new_exception;
}