swig/Lib/php
Olly Betts 9908f9f310 [php] Fix testcase segfaults with PHP 8.0
These testcases were segfaulting:

prefix
director_using_member_scopes
virtual_poly

The fix here is admittedly a hack - we perform the initialisation
of EG(class_table) from CG(class_table) which PHP will do, but
hasn't yet.

PHP doesn't seem to clearly document which API calls are actually
valid in minit or other initialisation contexts, but the code we're
generating works with all PHP 7.x and PHP 8.x versions aside from PHP
8.0 so it seems this is a bug in PHP 8.0 rather than that we're doing
something invalid, and we need to work with existing PHP 8.0 releases
so this hack seems a necessary evil.  It will at least have a limited
life as PHP 8.0 is only in active support until 2022-11-26, with
security support ending a year later.

Fixes #2383.
2022-09-29 13:13:52 +13:00
..
argcargv.i argcargv.i cosmetic updates 2022-05-15 18:32:53 +01:00
const.i Cosmetic stray semi-colon removal after %typemap using quotes 2022-08-31 19:40:13 +01:00
director.swg [php] Fix director upcall check 2022-01-22 20:01:00 +13:00
factory.i [php] Generate PHP type declarations 2022-01-20 10:07:44 +13:00
php.swg SWIGTYPE && input typemaps now assume object has been moved 2022-08-31 19:40:14 +01:00
phpinit.swg [php] Fix testcase segfaults with PHP 8.0 2022-09-29 13:13:52 +13:00
phpinterfaces.i [php] Fix two incorrect PHP 8 conditionals 2021-12-08 13:10:38 +13:00
phpkw.swg Renames performed by %namewarn with rename= are printed in warning message 2022-02-06 13:51:37 -05:00
phppointers.i [php] Generate PHP type declarations 2022-01-20 10:07:44 +13:00
phprun.swg [php] Workaround PHP 8.2 header problem 2022-09-28 19:01:01 +13:00
std_auto_ptr.i Add missing typecheck typemaps for std::auto_ptr and std::unique_ptr 2022-09-17 10:23:51 +01:00
std_common.i php: Trim trailing whitespace from PHP typemaps 2021-03-26 10:19:57 +13:00
std_deque.i WARN_* constants are user visible, so keep existing WARN_PHP4_* for 2008-07-03 00:09:56 +00:00
std_map.i php: Trim trailing whitespace from PHP typemaps 2021-03-26 10:19:57 +13:00
std_pair.i Consistent parameter names for std::pair 2019-02-14 22:44:27 +00:00
std_string.i Cosmetic stray semi-colon removal after %typemap using quotes 2022-08-31 19:40:13 +01:00
std_unique_ptr.i Add missing typecheck typemaps for std::auto_ptr and std::unique_ptr 2022-09-17 10:23:51 +01:00
std_vector.i php: Trim trailing whitespace from PHP typemaps 2021-03-26 10:19:57 +13:00
stl.i php: Trim trailing whitespace from PHP typemaps 2021-03-26 10:19:57 +13:00
swigmove.i Provide SWIGTYPE MOVE typemaps in swigmove.i 2022-09-16 08:36:25 +01:00
typemaps.i Cosmetic stray semi-colon removal after %typemap using quotes 2022-08-31 19:40:13 +01:00
utils.i More move semantics improvements 2022-07-04 11:19:50 +01:00