Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53365 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3348 invoked from network); 17 Jun 2011 22:18:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jun 2011 22:18:24 -0000 Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:51287] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/37-49199-EA2DBFD4 for ; Fri, 17 Jun 2011 18:18:22 -0400 Received: by vwl1 with SMTP id 1so2597885vwl.29 for ; Fri, 17 Jun 2011 15:18:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=94vqmm+EiYolIRF64RwpSTFFzcNAj+1Bb0NJ4i5QRyg=; b=eYyX8qtGkzEu6c1xDqctn+gTxOj+5IajOKYyP5HaFBffp6ba1BKZC3C6RZLiJA2JlA pwC0hg00Mp/GHcMPaW30z4oQ9Bl+8pGbl4qvT5QgCmrma47OffgP+C2cOnQEKg+dEjrY 70+0Mg2JNpdG+IoPPcmEIhot32PFtVa2T2OY4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=JDtI1pqKBU7GbtKotJ4ZickqNusn8Q0y19SP5/14eTAJEz0zLNOFkvTY/Xd54Rjt9W 36bIqeP+/5c8hfw7iQsntiCekyocakrPoBRUyoU9kR1IsUWsi6GYWMtw7IlqrU+1/9iI 8gdnmUBM+0KkvqQQ8zcOxQVtkqEouXnGr95e0= MIME-Version: 1.0 Received: by 10.220.191.76 with SMTP id dl12mr971387vcb.265.1308349099014; Fri, 17 Jun 2011 15:18:19 -0700 (PDT) Sender: kalle.php@gmail.com Received: by 10.220.86.213 with HTTP; Fri, 17 Jun 2011 15:18:18 -0700 (PDT) In-Reply-To: References: Date: Sat, 18 Jun 2011 00:18:18 +0200 X-Google-Sender-Auth: s3HbXKceAknOdn1b8NN3FToGS9k Message-ID: To: Paul Dragoonis Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] New function http_response_code() to PHP5.4 Branch From: kalle@php.net (Kalle Sommer Nielsen) Hi Paul 2011/6/18 Paul Dragoonis : > Hi there, > > I'm requesting my function be put into the 5.4 branch. > > I added a function back in the 5.3 phase to obtain missing > functionality of HEAD.c (and /ext/standard/ in general), but since it > wasn't a bug fix then it wasn't suitable to add to a 5.3.x series. > > The function is http_response_code() - Link: > http://lxr.php.net/opengrok/xref/PHP_TRUNK/ext/standard/head.c#285 > > when you set the HTTP status code in header("..."); or in the param of > header, like: header("...", null, 404); then at a later date this > can't be obtained again by any PHP function. > > Can this be added to 5_4 please? I'll merge it within the weekend > > Thanks, > Paul Dragoonis. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- regards, Kalle Sommer Nielsen kalle@php.net