Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56391 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62684 invoked from network); 18 Nov 2011 11:46:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2011 11:46:28 -0000 Authentication-Results: pb1.pair.com header.from=nicolas.grekas@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nicolas.grekas@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: nicolas.grekas@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gx0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:61095] helo=mail-gx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A7/79-06569-39546CE4 for ; Fri, 18 Nov 2011 06:46:28 -0500 Received: by ggnk1 with SMTP id k1so1414564ggn.29 for ; Fri, 18 Nov 2011 03:46:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=7aQ1c2H0JadZC1wo4CpzC6KUb2NRvfMaq38I5lPvxRg=; b=xZqU5NlNusLODghScNG8rrezEMHOf5TENf+t0hPana0oMGkt1uI0LqdOsJ8h8Bd97D 4Mx+xfjNM/6kTVQAErfwonpTMEgTkItuL2KVsSlv3LR71lgeTv/qfUTUhf1aXnCPtNwz qozniMYD5OOSDhhxHP8mIC9fb8d6U26BlgL60= Received: by 10.236.178.9 with SMTP id e9mr3958698yhm.77.1321616785139; Fri, 18 Nov 2011 03:46:25 -0800 (PST) MIME-Version: 1.0 Sender: nicolas.grekas@gmail.com Received: by 10.236.207.66 with HTTP; Fri, 18 Nov 2011 03:46:05 -0800 (PST) In-Reply-To: References: <4EC025B4.2070009@sugarcrm.com> <4EC17308.6030406@sugarcrm.com> Date: Fri, 18 Nov 2011 12:46:05 +0100 X-Google-Sender-Auth: 4t5LzOcZTFZ0rlMEvaUQvP-HT1w Message-ID: To: Michael Wallner Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=20cf303f6c5c01ea3604b200e3ae Subject: Re: [PHP-DEV] function ob_gzhandler is missed in 5.4 From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --20cf303f6c5c01ea3604b200e3ae Content-Type: text/plain; charset=ISO-8859-1 Without a real ob_gzhandler function, replacing it with an alias as currently in RC1 : what if someone then creates an ob_gzhandler function in userland ? would ob_start('ob_gzhandler') use the userland function or still the alias ? I think this is a second argument to make ob_gzhandler a real function : least surprise. Personally, I do use ob_gzhandler directly because it's the easiest way to do chunked compressed encoding in userland. This allows me to ask for compression as late as possible, because registering an ob_start('ob_gzhandler'); may be too early for me. I do want to choose to enable compression only when the very first byte is about to be sent over the wire. Hope it helps Nicolas