Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81601 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59867 invoked from network); 2 Feb 2015 16:37:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2015 16:37:40 -0000 Authentication-Results: pb1.pair.com header.from=francois@tekwire.net; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=francois@tekwire.net; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain tekwire.net does not designate 212.27.42.2 as permitted sender) X-PHP-List-Original-Sender: francois@tekwire.net X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Received: from [212.27.42.2] ([212.27.42.2:11174] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 10/25-34915-3D7AFC45 for ; Mon, 02 Feb 2015 11:37:40 -0500 Received: from moorea (unknown [82.240.16.115]) by smtp2-g21.free.fr (Postfix) with ESMTP id 62A324B0265; Mon, 2 Feb 2015 17:34:27 +0100 (CET) Reply-To: To: "'Xinchen Hui'" , "'PHP Internals'" , "'Dmitry Stogov'" References: In-Reply-To: Date: Mon, 2 Feb 2015 17:37:34 +0100 Message-ID: <008a01d03f06$8cae6f20$a60b4d60$@tekwire.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHdbSTnoUvvQnF9fe5lyro9w/l3gAJNeAs9nLDGF0A= Content-Language: fr X-Antivirus: avast! (VPS 150202-0, 02/02/2015), Outbound message X-Antivirus-Status: Clean Subject: RE: [PHP-DEV] Re: [DICUSS]Cleanup resource handling APIs From: francois@tekwire.net (=?UTF-8?Q?Fran=C3=A7ois_Laupretre?=) > De : Xinchen Hui [mailto:laruence@php.net] > furthermore, I'd like to discuss remove the handle in zend_resource = struct.. >=20 > it may breaks some usage (use resource as long/double/string) >=20 > case IS_RESOURCE: { > char buf[sizeof("Resource id #") + MAX_LENGTH_OF_LONG]; > int len; >=20 > len =3D snprintf(buf, sizeof(buf), "Resource id #" > ZEND_LONG_FMT, (zend_long)Z_RES_HANDLE_P(op)); > return zend_string_init(buf, len, 0); > } I don't understand how you can delete the resource if you remove the = handle from the zend_resource struct. Or would you store the index = elsewhere ? Regards Fran=C3=A7ois