| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
The updated tests.php is case sensitive.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Previously this relied on getting all known classes/functions/etc
when it was loaded, and then again after the PHP module being
tested was loaded. This approach no longer works now we've
stopped loading modules using dl(), so use ReflectionExtension
instead to get information about a specific extension.
This is likely also faster than wading through lists including
everything predefined by PHP.
|
| |
|
|
|
|
| |
Since PHP 8.0 these now give an error.
|
|
|
|
|
|
|
|
|
|
| |
It's now only generated if something to put in it is specified via:
%pragma(php) include=...
or
%pragma(php) code=...
|
|
|
|
|
| |
We can't safely lookup the Exception class entry at MINIT time, but we
can just use zend_ce_exception instead, which will be a bit faster too.
|
|
|
|
|
|
|
| |
This has been in the code for a really long time, and doesn't seem
to be required now. It's not documented by PHP as something we
need to do, and the value seems to always be NULL at this point
already.
|
|
|
|
|
| |
This works for PHP >= 7.2 and is the recommended method now as it
avoids having to specify a filename which varies between platforms.
|
| |
|
|
|
|
|
|
|
|
| |
With modern PHP it only works with the CLI version of PHP, so it's
better to direct users to load the extension via "extension=" in
php.ini.
Suggested by ferdynator in #1529.
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
These were officially deprecated in 2001, and attempts to use them have
resulted in a warning (including a pointer to what to update them to)
for most if not all of that time.
Fixes #1984
|
| |
| |
| |
| |
| |
| | |
Contributed by Tony Reix
Closes #1922
|
| |
| |
| |
| |
| |
| | |
when returning by const pointer reference
Closes #1987
|
| | |
|
| |
| |
| |
| | |
v8 headers use std::remove_cv_t
|
| | |
|
| |
| |
| |
| | |
node-gyp 8 is now installed by default, but doesn't work with older Javascript versions
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
C++11 testing was not being turned off when the
C++ compiler check for C++11 features failed and
'configure --enable-cpp11-testing' was used
|
| |
| |
| |
| |
| |
| | |
Use sizeof variable name rather than variable type.
Workaround Visual C++ unable to parse some complex C++11 types, such as
sizeof(short (Funcs::*)(bool) const &&)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Remove replacement code added in by autoupdate.
Go with recommendation to unconditionally include C headers
(which we have been doing all along).
Minimum autoconf version can be restored back to what it was.
We do need AC_PROG_EGREP - used by AC_EGREP_CPP
|
| |
| |
| |
| |
| |
| |
| |
| | |
We don't use TIME_WITH_SYS_TIME
Don't check for sys/time.h twice
Minimum version was 2.52 before upgrade, no need to enforce 2.71
Set it to 2.60 (same as main swig configure.ac) - new macros
introduced by autoupdate are in 2.60.
|
| |
| |
| |
| | |
Updated using autoupdate from autoconf 2.71
|
| |
| |
| |
| | |
Updated using autoupdate from autoconf 2.71
|
| |
| |
| |
| | |
warning: array subscript has type ‘char’ [-Wchar-subscripts]
|
| | |
|
| |
| |
| |
| |
| | |
Test cccl c++11 code
Upgrade cccl-1.0 to cccl-1.2 for -std command line option support
|
| |
| |
| |
| |
| |
| |
| | |
Previously if the compiler was detected to support c++11,
-std=c++11 was set preventing c++17 code from being properly tested.
Now c++14 and c++17 support is looked for and the -std flag is
appropriately set to the compiler's maximum supported version.
|
| |
| |
| |
| |
| |
| |
| | |
Without inventing a SWIG/PHP-specific mechanism, we can't really
finalise objects in the way the testcase expects, so adjust the
testcase minimally so we avoid triggering C++ undefined behaviour
(use-after-free).
|
| | |
|
| |
| |
| |
| |
| | |
If has_destructor isn't set then the default zend_object_std_dtor
does everything necessary.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
A PHP exception now gets translated to a C++ exception to skips over C++
code to get back to PHP, avoiding the need to gate every directorout
typemap on EG(exception).
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
It's just a local variable, so no need to carefully name it after
the class.
|
| | |
|
| |
| |
| |
| | |
The parameter is a general pointer, not necessarily a zval.
|
| | |
|
| |
| |
| |
| |
| | |
$needNewFlow is now only used for a different hack in a directorout
typemap.
|
| |
| |
| |
| | |
We shouldn't be freeing the property name here.
|
| | |
|
| |
| |
| |
| |
| |
| | |
$needNewFlow in an output typemap is now only relevant when wrapping
to a PHP __construct method, and there the return type is known so
factory.i isn't useful.
|