[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
This commit is contained in:
parent
6182919511
commit
fcb46fe2fa
3 changed files with 16 additions and 5 deletions
9
Examples/test-suite/php/autodoc_runme.php
Normal file
9
Examples/test-suite/php/autodoc_runme.php
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
require "tests.php";
|
||||
require "autodoc.php";
|
||||
// In 2.0.6 and earlier, the constant was misnamed.
|
||||
if (gettype(autodoc::FUNC_CB_CALLBACK) !== 'resource') die("autodoc::FUNC_CB_CALLBACK not a resource\n");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue