cvs: pear /PECL/spplus php_spplus.c
| From: | CHAILLAN Nicolas | Date: | Fri, 08 Nov 2002 19:03:09 +0000 |
| Subject: | cvs: pear /PECL/spplus php_spplus.c | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-7323@lists.php.net to get a copy of this message | ||
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);