Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53364 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1339 invoked from network); 17 Jun 2011 22:06:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jun 2011 22:06:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=dragoonis@php.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dragoonis@php.net; sender-id=pass; domainkeys=good Received-SPF: pass (pb1.pair.com: domain php.net designates 140.211.166.39 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: dragoonis@php.net X-Host-Fingerprint: 140.211.166.39 osu1.php.net Linux 2.4/2.6 Received: from [140.211.166.39] ([140.211.166.39:42215] helo=osu1.php.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BE/E6-49199-9EFCBFD4 for ; Fri, 17 Jun 2011 18:06:34 -0400 DomainKey-Signature: q=dns; a=rsa-sha1; c=nofws; s=mx; d=php.net; h=From:Subject:To:Date; b=jkmKIVVnCOqFPQldlcyVgaj50JkliLK9H++9ZyDKL4zQahKIMY3yL4LVWDD+hJD2 rdl/1z+8b+xAnmP3cG4Bc2mAzT40vtjtFVVfu/RU8EJLEDz2YFMwX6T1ztyUiENk Authentication-Results: osu1.php.net header.from=dragoonis@php.net; sender-id=neutral Authentication-Results: osu1.php.net smtp.mail=dragoonis@php.net; spf=neutral; sender-id=neutral Authentication-Results: osu1.php.net x-tls.subject="/C=US/ST=California/L=Mountain View/O=Google Inc/CN=smtp.gmail.com"; auth=fail (cipher=none) Authentication-Results: osu1.php.net smtp.user=dragoonis; auth=pass (LOGIN) Received: from [209.85.214.170] ([209.85.214.170:53505] helo=mail-iw0-f170.google.com) by osu1.php.net (envelope-from ) (ecelerity 2.2.3.46 r(36781)) with ESMTPSA (cipher=none subject="/C=US/ST=California/L=Mountain View/O=Google Inc/CN=smtp.gmail.com") id DF/A5-20659-D30DBFD4; Fri, 17 Jun 2011 15:07:57 -0700 Received: by iwn36 with SMTP id 36so636420iwn.29 for ; Fri, 17 Jun 2011 15:06:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.142.136 with SMTP id s8mr2910145icu.209.1308348387096; Fri, 17 Jun 2011 15:06:27 -0700 (PDT) Received: by 10.42.108.70 with HTTP; Fri, 17 Jun 2011 15:06:27 -0700 (PDT) Date: Fri, 17 Jun 2011 23:06:27 +0100 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: New function http_response_code() to PHP5.4 Branch From: dragoonis@php.net (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? Thanks, Paul Dragoonis.