Commit Graph

13 Commits

Author SHA1 Message Date
William S Fulton 54ac29eb01 Update php tests for additionally generated classes/functions 2026-07-11 01:45:15 +01:00
Jim Easterbrook 2a5b60da84 [Python] Fix handling of "default" typemap
Fix handling of "default" typemap applied to method which takes a
single argument when "-builtin" option is used.

Fixes #2786
Closes #2790
Closes #3241
Closes #3243

Co-authored by @ojwb who also suggested it in discussion of #2790.
2025-08-13 18:49:38 +01:00
Olly Betts d80ce85819 Handle arbitrary expressions as a subscript
We don't actually need to parse expressions in this context so we can
just skip to the matching closing square bracket.
2024-09-30 09:25:00 +13:00
Olly Betts 0f7278ea92 Fix PHP testsuite warning 2024-09-26 11:12:40 +12:00
Olly Betts 9f685e03f0 Add regression test for old bug fix
We don't seem to have anything in the testsuite which exercises this
case.

There's some special handling of casts applied to string literals in the
parser which was committed as part of the fix for this, but removing it
doesn't seem to cause anything to fail (not even this testcase which
it reportedly fixed), and a wide character version seems to work without
any equivalent special handling.  Maybe other things have changed since
which fixed this case without needing special cast handling.  Deserves
further investigation.
2024-09-21 09:04:27 +12:00
Olly Betts 9873ff107a Remove remaining traces of PHP7 support
The bulk of this was already removed in
e3b112c69c.
2023-04-20 13:45:30 +12:00
Olly Betts e3b112c69c Remove support for PHP7
PHP7 security support ended 2022-11-28 so it doesn't make sense to
include support for it in the SWIG 4.2.x release series.
2023-04-14 17:38:01 +12:00
Olly Betts adc2fa9664 Fix default_args_runme.php for 32-bit platforms
On 32-bit platforms -2147483648 is a PHP float (rather than PHP int on
64-bit platforms) so only check equivalence rather than strict equality.

Fixes #2360
2022-09-14 11:30:28 +12:00
Olly Betts 29354ed19d Update comment in PHP testcase
The PHP7 workaround we currently use has evolved a bit since this
comment was written.
2022-07-11 13:20:25 +12:00
Olly Betts b41fede827 [php] Fix default_args_runme.php for PHP7.0 2022-06-12 15:27:49 +12:00
Olly Betts cdcb8cc9ee [php] Try again to fix default_args_runme.php for PHP7 2022-06-12 15:02:26 +12:00
Olly Betts 3a84a4dd96 [php] Fix new default_args_runme.php for PHP < 7.3 2022-06-12 10:20:13 +12:00
Olly Betts c95df57976 [php] Fix missing parameter type declarations
In some cases of overloaded functions the parameter type information was
missing for some or all parameters.

See #2151
2022-06-12 09:22:27 +12:00