[PHP] Re: PHP5 Static functions called through __call() that don't exist... yet

2007-05-19 Thread Emil Ivanov
Hi, I also think this a good proposal, but you might consider writing to the internals group, as this group is only for discussions and most of the people that read it are PHP users and have no idea how the language is made (including me). Regards, Emil Ivanov Jared Farrish [EMAIL PROTECTED]

[PHP] Re: PHP5 Static functions called through __call() that don't exist... yet

2007-05-19 Thread Greg Beaver
Jared Farrish wrote: Hi all, I am building an assertType object using static functions. What I want to keep away from is the following: code public static function assertString($para){ return $answer; }; public static function assertBool($para){ return $answer; }; ... public

[PHP] Re: PHP5 Static functions called through __call() that don't exist... yet

2007-05-18 Thread Jared Farrish
Hi all, Here is more code, with a test case included. What I would prefer to do is call TypeAssist::$string(), instead of TypeAssist::$a-string(). Or at least __construct() the $a object. code ?php if (!class_exists('TypeAssert')) { class TypeAssert { public static $a; public