swig/Lib/php
Olly Betts 17a294cec4 Replace remaining PHP errors with PHP exceptions
`SWIG_ErrorCode()`, `SWIG_ErrorMsg()`, `SWIG_FAIL()` and `goto thrown;`
are no longer supported (these are really all internal implementation
details and none are documented aside from brief mentions in CHANGES
for the first three).  I wasn't able to find any uses at least in FOSS
code via code search tools.

If you are using these:

Use `SWIG_PHP_Error(code,msg);` instead of `SWIG_ErrorCode(code);
SWIG_ErrorMsg(msg);` (which will throw a PHP exception in SWIG >= 4.1
and do the same as the individual calls in older SWIG).

`SWIG_FAIL();` and `goto thrown;` can typically be replaced with
`SWIG_fail;`.  This will probably also work with older SWIG, but
please test with your wrappers if this is important to you.

Fixes #2014
2021-05-26 09:39:43 +12:00
..
const.i Fix uses of uninitialised zval 2021-05-05 11:55:07 +12:00
director.swg Replace remaining PHP errors with PHP exceptions 2021-05-26 09:39:43 +12:00
factory.i Eliminate $needNewFlow from factory.i 2021-04-21 16:32:56 +12:00
php.swg Replace remaining PHP errors with PHP exceptions 2021-05-26 09:39:43 +12:00
phpinit.swg Fix segfault in exception class creation 2021-05-04 13:12:15 +12:00
phpinterfaces.i Map known PHP interfaces to zend_class_entry* 2021-05-25 16:28:44 +12:00
phpkw.swg [php] Fix reserved class names TRUE, FALSE, NULL 2021-05-12 16:45:42 +12:00
phppointers.i php: Throw exceptions instead of using errors 2021-05-25 16:42:12 +12:00
phprun.swg Replace remaining PHP errors with PHP exceptions 2021-05-26 09:39:43 +12: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 Make PHP directors work more like other languages 2021-04-22 14:40:21 +12: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
typemaps.i Replace remaining PHP errors with PHP exceptions 2021-05-26 09:39:43 +12:00
utils.i Make PHP directors work more like other languages 2021-04-22 14:40:21 +12:00