note 40536 added to function.call-user-method

From: Date: Sat, 06 Mar 2004 23:24:39 +0000
Subject: note 40536 added to function.call-user-method
Groups: php.notes 
Request: Send a blank email to php-notes+get-66367@lists.php.net to get a copy of this message
note that if the called method returns null, call_user_method fails. class toto{ function titi(){ ... $return = null; ... return $return; } } ... $tutu = new toto(); if(!@$return = call_user_method('titi', 'toto')){ echo "failed"; }else{ echo $return; } outputs "failed". ---- Manual Page -- http://www.php.net/manual/en/function.call-user-method.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40536 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40536&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40536&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#66367) next »