Your message dated Thu, 31 Mar 2005 08:33:13 -0500
with message-id <[EMAIL PROTECTED]>
and subject line Bug#298396: fixed in spplus 1.0-5
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 7 Mar 2005 09:43:30 +0000
>From [EMAIL PROTECTED] Mon Mar 07 01:43:30 2005
Return-path: <[EMAIL PROTECTED]>
Received: from intelliance1.intelliance.fr (ifr.intelliance.net) 
[212.37.193.23] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1D8Elu-0007Kk-00; Mon, 07 Mar 2005 01:43:30 -0800
Received: from localhost (ifr.intelliance.net [127.0.0.1])
        by ifr.intelliance.net (Postfix) with ESMTP id 921C413756
        for <[EMAIL PROTECTED]>; Mon,  7 Mar 2005 10:50:20 +0100 (CET)
Received: from ifr.intelliance.net ([127.0.0.1])
        by localhost (ifr.intelliance.net [127.0.0.1]) (amavisd-new, port 10024)
        with ESMTP id 16473-10 for <[EMAIL PROTECTED]>;
        Mon, 7 Mar 2005 10:50:20 +0100 (CET)
Received: by ifr.intelliance.net (Postfix, from userid 0)
        id 4147813745; Mon,  7 Mar 2005 10:50:20 +0100 (CET)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Matthieu PAINEAU <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: new phpapi need php4-spplus source to be corrected
X-Mailer: reportbug 3.8
Date: Mon, 07 Mar 2005 10:50:20 +0100
Message-Id: <[EMAIL PROTECTED]>
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ifr.intelliance.net
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: php4-spplus
Version: 1.0-4
Severity: grave
Tags: sid patch
Justification: renders package unusable

Hi,
our web agency use the php_spplus module in debian testing...
Last week, we made an update/upgrade of : php* and apache* packages
(with the classic apt-get upgrade)...
All seems to work right, but not php_spplus.
The payment page, which calls spplus functions (calculhmac, ...) and the
page is not displayed, and apache logs (error.log) contain this :
[Fri Mar  4 11:14:17 2005] [notice] child pid 11375 exit signal
Segmentation fault (11)
[Fri Mar  4 11:14:17 2005] [notice] child pid 11366 exit signal
Segmentation fault (11)
[Fri Mar  4 11:14:17 2005] [notice] child pid 11365 exit signal
Segmentation fault (11)

Well, it doesn't work anymore.

I searched during 3 hours without any succes. I used sources, patched
with debian source patch, recompiled... nothing better.
...
I searched a little bit more, and i think i found the problem...

The "zend_parse_parameters" function used in php_spplus.c need (now ?) a
different parameter in first argument.
So, the first parameter of each function 'zend_parse_parameters' must
be: ZEND_NUM_ARGS() TSRMLS_CC
So, the 'Segmentation fault' probably came from the
'zend_parse_parameters' function which crashes...

See, in attachment, my diff file between php_spplus.c ORIGINAL file and
php_spplus.c file corrected by me.

I made a quick test with our paiement page, and it works.

Thanks.
-------------
--- spplus-1.0.orig/php_spplus.c        2004-01-19 10:50:55.000000000
+0100
+++ spplus-1.0/php_spplus.c     2005-03-04 12:19:04.000000000 +0100
@@ -80,7 +80,7 @@
        int   iclent_len, icodesiret_len, imontant_len, ireference_len, 
ivalidite_len, itaxe_len, idevise_len, ilangue_len;
        char   *result;
        
-       if (zend_parse_parameters(8, "ssssssss", &iclent, &iclent_len, 
&icodesiret, &icodesiret_len, &ireference, &ireference_len, &ilangue, 
&ilangue_len, &idevise, &idevise_len, &imontant, &imontant_len, &itaxe, 
&itaxe_len, &ivalidite, &ivalidite_len) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ssssssss", 
&iclent, &iclent_len, &icodesiret, &icodesiret_len, &ireference, 
&ireference_len, &ilangue, &ilangue_len, &idevise, &idevise_len, &imontant, 
&imontant_len, &itaxe, &itaxe_len, &ivalidite, &ivalidite_len) == FAILURE) {
                WRONG_PARAM_COUNT;
        }
 
@@ -97,7 +97,7 @@
        int   iclent_len, idata_len;
        char   *result;
 
-       if (zend_parse_parameters(2, "ss", &iclent, &iclent_len, &idata, 
&idata_len) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &iclent, 
&iclent_len, &idata, &idata_len) == FAILURE) {
                WRONG_PARAM_COUNT;
        }
 
@@ -114,7 +114,7 @@
        int   iclent_len, idata_len;
        char   *result;
 
-       if (zend_parse_parameters(2, "ss", &iclent, &iclent_len, &idata, 
&idata_len) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &iclent, 
&iclent_len, &idata, &idata_len) == FAILURE) {
                WRONG_PARAM_COUNT;
        }
 
@@ -131,7 +131,7 @@
        int   iclent_len, idata_len;
        char   *result;
 
-       if (zend_parse_parameters(2, "ss", &iclent, &iclent_len, &idata, 
&idata_len) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &iclent, 
&iclent_len, &idata, &idata_len) == FAILURE) {
                WRONG_PARAM_COUNT;
        }
 
-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.26-intelliance
Locale: LANG=fr_FR, LC_CTYPE=fr_FR (charmap=ISO-8859-1)

Versions of packages php4-spplus depends on:
ii  libapache-mod-php4 [phpapi- 4:4.3.10-8   server-side, HTML-embedded scripti
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  php4-cgi [phpapi-20020918-z 4:4.3.10-8   server-side, HTML-embedded scripti
ii  php4-cli [phpapi-20020918-z 4:4.3.10-8   command-line interpreter for the p

-- no debconf information

---------------------------------------
Received: (at 298396-close) by bugs.debian.org; 31 Mar 2005 13:38:02 +0000
>From [EMAIL PROTECTED] Thu Mar 31 05:38:02 2005
Return-path: <[EMAIL PROTECTED]>
Received: from newraff.debian.org [208.185.25.31] (mail)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DGzs2-0000Q9-00; Thu, 31 Mar 2005 05:38:02 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
        id 1DGznN-00018d-00; Thu, 31 Mar 2005 08:33:13 -0500
From: Cyril Bouthors <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.55 $
Subject: Bug#298396: fixed in spplus 1.0-5
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Thu, 31 Mar 2005 08:33:13 -0500
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Source: spplus
Source-Version: 1.0-5

We believe that the bug you reported is fixed in the latest version of
spplus, which is due to be installed in the Debian FTP archive:

php4-spplus_1.0-5_i386.deb
  to pool/main/s/spplus/php4-spplus_1.0-5_i386.deb
spplus_1.0-5.diff.gz
  to pool/main/s/spplus/spplus_1.0-5.diff.gz
spplus_1.0-5.dsc
  to pool/main/s/spplus/spplus_1.0-5.dsc



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Cyril Bouthors <[EMAIL PROTECTED]> (supplier of updated spplus package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu, 31 Mar 2005 16:06:36 +0300
Source: spplus
Binary: php4-spplus
Architecture: source i386
Version: 1.0-5
Distribution: unstable
Urgency: low
Maintainer: Cyril Bouthors <[EMAIL PROTECTED]>
Changed-By: Cyril Bouthors <[EMAIL PROTECTED]>
Description: 
 php4-spplus - Secured payment system of the Caisse d'Epargne (French bank)
Closes: 298396 301334
Changes: 
 spplus (1.0-5) unstable; urgency=low
 .
   * debian/control: build-dependency on php4-dev (>= 4:4.3.10-10) and a
     dependency on phpapi-20020918 (closes: #301334, #298396).
Files: 
 015397c449240006946b619b1686d23d 588 web optional spplus_1.0-5.dsc
 046c4c5f25aead8b195e34f65d511fcf 24159 web optional spplus_1.0-5.diff.gz
 d44b1709954549a6ffc90123f4548e5f 18732 web optional php4-spplus_1.0-5_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCS/lyZ1SJHeqsYt8RAkJ9AJ9wfSna+RjNH4cDiAdK03+URAq9IwCfTxKA
cURd7jSWTCmuJhyWJ8XvpKY=
=lbhZ
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to