Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24250 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86480 invoked by uid 1010); 3 Jul 2006 19:27:03 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 86465 invoked from network); 3 Jul 2006 19:27:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jul 2006 19:27:03 -0000 X-PHP-List-Original-Sender: an.dromeda@btconnect.com X-Host-Fingerprint: 194.73.73.212 c2bthomr04.btconnect.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from ([194.73.73.212:20862] helo=c2bthomr04.btconnect.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 18/C8-13848-58F69A44 for ; Mon, 03 Jul 2006 15:27:02 -0400 Received: from VaioCen (host81-138-95-202.in-addr.btopenworld.com [81.138.95.202]) by c2bthomr04.btconnect.com (MOS 3.7.4b-GA) with ESMTP id FCN57403; Mon, 3 Jul 2006 20:20:57 +0100 (BST) Message-ID: <003201c69ed6$a2c2e770$ca5f8a51@VaioCen> To: "Internals PHP Mailing List" Date: Mon, 3 Jul 2006 20:26:49 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002F_01C69EDF.032F87A0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Subject: Persistent streams in an extension From: an.dromeda@btconnect.com ("Andrew Mather") ------=_NextPart_000_002F_01C69EDF.032F87A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I am trying to use a php_stream* as a global (and hence persistent) resource, but gdb detects a memory leak at the end of the request, and subsequent calls to the stream say the stream is no longer seekable. How do I declare a php_stream (opened presumably with php_stream_open_wrapper) to be a persistent resource, such that I will close it only on module shutdown? Cheers, Andrew. ------=_NextPart_000_002F_01C69EDF.032F87A0--