Re: cvs: pear /PECL/spplus php_spplus.c
| From: | Andrey Hristov | Date: | Fri, 08 Nov 2002 20:01:17 +0000 |
| Subject: | Re: cvs: pear /PECL/spplus php_spplus.c | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-7327@lists.php.net to get a copy of this message | ||
Nicolas,
I think it would be nice if you add aliases to these functions. After that I
think that
developers will find it good to use the new names. IMHO there are so much
functions
in the php that are not consistent to the new way of naming but that's the
legacy.
Sooner these aliases exist the better (imho).
Regards,
Andrey
----- Original Message -----
From: <nicos@php.net>
To: "Andrey Hristov" <andrey@webgate.bg>
Sent: Friday, November 08, 2002 10:38 PM
Subject: Re: [PEAR-CVS] cvs: pear /PECL/spplus php_spplus.c
> Well this extension was already used by like 850 websites. This is for
> french only and I really can't ask them to change their code and update
> their function names...
>
> At least thats what I think... Or may be FALIAS?
>
> Thanks for your comment.
>
> --
>
> M.CHAILLAN Nicolas
> nicos@php.net
> www.WorldAKT.com Hebergement de sites internets.
>
> "Andrey Hristov" <andrey@webgate.bg> a ecrit dans le message de news:
> 00ec01c2875d$9b58edc0$1601a8c0@andreywin...
> > Shouldn't these functions have some prefix like :
> > spp :
> > spp_calcul_hmac
> > spp_nthmac
> > and so on.... like the extensions not in the PECL.
> >
> >
> > Regards
> > Andrey Hristov
> > ----- Original Message -----
> > From: "CHAILLAN Nicolas" <nicos@worldakt.com>
> > To: <pear-cvs@lists.php.net>
> > Sent: Friday, November 08, 2002 9:03 PM
> > Subject: [PEAR-CVS] cvs: pear /PECL/spplus php_spplus.c
> >
> >
> > > nicos Fri Nov 8 14:03:09 2002 EDT
> > >
> > > Modified files:
> > > /pear/PECL/spplus php_spplus.c
> > > Log:
> > > Fixing protos, removing comments unneeded and WRONG_PARAM_COUNT
> > >
> > >
> > > Index: pear/PECL/spplus/php_spplus.c
> > > diff -u pear/PECL/spplus/php_spplus.c:1.3
> > pear/PECL/spplus/php_spplus.c:1.4
> > > --- pear/PECL/spplus/php_spplus.c:1.3 Fri Nov 8 09:37:06 2002
> > > +++ pear/PECL/spplus/php_spplus.c Fri Nov 8 14:03:09 2002
> > > @@ -15,7 +15,7 @@
> > > | Author: CHAILLAN Nicolas <nicos@php.net>
> > |
> > >
> > +----------------------------------------------------------------------+
> > >
> > > - $Id: php_spplus.c,v 1.3 2002/11/08 14:37:06 nicos Exp $
> > > + $Id: php_spplus.c,v 1.4 2002/11/08 19:03:09 nicos Exp $
> > > */
> > >
> > > #ifdef HAVE_CONFIG_H
> > > @@ -28,17 +28,13 @@
> > >
> > > #include "spp_signe.h"
> > >
> > > -/*
> > > -ZEND_DECLARE_MODULE_GLOBALS(spplus);
> > > -*/
> > > -
> > > ZEND_MINFO_FUNCTION(spplus);
> > > ZEND_FUNCTION(calcul_hmac);
> > > ZEND_FUNCTION(nthmac);
> > > ZEND_FUNCTION(signeurlpaiement);
> > > ZEND_FUNCTION(calculhmac);
> > >
> > > -/* {{{ mysql_functions[] */
> > > +/* {{{ spplus_functions[] */
> > > zend_function_entry spplus_functions[] = {
> > > ZEND_FE(calcul_hmac, NULL)
> > > ZEND_FE(nthmac, NULL)
> > > @@ -48,7 +44,7 @@
> > > };
> > > /* }}} */
> > >
> > > -/* {{{ mysql_module_entry */
> > > +/* {{{ spplus_module_entry */
> > > zend_module_entry spplus_module_entry={
> > > STANDARD_MODULE_HEADER,
> > > "spplus",
> > > @@ -78,9 +74,7 @@
> > > }
> > > /* }}} */
> > >
> > > -/* {{{ proto string calcul_hmac(string clent , string codesiret ,
> string
> > montant , string
> > > -reference , string validite , string taxe , string devise , string
> > langue)
> > > - Getting a calcul_hmac key. */
> > > +/* {{{ proto string calcul_hmac(string clent , string codesiret ,
> string
> > montant , string reference , string validite , string taxe , string
devise
> ,
> > string langue) Getting a calcul_hmac key. */
> > > ZEND_FUNCTION(calcul_hmac)
> > > {
> > > char *iclent, *icodesiret, *imontant, *ireference, *ivalidite,
> *itaxe,
> > *idevise, *ilangue;
> > > @@ -88,7 +82,7 @@
> > > char *result;
> > >
> > > if (zend_parse_parameters(8, "ssssssss", &iclent, &iclent_len,
> > &icodesiret, &icodesiret_len, &imontant, &imontant_len, &ireference,
> > &ireference_len, &ivalidite, &ivalidite_len, &itaxe, &itaxe_len,
&idevise,
> > &idevise_len, &ilangue, &ilangue_len) == FAILURE) {
> > > - WRONG_PARAM_COUNT;
> > > + return;
> > > }
> > >
> > > result = sp_calcul_hmac(iclent, icodesiret, ireference, ilangue,
> > idevise, imontant, itaxe, ivalidite);
> > > @@ -97,11 +91,7 @@
> > > }
> > > /* }}} */
> > >
> > > -/* {{{ proto string nthmac(string clent , string data)
> > > - Getting a nthmac key.
> > > - Note that data is:
> > > - $data = "$codesiret$reference$langue$devise$montant$taxe$validite";
> > > -*/
> > > +/* {{{ proto string nthmac(string clent , string data) Getting a
nthmac
> > key. Note that data is: $data =
> > "$codesiret$reference$langue$devise$montant$taxe$validite"; */
> > > ZEND_FUNCTION(nthmac)
> > > {
> > > char *iclent, *idata;
> > > @@ -109,7 +99,7 @@
> > > char *result;
> > >
> > > if (zend_parse_parameters(2, "ss", &iclent, &iclent_len,
> > > &idata,
> > &idata_len) == FAILURE) {
> > > - WRONG_PARAM_COUNT;
> > > + return;
> > > }
> > >
> > > result = sp_NTHMAC(iclent, idata);
> > > @@ -118,11 +108,7 @@
> > > }
> > > /* }}} */
> > >
> > > -/* {{{ proto string signerurlpaiement(string clent , string data)
> > > - Getting a url for the paiement redirection.
> > > - Note that data is:
> > > - $data = "$codesiret$reference$langue$devise$montant$taxe$validite";
> > > -*/
> > > +/* {{{ proto string signerurlpaiement(string clent , string data)
> Getting
> > a url for the paiement redirection. Note that data is: $data =
> > "$codesiret$reference$langue$devise$montant$taxe$validite"; */
> > > ZEND_FUNCTION(signeurlpaiement)
> > > {
> > > char *iclent, *idata;
> > > @@ -130,7 +116,7 @@
> > > char *result;
> > >
> > > if (zend_parse_parameters(2, "ss", &iclent, &iclent_len,
> > > &idata,
> > &idata_len) == FAILURE) {
> > > - WRONG_PARAM_COUNT;
> > > + return;
> > > }
> > >
> > > result = sp_signeURLPaiement(iclent, idata);
> > > @@ -139,11 +125,7 @@
> > > }
> > > /* }}} */
> > >
> > > -/* {{{ proto string calculhmac(string clent , string data)
> > > - Getting a calculhmac key.
> > > - Note that data is:
> > > - $data = "$codesiret$reference$langue$devise$montant$taxe$validite";
> > > -*/
> > > +/* {{{ proto string calculhmac(string clent , string data) Getting a
> > calculhmac key. Note that data is: $data =
> > "$codesiret$reference$langue$devise$montant$taxe$validite"; */
> > > ZEND_FUNCTION(calculhmac)
> > > {
> > > char *iclent, *idata;
> > > @@ -151,7 +133,7 @@
> > > char *result;
> > >
> > > if (zend_parse_parameters(2, "ss", &iclent, &iclent_len,
> > > &idata,
> > &idata_len) == FAILURE) {
> > > - WRONG_PARAM_COUNT;
> > > + return;
> > > }
> > >
> > > result = sp_CalculHmac(iclent, idata);
> > >
> > >
> > >
> > > --
> > > PEAR CVS Mailing List (http://pear.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
>
>
>