Re: [Demexp-dev] Vote function

2008-02-25 Par sujet David MENTRE
Hello, 2008/2/25, Diogene Laerce <[EMAIL PROTECTED]>: > [david] > > [1] I would consider a serious design issue with PHP and this library. > > What do you mean by that ? I mean that even if the programmer makes a mistake (e.g. forget to properly encode an xmlrpcval) when calling an API, the AP

Re: [Demexp-dev] Vote function

2008-02-25 Par sujet Diogene Laerce
Hello David > > vote(cookie_t, question_id_t, vote_choice_t) ?? > > > > Any explanation ? > > Yes. If you give a wrongly encoded value to "new xmlrpcmsg()", it > *silently* skips the value without doing any warning. Thus the missing > argment[1]. > By the way, you should use the method call setD

Re: [Demexp-dev] Vote function

2008-02-24 Par sujet David MENTRE
Hello Diogene, Diogene Laerce <[EMAIL PROTECTED]> writes: > But the debug answers that vote function takes 4 arguments ?? where the > demexp doc says : > > vote(cookie_t, question_id_t, vote_choice_t) ?? > > Any explanation ? Yes. If you give a wrongly encoded value to "new xmlrpcmsg()", it *si

Re: [Demexp-dev] Vote function

2008-02-22 Par sujet David MENTRE
Hello Diogene, 2008/2/22, Diogene Laerce <[EMAIL PROTECTED]>: > But the debug answers that vote function takes 4 arguments ?? where the > demexp doc says : > > vote(cookie_t, question_id_t, vote_choice_t) ?? > > Any explanation ? Strange indeed. I've checked: the XML RPC proxy takes only thre

[Demexp-dev] Vote function

2008-02-22 Par sujet Diogene Laerce
Hello Ive got the following code : ___ $server = new xmlrpc_client($servAdrss); $cookie_dm = $HTTP_COOKIE_VARS["root"];//$userid"]; $server->setDebug(1); $cookie = new xmlrpcval($cookie_dm, "int"); $question_id_t = new xmlrpcval($q