diff options
author | Olly Betts <olly@survex.com> | 2022-10-18 10:28:17 +1300 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2022-10-18 10:28:17 +1300 |
commit | 747a6a264f56711c7b725cf883ef623e01b65922 (patch) | |
tree | 91ab34ec9f7e5cc9e07015ae6fc3158833357b38 /Examples/Makefile.in | |
parent | d8a028601247e96c15bbaac08100cce0401f186e (diff) | |
download | swig-747a6a264f56711c7b725cf883ef623e01b65922.tar.gz |
[php] Fix handling of multi-module cases
Look up unknown base classes using SWIG_MangledTypeQueryModule().
Revert to using SWIG_TypeCheck() instead of SWIG_TypeCheckStruct()
as the latter doesn't seem to work for this case (at least for PHP
right now).
Add mod_runme.php as a regression test for this.
Adjust the PHP test harness not to set up reflection for the module
unless it's actually needed for a testcase. Currently the approach
to find the module name doesn't work for multi-module testcases.
See #2126
Diffstat (limited to 'Examples/Makefile.in')
-rw-r--r-- | Examples/Makefile.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Examples/Makefile.in b/Examples/Makefile.in index e28e48149..46193348d 100644 --- a/Examples/Makefile.in +++ b/Examples/Makefile.in @@ -1215,6 +1215,9 @@ php_cpp: $(SRCDIR_SRCS) php_run: $(RUNTOOL) $(PHP) -n -d extension_dir=. -d extension=$(PHP_EXTENSION) -d display_errors=stderr -r 'set_error_handler(function($$n,$$s,$$f,$$l){if($$f!==Null){print$$f;if($$l!==Null)print":$$l";print": ";}print"$$s\n";exit(1);});if(strlen($$argv[1]))include($$argv[1]);' '$(PHP_SCRIPT)' $(RUNPIPE) +php_run_multi: + $(RUNTOOL) $(PHP) -n -d extension_dir=. `while read e ; do echo ' -d extension=$(TARGETPREFIX)'"$$e"'@PHP_SO@' ; done < $(PHP_EXTENSION_LIST)` -d display_errors=stderr -r 'set_error_handler(function($$n,$$s,$$f,$$l){if($$f!==Null){print$$f;if($$l!==Null)print":$$l";print": ";}print"$$s\n";exit(1);});if(strlen($$argv[1]))include($$argv[1]);' '$(PHP_SCRIPT)' $(RUNPIPE) + # ----------------------------------------------------------------- # Version display # ----------------------------------------------------------------- |