On Wed, 12 Dec 2007, Piotrek Karas wrote: > > After PHP 5.2.3 you can specify a callback function as > > 'eZHumanCAPTCHATools::encryptToken', but on older versions you must use > > array( 'eZHumanCAPTCHATools', 'encryptToken' ), otherwise you get the > > warning you got. > > > > See http://php.net/manual/en/language.pseudo-types.php and > > http://www.php.net/manual/en/function.call-user-func.php for information > > about the callback type in PHP. > > > > Hope this helps. > > Thank you for the tip - it's crystal clear now, it must be the versions. > I've gone through manual before posting this, but since I didn't notice > this version detail, I thought both ways were correct. Haven't used > call-user-func before.
I filed a documentation bug for this: http://bugs.php.net/bug.php?id=43581 regards, -- Derick Rethans eZ components Product Manager eZ systems | http://ez.no -- Components mailing list [email protected] http://lists.ez.no/mailman/listinfo/components
