> Hi Piotrek, > > 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. > > Cheers, > Alex. >
Hey Alex, 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. Thanks again, Greetings, Piotrek -- Components mailing list [email protected] http://lists.ez.no/mailman/listinfo/components
