[PHP] Pick a default dtor which can't collide
This commit is contained in:
parent
76a98b0b1a
commit
da1dd2ffd2
2 changed files with 2 additions and 2 deletions
|
|
@ -165,7 +165,7 @@ static void SwigPHP_emit_resource_registrations() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!rsrc_dtor_name) {
|
if (!rsrc_dtor_name) {
|
||||||
rsrc_dtor_name = NewString("_wrap_default_rsrc_destroy");
|
rsrc_dtor_name = NewString("_swig_default_rsrc_destroy");
|
||||||
if (!emitted_default_dtor) {
|
if (!emitted_default_dtor) {
|
||||||
// Write out custom destructor function
|
// Write out custom destructor function
|
||||||
Printf(s_wrappers, "static ZEND_RSRC_DTOR_FUNC(%s) {\n", rsrc_dtor_name);
|
Printf(s_wrappers, "static ZEND_RSRC_DTOR_FUNC(%s) {\n", rsrc_dtor_name);
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@ static void SwigPHP_emit_resource_registrations() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!rsrc_dtor_name) {
|
if (!rsrc_dtor_name) {
|
||||||
rsrc_dtor_name = NewString("_wrap_default_rsrc_destroy");
|
rsrc_dtor_name = NewString("_swig_default_rsrc_destroy");
|
||||||
if (!emitted_default_dtor) {
|
if (!emitted_default_dtor) {
|
||||||
// Write out custom destructor function
|
// Write out custom destructor function
|
||||||
Printf(s_wrappers, "static ZEND_RSRC_DTOR_FUNC(%s) {\n", rsrc_dtor_name);
|
Printf(s_wrappers, "static ZEND_RSRC_DTOR_FUNC(%s) {\n", rsrc_dtor_name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue