Olly Betts
9e69a2c198
Use name of PHP resource not wrapped C++ type
...
Since callback::foo_T<int> isn't a PHP resource, that error message doesn't
really make sense as it was. As discussed in #467 .
2015-09-04 12:14:21 +12:00
William S Fulton
ca64b06229
Consistent quoting in Makefile
2015-08-21 22:48:34 +01:00
Vadim Zeitlin
a4b319ce8e
Remove callback function from autodoc unit test.
...
It doesn't seem to belong there at all, there is a dedicated callback unit
test for it and it was added to the initial version of autodoc.i back in
124253d698 without any explanation, so just
remove it.
As this callback was used in a PHP test, perform this test for callback.i now
and use "%(uppercase)s" construct inside %callback to test that this works.
2015-07-19 18:14:06 +02:00
Vadim Zeitlin
08fa873638
Make callback unit test pass for PHP backend.
...
Deprecated %callback(1) doesn't work with PHP, use "%s" to give the same name
to the callback as to the C function explicitly instead.
2015-07-19 00:13:08 +02:00
Olly Betts
ecf3ab5605
Disable director_thread_runme.php
...
This fails in a ZTS build of PHP.
2015-01-15 09:32:34 +13:00
William S Fulton
eec306c228
Test suite warning fixes
2014-12-28 10:38:12 +00:00
William S Fulton
3efd3affbd
Add c++11 strongly typed enum support for PHP
2014-11-27 19:59:20 +00:00
Olly Betts
1a99212c2c
[PHP] Add support for specifying any PHP interfaces a wrapped class
...
implements, e.g.: %typemap("phpinterfaces") MyIterator "Iterator";
2014-09-12 12:48:37 -03:00
Olly Betts
e12322df86
[PHP] Fix throwing a PHP exception through C++ from a subclassed
...
director method - PHP NULL gets returned by the subclassed method
in this case, so the directorout typemap needs to allow that (at
least if an exception is active).
2014-09-11 13:09:08 -03:00
Olly Betts
0dd7b61c57
Fix segmentation faults with directors in PHP >= 5.4
2014-09-09 13:39:30 -03:00
Karl Wette
7f48b2774b
Fully clean PHP test-suite
2014-05-29 02:29:27 +02:00
William S Fulton
176c697c8b
Remove PHP director_basic runtime test until fixed.
...
See #164
2014-05-18 01:06:56 +01:00
William S Fulton
2b5499a262
Slight simplification of test-suite build for new out-of-source changes
...
Provide default SRCDIR and SCRIPTDIR variables in common.mk and override
only where needed.
2014-05-15 23:11:07 +01:00
Karl Wette
f574a34155
Allow examples and test-suite to be built out of source tree
...
- Examples/Makefile.in rules use SRCDIR as the relative source directory
- ./config.status replicates Examples/ source directory tree in build
directory, and copies each Makefile to build directory, prefixed with
a header which sets SRCDIR to source directory
- Examples/test-suite/.../Makefile.in set SRCDIR from Autoconf-set srcdir
- Examples/test-suite/errors/Makefile.in needs to filter out source
directory from SWIG error messages
- Lua: embedded interpreters are passed location of run-time test
- Python: copy run-time scripts to build directory because of 2to3
conversion; import_packages example copies __init__.py from source
directory; test-suite sets SCRIPTDIR to location of run-time tests
- Javascript: binding.gyp renamed to binding.gyp.in so that $srcdir
can be substituted with SRCDIR; removed './' from require() statements
so that NODE_PATH can be used to point Node.js to build directory
2014-05-11 23:21:10 +02:00
Karl Wette
d5b765d388
Whitespace cleanup of all Makefiles*
...
- some of the %.clean rules in the test-suite Makefiles were using a single tab
as an empty rule, dangerous! I've replaced these with the safer '@exit 0'.
2014-05-02 20:06:11 +02:00
Olly Betts
73bb909bae
[PHP] The generated __isset() method now returns true for read-only properties.
2014-05-01 14:37:58 +12:00
Olly Betts
7df6c832c3
Remove incorrect comments
2014-02-19 18:27:14 +13:00
Olly Betts
6d08992945
Add expected functions which get generated to silence testsuite warning
2014-02-19 18:26:40 +13:00
Olly Betts
d67aed42bd
Remove executable bit from various test-suite runme files
2014-01-06 15:41:06 +13:00
William S Fulton
9f95e30650
Fix PHP test-suite running examples recently broken in 0fa791d
2013-04-20 02:51:57 +01:00
Olly Betts
7196e556a5
Fix SF#3528035, a regression introduced by the fix for SF#3428833.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13105 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-23 02:58:24 +00:00
Olly Betts
de9d01dbcd
[PHP] Fix getters for template members. (SF#3428833)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13096 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-18 02:43:52 +00:00
Olly Betts
b32c70e244
Comment out use of call-time pass by reference, which has been deprecated for
...
ages, and is no longer supported by PHP 5.4.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13095 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-18 02:42:23 +00:00
Olly Betts
43b3e20d2f
Add wrapmacro_runme.php
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13065 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-11 05:58:18 +00:00
Olly Betts
fcb46fe2fa
[PHP] Fix the constant typemaps for SWIGTYPE, etc - previously
...
these used the wrong name for renamed constants. Add
autodoc_runme.php to the testsuite as a regression test for this.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13062 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-10 11:41:19 +00:00
Olly Betts
70a134872a
Remove two instances of call-time pass by reference, which has been removed in
...
PHP 5.4, and isn't needed for these tests anyway.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13060 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-10 10:37:42 +00:00
Olly Betts
748e951e7e
Add testcase virtual_vs_nonvirtual_base as a regression test for SF#3124665.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12715 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-25 05:19:48 +00:00
Olly Betts
72fc8be46c
[PHP] Fix handling of overloaded methods/functions where some
...
return void and others don't - whether this worked or not depended
on the order they were encountered in (SF#3208299).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12539 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-14 12:33:56 +00:00
Olly Betts
5d765893ed
Simplify test-suite/overload_return_type.i (checked that it still fails before
...
the fix it's a regression test for) and added _runme.php for it.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12538 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-14 11:58:58 +00:00
Olly Betts
571204c98f
Fix typo which stopped %.test convenience helper from running multitests.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12519 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-07 03:14:24 +00:00
William S Fulton
4a73d986dd
Any 'using' statements in the protected section of a class were previously ignored with dirprot mode, certainly with Java and C#. Also directors - a call to a method being defined in the base class, not overridden in a subcalss, but again overridden in a class derived from the first subclass was not being dispatched correcly to the most derived class - affecting non-scripting languages. Fix for C# is based on recent fix for D.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12419 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-01 07:02:50 +00:00
William S Fulton
640cce2c50
Fix typecheck typemaps for SWIGTYPE *const&
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12413 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-30 00:42:27 +00:00
Olly Betts
1392a6e497
[PHP] When using %throws or %catches, SWIG-generated PHP5 wrappers
...
now throw PHP Exception objects instead of giving a PHP error of
type E_ERROR.
This change shouldn't cause incompatibility issues, since you can't
set an error handler for E_ERROR, so previously PHP would just exit
which also happens for unhandled exceptions. The benefit is you can
now catch them if you want to.
Fixes SF#2545578 and SF#2955522.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12055 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-26 07:32:20 +00:00
William S Fulton
9f55943801
Fix RUNTOOL in the test-suite for php and add an example for using RUNTOOL to invoke a debugger
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12050 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-25 18:13:32 +00:00
William S Fulton
d324633cfa
Fix php limited precision test fix when dealing with large long long numbers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12030 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-14 19:47:39 +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
2c50482854
Fix testcase to conform with actual expected behaviour.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11770 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-12-03 14:12:42 +00:00
Olly Betts
d277354167
Add long long and unsigned long long const reference typemaps.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11767 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-12-03 05:21:48 +00:00
Miklos Vajna
3c604b402d
PHP: remove unneeded ctor from the director_extend testcase
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11633 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-18 13:47:27 +00:00
Miklos Vajna
82df087b8b
PHP: remove '// Sample test file' comments from runme files
...
Those are cut&pasted from skel.php, but that comment makes sense only in
skel.php itself.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11598 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-16 22:23:32 +00:00
Olly Betts
5118c399f0
Fix valuewrapper_base_runme.php for PHP5. Still fails though.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11580 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-15 07:39:56 +00:00
Olly Betts
719df6b10a
Fix pointer_reference_runme.php for PHP5 - now passes.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11579 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-15 06:08:28 +00:00
William S Fulton
45359dc12c
Add SWIGTYPE *& typemaps for PHP
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11556 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 01:14:49 +00:00
Olly Betts
1f55c29eee
Zap extra blank line after ?> which appears in testsuite output
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11554 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 00:15:23 +00:00
William S Fulton
cc43f20f6d
PHP fix const char\*\& typemaps and add in char_strings runtime test based on Java version
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11552 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 23:31:19 +00:00
William S Fulton
42d7f3bb10
add php typecheck typemaps for const reference for primitives
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11551 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 22:39:20 +00:00
William S Fulton
627d9faffd
Add PHP const ref typemaps for primitive types
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11549 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 21:41:23 +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
Olly Betts
d3809285a4
Change class names in test code which clash with PHP reserved words
...
(Interface, Class, and Function - these are case insensitive reserved
words in PHP).
Fix lists of expected methods in rename_scope_runme.php to match those
which we expect with PHP5. With this and the change above, this testcase
now passes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11545 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 03:58:09 +00:00
Olly Betts
54018f66a2
Correct the human-readable messages in 3 assertions.
...
Remove meaningless comment.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11544 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 03:35:48 +00:00