note 82008 added to language.oop5.paamayim-nekudotayim

From: Date: Mon, 24 Mar 2008 14:27:21 +0000
Subject: note 82008 added to language.oop5.paamayim-nekudotayim
Groups: php.notes 
Request: Send a blank email to php-notes+get-137454@lists.php.net to get a copy of this message
Actually, for people not using PHP 5.3 yet you should try avoiding the use of a eval() at all costs! THere are too many security risks and dirty code that come from using eval. If you want to call a static method from a class then you can use call_user_func() instead which is much safer. Example: clas Foo{ public static method Bar(){ echo "Hello world!"; } } And to execute that with call_user_func you would do the following: call_user_func(array('Foo', 'bar') [, $params] ); Thanks, - Richard S. ---- Server IP: 208.69.120.35 Probable Submitter: 24.24.191.132 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.paamayim-nekudotayim.php Edit -- https://master.php.net/note/edit/82008 Del: integrated -- https://master.php.net/note/delete/82008/integrated Del: useless -- https://master.php.net/note/delete/82008/useless Del: bad code -- https://master.php.net/note/delete/82008/bad+code Del: spam -- https://master.php.net/note/delete/82008/spam Del: non-english -- https://master.php.net/note/delete/82008/non-english Del: in docs -- https://master.php.net/note/delete/82008/in+docs Del: other reasons-- https://master.php.net/note/delete/82008 Reject -- https://master.php.net/note/reject/82008 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#137454) next »