Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60404 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9424 invoked from network); 1 May 2012 18:44:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 May 2012 18:44:04 -0000 Authentication-Results: pb1.pair.com header.from=preinheimer@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=preinheimer@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.42 as permitted sender) X-PHP-List-Original-Sender: preinheimer@gmail.com X-Host-Fingerprint: 209.85.160.42 mail-pb0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:34850] helo=mail-pb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/EB-38165-3FE20AF4 for ; Tue, 01 May 2012 14:44:03 -0400 Received: by pbbrp12 with SMTP id rp12so3631233pbb.29 for ; Tue, 01 May 2012 11:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=7mjx1cIaGfPGpvz2R2X9ugSfWk8MAP/5Dfu5MafvJuc=; b=PUjLT6XTC+/kRQqR1bs2RH6i1iYig1OdqbZq+LHSCRie2mEIf5mG1fqTcjVzRjb9K8 ii1qYFs9zvaSuc9UfZM1Qe7x+Qyt/Tc/7dZft9jEBETI93HUNV0Yo18MNUdSsdsgyHbt zeEdULb9tD8TvU2sCr+xDGe6cFCpH/VFP2TZHpb1L5CpuYtTLZn4qR0IETNAh/othD46 wj1YER/dvKTp9N4KAhtVZ8UKLaDW+sD1q/cVnmr1VM3pbvsGQCtP9tNs/awB+tx7/2nN /VjUbwqWbq+g1ZhpRxWhNRHujAfrTK1gBEAzWOaOK9i5u45GvMVpI/8SJilXx5GmN7WD G4MQ== MIME-Version: 1.0 Received: by 10.68.238.1 with SMTP id vg1mr6591974pbc.111.1335897840823; Tue, 01 May 2012 11:44:00 -0700 (PDT) Received: by 10.142.188.6 with HTTP; Tue, 1 May 2012 11:44:00 -0700 (PDT) In-Reply-To: <4FA01214.5030606@garfieldtech.com> References: <4F9E2173.50005@garfieldtech.com> <000e01cd269a$06f15230$14d3f690$@php.net> <002701cd26b5$1cd0bb70$56723250$@thetaphi.de> <4F9EC8B4.3040600@garfieldtech.com> <4F9F4208.7020106@garfieldtech.com> <4FA01214.5030606@garfieldtech.com> Date: Tue, 1 May 2012 14:44:00 -0400 Message-ID: To: internals@lists.php.net Cc: Larry Garfield Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] readfile() memory usage From: preinheimer@gmail.com (Paul Reinheimer) Hi, > It sounds like it. =A0In that case the memory spike is happening in the o= utput > buffer, where the file is streamed into by readfile() in 8K chunks until = the > output buffer explodes. :-) > > So, I think we're back to "urban legend" territory. That's good to know. Thanks, and my apologies for adding confusion to the i= ssue. One question, with a value of 4096 for the ini directive, shouldn't it be flushing data to the client long before I run into memory issues? What have I missed here. thanks paul