Fix to work with PHP5 wrappers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12048 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
744bfd6118
commit
ae8ac072da
1 changed files with 3 additions and 3 deletions
|
|
@ -10,9 +10,9 @@ include("example.php");
|
|||
|
||||
print "Creating some objects:\n";
|
||||
$c = new Circle(10);
|
||||
print " Created circle $c\n";
|
||||
print " Created circle \$c\n";
|
||||
$s = new Square(10);
|
||||
print " Created square $s\n";
|
||||
print " Created square \$s\n";
|
||||
|
||||
# ----- Access a static member -----
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ print " Square = (" . $s->x . "," . $s->y . ")\n";
|
|||
|
||||
print "\nHere are some properties of the shapes:\n";
|
||||
foreach (array(1, 2.1, "quick brown fox", $c, $s) as $o) {
|
||||
print " ".get_class($o)." $o\n";
|
||||
print " ".get_class($o)." \$o\n";
|
||||
print " overloaded = " . overloaded($o) . "\n";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue