Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19068 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19463 invoked by uid 1010); 17 Sep 2005 17:15:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 19448 invoked from network); 17 Sep 2005 17:15:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Sep 2005 17:15:56 -0000 X-Host-Fingerprint: 66.108.229.165 cpe-66-108-229-165.nyc.res.rr.com Received: from ([66.108.229.165:26702] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 69/8D-43379-B4F4C234 for ; Sat, 17 Sep 2005 13:15:56 -0400 Message-ID: <69.8D.43379.B4F4C234@pb1.pair.com> To: internals@lists.php.net Reply-To: "RG" References: <29.87.41173.A9FD9234@pb1.pair.com> <00f301c5ba49$455192c0$5c8be5a9@ohr.berkeley.edu> <5A.79.43379.A1E1A234@pb1.pair.com> <001901c5ba69$b6573c70$6c051fac@lighthammer> <87.AB.43379.8F14B234@pb1.pair.com> <432BAFA0.2060401@php.net> Date: Sat, 17 Sep 2005 13:15:54 -0400 Lines: 14 Organization: blah X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Posted-By: 66.108.229.165 Subject: Re: [PHP-DEV] Re: Segfault From: ScriptBlue@nyc.rr.com ("RG") > both claims above don't make *any* sense to me, making me think > you still really do not know what you are doing :( O_O, wow, sorry... I did not write that like that...... What I meant to say was that I did use zend_fetch_list_dtor_id in RINIT at first, but I noticed that PHP was not calling RINIT. So then I migrated it MINIT, which is called when the module is loaded. As for malloc/emalloc, I tried using malloc(sizeof(struct php_socket)); which did not work because gcc was erroring with "Incomplete datatype". I then re-read the Zend API function list and came across emalloc, which I had omitted when I first read it. So once I used emalloc, it worked.