php: Fix char* typecheck typemap to accept Null
The corresponding in typemap already does. Fixes #1655, reported by CJSlominski.
This commit is contained in:
parent
157465f65b
commit
b7dedecfdd
4 changed files with 25 additions and 1 deletions
14
Examples/test-suite/php/overload_polymorphic_runme.php
Normal file
14
Examples/test-suite/php/overload_polymorphic_runme.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
require "tests.php";
|
||||
require "overload_polymorphic.php";
|
||||
|
||||
$t = new Derived();
|
||||
|
||||
check::equal(overload_polymorphic::test($t), 0, "test(Derived)");
|
||||
check::equal(overload_polymorphic::test(1), 1, "test(1)");
|
||||
check::equal(overload_polymorphic::test2($t), 1, "test2(Derived)");
|
||||
check::equal(overload_polymorphic::test3($t, null, $t), 1, "test3(Derived, null, Derived)");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue