summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2011-02-01 19:58:44 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2011-02-01 19:58:44 +0000
commita0b869da381a1e0a33720fdb6d299bbcc98e06d2 (patch)
tree79b34f9434b83652514522786208b844e3be2f23
parente7e542ffc9db43d5c3b87935c1dc766c0a8540ec (diff)
downloadswig-a0b869da381a1e0a33720fdb6d299bbcc98e06d2.tar.gz
Remove runtime warnings in overloading php example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12422 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r--Examples/php/overloading/runme.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/Examples/php/overloading/runme.php b/Examples/php/overloading/runme.php
index 01044445f..56d515138 100644
--- a/Examples/php/overloading/runme.php
+++ b/Examples/php/overloading/runme.php
@@ -35,11 +35,10 @@ print " Square = (" . $s->x . "," . $s->y . ")\n";
# ----- 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);