Add SWIGTYPE *& typemaps for PHP
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11556 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
3675a7baf7
commit
45359dc12c
2 changed files with 33 additions and 1 deletions
14
Examples/test-suite/php/pointer_reference_runme.php
Normal file
14
Examples/test-suite/php/pointer_reference_runme.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
require "tests.php";
|
||||
require "pointer_reference.php";
|
||||
|
||||
$s = get();
|
||||
check::equal(Struct_value_get($s), 10, "pointer_reference.get failed");
|
||||
|
||||
$ss = new_Struct(20);
|
||||
set($ss);
|
||||
check::equal(Struct_value_get(Struct_instance()), 20, "pointer_reference.set failed");
|
||||
|
||||
check::done();
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue