Olly Betts
7983c83116
Fix case of expected functions and globals
...
The updated tests.php is case sensitive.
2021-05-04 15:49:30 +12:00
Olly Betts
0d028d8942
Rework tests.php
...
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.
2021-05-04 15:26:45 +12:00
Olly Betts
32283991c5
Don't generate a .php wrapper file by default
...
It's now only generated if something to put in it is specified via:
%pragma(php) include=...
or
%pragma(php) code=...
2021-05-04 14:14:56 +12:00
Olly Betts
12bcd36923
Filter less in check::functions()
...
Stop filtering /^new_/ - we no longer generate these for classes, so
only the li_carrays and li_carrays_cpp testcases generate new_* flat
functions, and it's helpful to check those are generated.
Stop filtering /_(alter|get)_newobject$/' - we no longer generate
these, as they weren't used or documented.
2021-04-17 04:14:33 +12:00
Olly Betts
b430832a08
Restore checks for flat functions in php testcases
2021-04-14 12:44:48 +12:00
Olly Betts
8cb0c185ac
Restore checks for globals in php testcases
2021-04-14 11:15:43 +12:00
Olly Betts
8ded9d8dae
Merge branch 'master' into gsoc2017-php7-classes-via-c-api
2021-03-25 17:45:17 +13:00
Olly Betts
704ec59f29
[php] Fix widespread use of bare strings in testsuite
...
These generate warnings with PHP 7.3, which will become errors in a
future version.
2021-03-25 16:17:06 +13:00
Olly Betts
e54d44c4be
php: Omit closing ?> in manual and examples
...
PSR-12 says "The closing ?> tag MUST be omitted from files containing
only PHP".
2021-03-23 11:47:19 +13:00
Olly Betts
cadd97ac4f
[php] Fix widespread use of bare strings in testsuite
...
These generate warnings with PHP 7.3, which will become errors in a
future version.
2019-02-08 15:32:30 +13:00
Nihal
05c25a71d6
Remove globals check in the php test-suite.
...
It was done mainly to check in the "flat" function structure.
Not needed since the class structure is adopted now.
2017-07-19 20:49:43 +05:30
William S Fulton
173c028dd4
Add test and changes entry for Python -builtin %array_class fix
...
Issue https://github.com/swig/swig/issues/446
2016-12-18 17:50:47 +00:00
Olly Betts
8461ba43ff
Update lists of expected function, classes, and globals to match what we get
...
with PHP5. There are no longer any warnings about these.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11771 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-12-04 03:54:24 +00:00
Olly Betts
dd96b09e68
Fix the list of classes expected.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11546 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 04:13:35 +00:00
Miklos Vajna
0249eea389
Merge https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-vmiklos/
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11434 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-22 11:08:29 +00:00
William S Fulton
bcc796f676
modify build system to use php instead of php4
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10967 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-06 21:40:54 +00:00