[thelist] PHP conditionally create a class method?

Stephen Rider evolt_org at striderweb.com
Wed Aug 27 01:37:59 CDT 2008


Sorry -- wrong error message.  The error I'm getting is this:

[27-Aug-2008 01:33:28] hello
[27-Aug-2008 01:33:28] method doesn't exist
[27-Aug-2008 01:33:28] PHP Fatal error:  Cannot redeclare myfunction()  
(previously declared in /path/to/my/script.php:17) in /path/to/my/ 
script.php on line 17

Again... if ( ! method_exists( $this, 'myfunctions' ) ) returns true,  
which should only happen if the method does _not_ already exist.  But  
then I'm getting an error that the method already exists.




More information about the thelist mailing list