Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13582 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62422 invoked by uid 1010); 28 Oct 2004 12:42:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 62367 invoked from network); 28 Oct 2004 12:42:55 -0000 Received: from unknown (HELO relay-am.club-internet.fr) (194.158.104.67) by pb1.pair.com with SMTP; 28 Oct 2004 12:42:55 -0000 Received: from saintmaur (l04v-14-233.d2.club-internet.fr [62.34.175.233]) by relay-am.club-internet.fr (Postfix) with SMTP id 8FAC925605 for ; Thu, 28 Oct 2004 14:42:54 +0200 (CEST) Message-ID: <01d401c4bcec$0de7b810$0100a8c0@saintmaur> To: Date: Thu, 28 Oct 2004 14:45:49 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01D1_01C4BCFC.D1103FA0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Subject: PHP extension module problem From: pascal-dev@netcourrier.com ("Pascal dev") ------=_NextPart_000_01D1_01C4BCFC.D1103FA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I am actually working on a PHP extension module writen in C and I have a = problem I cannot resolve for weeks : it runs perfectly when PHP is = configured as a CGI script but not when PHP is an Apache module (httpd = is no more responding after a few requests). Configuration: OS: Linux 2.4.20-8 Redhat 9 Server: Apache 2 configured with mpm=3Dprefork PHP: 4.3.2 or 4.3.3 or PHP 5 (same problem) Module presentation: Developped in C, the module.so is placed in the = /usr/local/lib/php/extensions/no-debug-non-zts-20020429/ directory All the PHP scripts begin with: dl('module.so'); I also tried to add extension=3Dmodule.so in the php.ini file and remove = the dl instruction : same problem Problem description: If PHP is compiled with '--enable-force-cgi-redirect' and is a CGI = script, everything is ok If PHP is compiled with '--with-apxs2=3D/usr/local/apache2/bin/apxs' and = is an Apache module, only a few requests are ok (the first one and = sometime one more). When attempting another request, the httpd is not = responding and the logs in my application show me that it stopped = processing during execution of my program. If I changed the C program, = it will stop at another point as if something was wrong in the memory = and the problem could appear at any moment... I have read and read the PHP manual to find out information.... I though about a lot of possibilities : -problem with C global variable handling (I am not using ZTS), -problem with Zend variables handling (the C functions are creating and = updating zval parameters) -problem with sessions (I tried files and mm with same result) -bad configuration... I could give more information if needed. Anyway, I thank you for the time you will spend reading this email. Pascal ------=_NextPart_000_01D1_01C4BCFC.D1103FA0--