Skip to content

Commit

Permalink
Remove runtime warnings in overloading php example
Browse files Browse the repository at this point in the history
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12422 626c5289-ae23-0410-ae9c-e8d60b6d4f22
  • Loading branch information
wsfulton committed Feb 1, 2011
1 parent e7e542f commit a0b869d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Examples/php/overloading/runme.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@

# ----- Call some methods -----

print "\nHere are some properties of the shapes:\n";
print "\nCall some overloaded methods:\n";
foreach (array(1, 2.1, "quick brown fox", $c, $s) as $o) {
print " ".get_class($o)." \$o\n";
print " overloaded = " . overloaded($o) . "\n";
}
print " overloaded = " . overloaded($o) . "\n";
}

# Need to unset($o) or else we hang on to a reference to the Square object.
unset($o);
Expand Down

0 comments on commit a0b869d

Please sign in to comment.