--- /dev/null
+--TEST--
+allowed methods
+--SKIPIF--
+<?php
+include 'skip.inc';
+checkcgi();
+?>
+--FILE--
+<?php
+ini_set('http.allowed_methods', 'POST');
+echo "Done\n";
+?>
+--EXPECTF--
+Status: 405
+Content-type: %s
+X-Powered-By: PHP/%s
+Allow: POST
+