diff options
author | Olly Betts <olly@survex.com> | 2021-04-04 18:56:28 +1200 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2021-04-04 18:58:24 +1200 |
commit | a0174ea7fe4727eb03ccdffa8c57a82c5e0f9096 (patch) | |
tree | 16f4dcc9398009110f57a574ff8020435b10c6aa /Source | |
parent | 40da8bcbb652c1ad1e390ed4e08aac1463ab17cc (diff) | |
download | swig-a0174ea7fe4727eb03ccdffa8c57a82c5e0f9096.tar.gz |
php: Fix testcase li_boost_shared_ptr_bits
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Modules/php.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx index bc804cfc9..4880c9c2f 100644 --- a/Source/Modules/php.cxx +++ b/Source/Modules/php.cxx @@ -1833,7 +1833,10 @@ public: Printf(s_oinit, " SWIGTYPE_%s_ce->create_object = %s_object_new;\n", class_name, class_name); Printf(s_oinit, " memcpy(&%s_object_handlers,zend_get_std_object_handlers(), sizeof(zend_object_handlers));\n", class_name); Printf(s_oinit, " %s_object_handlers.clone_obj = NULL;\n", class_name); + // If not defined we aren't wrapping this type being passed or returned. + Printf(s_oinit, "#ifdef SWIGTYPE_p%s\n", SwigType_manglestr(Getattr(n, "classtypeobj"))); Printf(s_oinit, " SWIG_TypeClientData(SWIGTYPE_p%s,SWIGTYPE_%s_ce);\n", SwigType_manglestr(Getattr(n, "classtypeobj")), class_name); + Printf(s_oinit, "#endif\n"); Printf(s_oinit, "}\n\n"); classnode = n; |