[PHP7] Fix segfault on module unload
Register internal 'swig_runtime_data_type_pointer' constant as "CONST_PERSISTENT" to avoid segmentation fault on module unload. Fixes https://github.com/swig/swig/issues/859 reported by Timotheus Pokorra - thanks also to Javier Torres for a minimal reproducer.
This commit is contained in:
parent
0aac18b2a1
commit
26a01e1b83
3 changed files with 8 additions and 2 deletions
|
|
@ -7,6 +7,12 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
|
|||
Version 3.0.11 (29 Dec 2016)
|
||||
============================
|
||||
|
||||
2016-12-30: olly
|
||||
[PHP7] Register internal 'swig_runtime_data_type_pointer' constant
|
||||
as "CONST_PERSISTENT" to avoid segmentation fault on module unload.
|
||||
Fixes https://github.com/swig/swig/issues/859 reported by Timotheus
|
||||
Pokorra - thanks also to Javier Torres for a minimal reproducer.
|
||||
|
||||
2016-12-24: wsfulton
|
||||
[C#] Add %feature("csdirectordelegatemodifiers") to enable customization
|
||||
of the delegate access modifiers generated in director classes.
|
||||
|
|
|
|||
|
|
@ -235,5 +235,5 @@ static swig_module_info *SWIG_Php_GetModule() {
|
|||
}
|
||||
|
||||
static void SWIG_Php_SetModule(swig_module_info *pointer) {
|
||||
REGISTER_MAIN_LONG_CONSTANT(const_name, (long) pointer, 0);
|
||||
REGISTER_MAIN_LONG_CONSTANT(const_name, (long) pointer, CONST_PERSISTENT | CONST_CS);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -276,5 +276,5 @@ static swig_module_info *SWIG_Php_GetModule() {
|
|||
|
||||
static void SWIG_Php_SetModule(swig_module_info *pointer) {
|
||||
TSRMLS_FETCH();
|
||||
REGISTER_MAIN_LONG_CONSTANT(const_name, (long) pointer, 0);
|
||||
REGISTER_MAIN_LONG_CONSTANT(const_name, (long) pointer, CONST_PERSISTENT | CONST_CS);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue