Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65534 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13149 invoked from network); 31 Jan 2013 11:00:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jan 2013 11:00:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=ivan.enderlin@hoa-project.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ivan.enderlin@hoa-project.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain hoa-project.net from 95.130.12.24 cause and error) X-PHP-List-Original-Sender: ivan.enderlin@hoa-project.net X-Host-Fingerprint: 95.130.12.24 host1.trois-doubles.net Linux 2.6 Received: from [95.130.12.24] ([95.130.12.24:43753] helo=host1.trois-doubles.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 14/E2-09318-BCE4A015 for ; Thu, 31 Jan 2013 06:00:31 -0500 Received: from Hwhost2.local (adsl-84-227-209-114.adslplus.ch [84.227.209.114]) by host1.trois-doubles.net (Postfix) with ESMTPSA id 8F99520AC10 for ; Thu, 31 Jan 2013 12:00:23 +0100 (CET) Message-ID: <510A4EC7.8050001@hoa-project.net> Date: Thu, 31 Jan 2013 12:00:23 +0100 Reply-To: ivan.enderlin@hoa-project.net User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:20.0) Gecko/20100101 Thunderbird/20.0a2 MIME-Version: 1.0 To: internals@lists.php.net References: <510A3B71.7060508@hoa-project.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: [lists.php] [PHP-DEV] Proposal: php://memory/ (& ://temp/) From: ivan.enderlin@hoa-project.net ("Ivan Enderlin @ Hoa") On 31/01/13 11:12, ALeX wrote: > Hi Ivan, > >> php://memory/ >> php://temp//maxmemory: > It's not that hard to write such an function in php. > (http://www.php.net/manual/en/function.stream-wrapper-register.php). Did I say it was hard? This is quite obvious to write such a wrapper, but PHP has php://memory. My proposal will save future work to users (and offer better performance because we stay in the PHP land). > I even once wrote an handler like "string://data-right-here" which > allows to read (only) the "data-right-here" as a file. (I used it for > a function which required a file and does not support strings > directly, and instead of php://memory all data is freed when no longer > used) Yes. I also have Hoa\Stringbuffer or some stuff like that. But, again, it will save future work to users. Best regards. -- Ivan Enderlin Developer of Hoa http://hoa-project.net/ PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis) http://disc.univ-fcomte.fr/ and http://www.inria.fr/ Member of HTML and WebApps Working Group of W3C http://w3.org/