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:
Olly Betts 2010-05-25 06:25:28 +00:00
commit ae8ac072da

View file

@ -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";
}