From a0b869da381a1e0a33720fdb6d299bbcc98e06d2 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 1 Feb 2011 19:58:44 +0000 Subject: [PATCH] Remove runtime warnings in overloading php example git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12422 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/php/overloading/runme.php | 7 +++---- 1 file 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);