Re: AW: [PEAR-DEV] HTML_Quickform callback handling

From: Date: Tue, 23 Sep 2003 10:59:14 +0000
Subject: Re: AW: [PEAR-DEV] HTML_Quickform callback handling
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-21916@lists.php.net to get a copy of this message
Hi! Matthias Pigulla wrote:
Although call_user_func is able to handle an array(string, string) as a "static" callback, _callbackExists does not reflect this. That way, it is impossible to have QuickForm use a static callback. Why don't you just call is_callable($callback) in _callbackExists? This should do the trick...
I am ashamed to tell this, but I didn't notice the function is_callable() back when I wrote this for QuickForm. You are right, _callbackExists() should be removed and is_callable() should be used in its place.

« previous php.pear.dev (#21916) next »