| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Testcase director_overload2 is failing, but the rest of the testsuite
passes.
|
|
|
|
|
|
|
|
| |
Reportedly the code we were using in the directorin case gave segfaults
in PHP 7.2 and later - we've been unable to reproduce these, but the new
approach is also simpler and should be bit faster too.
Fixes #1527, #1975
|
|
|
|
|
|
| |
The corresponding in typemap already does.
Fixes #1655, reported by CJSlominski.
|
| |
|
|
|
|
| |
Also provide consistent copy constructor declarations.
|
|
|
|
|
|
|
| |
Tests for std::vector of pointers added which check
std::vector<T*>::const_reference and std::vector<T*>::reference
usage which gave compilation errors in Python and Perl which had
specialized these vectors incorrectly.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Mostly in STL copy constructors.
Best to have parameter names as they make their way into the wrappers in
some target languages.
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
* 'master' of git+ssh://github.com/swig/swig:
[Python] Fix some errors in the documentation for -threads
Fixed typo in Perl5 docs.
Update PHP testsuite for vadz's new cars
[php] Whitespace improvements in generated C/C++ code
Fix hardcoded _v in PHP typecheck typemaps
|
| | |
|
| |
| |
| |
| |
| | |
This should be $1, which ends up substituted with _v so this does
not actually affect behaviour.
|
|/
|
|
|
| |
Same file now for all languages except R which is still missing std_map.i.
Recent Java changes adding in std_set.i removed.
|
|
|
|
|
|
| |
This code is no longer needed since
ebd37155a81fd0c9504522e43cbdaf38312a132c addressed this more
generically.
|
| |
|
|
|
|
|
|
| |
Fix access to already released memory during PHP module shutdown, which
often didn't cause visible problems, but could result in segmentation
faults, bus errors, etc. Fixes #1170, reported by Jitka Plesníková.
|
| |
|
|
|
|
| |
The code we were generating no longer compiled.
|
| |
|
|
|
|
| |
[php] Make Keywords which are functions reserved functions
|
| |
|
|
|
|
|
|
|
|
| |
PHP5 is no longer actively supported by the PHP developers and security
support for it ends completely at the end of 2018, so it doesn't make
sense to include support for it in the upcoming SWIG 4.0.0 release.
See #701.
|
|
|
|
|
|
| |
The affected typemap is %typemap(in) SWIGTYPE *DISOWN, where the
error message was referring to $&1_descriptor but the descriptor
actually used by the typemap is $1_descriptor.
|
|
|
|
| |
Also fix Go wrapping of member const function pointers.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Should give a clearer error if PHP7 bindings are compiled against
PHP5 or vice versa.
|
| |
|
|
|
|
|
|
|
|
| |
Leave PHP5 wrapping them as integers as this change could cause
incompatibilities.
Fixes issue https://github.com/swig/swig/issues/686 noted by Nishant
Gupta.
|
|
|
|
|
|
| |
PHP5's C extension API has changed substantially so you need to use
-php7 to specify you want PHP7 compatible wrappers.
Fixes https://github.com/swig/swig/issues/571
|
|
|
|
| |
Fix for clang compile error as the address of an array will never be NULL.
|
| |
|
|
|
|
|
|
|
|
|
| |
The existing typemap was just broken - it correctly created the resource
and then did nothing with it, and instead tried to register the member
pointer as a normal pointer, which is never going to work as it's larger
than a normal pointer.
Add cpp_basic_runme.php as a regression test for this.
|
|
|
|
|
| |
It's not been used in any version of SWIG in the repository, isn't
documented, and I can find no trace of user code using it.
|
|
|
|
|
|
| |
by value.
Closes #434
|
|
|
|
|
|
|
| |
Use ZEND_FE_END (introduced sometime around 5.2) to obtain the correct
number of arguments for zend_function_entry. Fallback to the original
3 argument initializer if not defined, however, this will not fix the
initializer warning though for some older versions of PHP.
|
|
|
|
| |
Memory was only initialized in C and not C++ - potential bug?
|
|
|
|
|
| |
Move -DSWIG_DIRECTOR_STATIC handling there, so this is now supported for
all languages with director support, not just Python and PHP.
|
| |
|
| |
|
|
|
|
|
|
| |
director method - PHP NULL gets returned by the subclassed method
in this case, so the directorout typemap needs to allow that (at
least if an exception is active).
|
| |
|
| |
|
|
|
|
| |
-pedantic -Wreturn-type
|
| |
|
|
|
|
|
| |
with a ZTS-enabled build of PHP. Reported by Pierre Labastie in
github PR#155.
|
|
|
|
|
|
|
|
|
| |
and newer (and some missing ones from 5.3). Reserved PHP constants
names are now checked against enum values and constants, instead
of against function and method names. Built-in PHP function names
no longer match methods added by %extend. Functions and methods
named '__sleep', '__wakeup', 'not', 'parent', or 'virtual' are no
longer needlessly renamed.
|
| |
|
| |
|
| |
|
| |
|