mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-31 22:31:52 +00:00
PHP7 adapt: fix V8JsScriptException getters
This commit is contained in:
parent
e995708d6d
commit
fd32ec0fa9
@ -107,15 +107,13 @@ void v8js_throw_script_exception(v8::TryCatch *try_catch TSRMLS_DC) /* {{{ */
|
|||||||
#define V8JS_EXCEPTION_METHOD(property) \
|
#define V8JS_EXCEPTION_METHOD(property) \
|
||||||
static PHP_METHOD(V8JsScriptException, get##property) \
|
static PHP_METHOD(V8JsScriptException, get##property) \
|
||||||
{ \
|
{ \
|
||||||
zval *value; \
|
zval *value, rv; \
|
||||||
\
|
\
|
||||||
if (zend_parse_parameters_none() == FAILURE) { \
|
if (zend_parse_parameters_none() == FAILURE) { \
|
||||||
return; \
|
return; \
|
||||||
} \
|
} \
|
||||||
zend_read_property(php_ce_v8js_script_exception, getThis(), #property, sizeof(#property) - 1, 0, value TSRMLS_CC); \
|
value = zend_read_property(php_ce_v8js_script_exception, getThis(), #property, sizeof(#property) - 1, 0, &rv TSRMLS_CC); \
|
||||||
*return_value = *value; \
|
RETURN_ZVAL(value, 1, 0); \
|
||||||
zval_copy_ctor(return_value); \
|
|
||||||
/* ?? INIT_PZVAL(return_value); */ \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* {{{ proto string V8JsEScriptxception::getJsFileName()
|
/* {{{ proto string V8JsEScriptxception::getJsFileName()
|
||||||
|
Loading…
Reference in New Issue
Block a user