diff options
author | Olly Betts <olly@survex.com> | 2022-06-12 10:12:02 +1200 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2022-06-14 16:00:46 +1200 |
commit | 9cdf46e8c8c45bc6d1035fefa7639194e73a075a (patch) | |
tree | 04da6497bcf937395fc87ae75028075af3630f45 /Examples/Makefile.in | |
parent | b41fede82715b216a97be825c87dd08dc92ef98e (diff) | |
download | swig-9cdf46e8c8c45bc6d1035fefa7639194e73a075a.tar.gz |
[php] Adjust #required params for subclass methods
If the same method name is implemented in a parent class then the
subclass can't have more required parameters than that or else we
get a compatibility error when the module is loaded.
The testsuite wasn't catching this problem because it was no longer
trying to load the modules for testcases without _runme.php, because
the mechanism to do that relied on there being a generated .php
wrapper, which we no longer have by default. Fix that to provide a
regression test for this fix.
See #2151
Diffstat (limited to 'Examples/Makefile.in')
-rw-r--r-- | Examples/Makefile.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Examples/Makefile.in b/Examples/Makefile.in index d7b9a5bcf..532152e80 100644 --- a/Examples/Makefile.in +++ b/Examples/Makefile.in @@ -1071,7 +1071,7 @@ 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);});include($$argv[1]);' $(PHP_SCRIPT) $(RUNPIPE) + $(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) # ----------------------------------------------------------------- # Version display |