Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94623 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37644 invoked from network); 22 Jul 2016 00:45:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jul 2016 00:45:25 -0000 Received: from [127.0.0.1] ([127.0.0.1:20462]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id EB/5B-52781-4AC61975 for ; Thu, 21 Jul 2016 20:45:24 -0400 Authentication-Results: pb1.pair.com header.from=nazar@mokrynskyi.com; sender-id=permerror Authentication-Results: pb1.pair.com smtp.mail=nazar@mokrynskyi.com; spf=permerror; sender-id=permerror Received-SPF: error (pb1.pair.com: domain mokrynskyi.com from 46.4.12.3 cause and error) X-PHP-List-Original-Sender: nazar@mokrynskyi.com X-Host-Fingerprint: 46.4.12.3 static.3.12.4.46.clients.your-server.de Received: from [46.4.12.3] ([46.4.12.3:55620] helo=mx.mokrynskyi.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/4B-52781-9B861975 for ; Thu, 21 Jul 2016 20:28:43 -0400 Received: from localhost (localhost [127.0.0.1]) by mx.mokrynskyi.com (Postfix) with ESMTP id F074914C4C for ; Fri, 22 Jul 2016 00:28:36 +0000 (UTC) Authentication-Results: mx.mokrynskyi.com (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=mokrynskyi.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mokrynskyi.com; h=content-transfer-encoding:content-type:content-type :mime-version:user-agent:date:date:message-id:to:subject:subject :organization:from:from; s=dkim; t=1469147313; x=1470011314; bh= uybLSS7ZbEal/6q1ELPHeuzEdKNi/tHf9V3EL26Jok0=; b=K/n561jNMX+XYT7i pErfVRf9l24HNHd2cHZORcLKbwK88JhxeYAd3YaQLcl8jXDqG7A1s9K2qPpw4R/B bxZZ9oqfEBqFIZEskEt5AIq7JJvQs5z6JRFQDLm4DCQxerugQdlfMDpX/bb+MI09 hesJjFrUliEpi7KbFackiZB22Qw= X-Virus-Scanned: Debian amavisd-new at mx.mokrynskyi.com Received: from mx.mokrynskyi.com ([127.0.0.1]) by localhost (mx.mokrynskyi.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ds0HAdlckX22 for ; Fri, 22 Jul 2016 00:28:33 +0000 (UTC) Received: from [192.168.1.167] (unknown [37.57.231.109]) by mx.mokrynskyi.com (Postfix) with ESMTPSA id B25EF14C40; Fri, 22 Jul 2016 00:28:30 +0000 (UTC) Organization: CleverStyle, Ecoisme To: internals@lists.php.net Cc: cmb@php.net Message-ID: <9d7bf704-44f9-1888-0761-8a91adfa8391@mokrynskyi.com> Disposition-Notification-To: Nazar Mokrynskyi Date: Fri, 22 Jul 2016 03:28:31 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Add support for arbitrary HTTP methods From: nazar@mokrynskyi.com (Nazar Mokrynskyi) Hi internals, I want to bring here question about supporting custom http methods in built-in webserver with router script. The problem is that GET, POST are standard methods and they work fine, but for custom methods like XYZ_METHOD_ALSO_ALLOWED webserver responds with 501 Not Implemented. 501 ideally should never happen when router script is used, since it is up to router to decide whether it can handle the request or not. Initial bug report for additional info and references: https://bugs.php.net/bug.php?id=3D72619 Sample repository to reproduce an issue: https://github.com/nazar-pc/php-bug-72619 Christoph Michael Becker said on bug tracker that this kind of change will probably require an RFC, however for me this appears to be pretty minor change that can barely be a breaking change to someone and it should even be backported to 7.0/5.6 when/if implemented in 7.1. I do not code in C/C++, but I can prepare some PHPT tests for this feature if someone is willing to help here. --=20 Sincerely, Nazar Mokrynskyi