f3-factory / fatfree-core

Fat-Free Framework core library
GNU General Public License v3.0
207 stars 88 forks source link

Invalid routing pattern: GET / #231

Closed jtojnar closed 7 years ago

jtojnar commented 7 years ago

Recently, selfoss on my localhost started failing with “Invalid routing pattern: GET /”.

It looks like the same error as https://groups.google.com/forum/?fromgroups=#!topic/f3-framework/7tfAuEPh_wY and can be reproduced by the following code:

<?php

require __DIR__ . '/vendor/autoload.php';

$f3 = Base::instance();

$f3->route('GET /', function() {
    echo 'Hello, world!';
});

$f3->run();

I am not aware of any changes in my configuration except for PHP upgrade 7.1.9 -> 7.1.11.

fatfree-core: 3.6.2 PHP Version 7.1.11 PCRE Library Version | 8.38 2015-11-23 (looks like the built-in one, rest of my system uses 8.41) PCRE JIT Support | enabled

jtojnar commented 7 years ago

Apparently, it is caused by cross-contamination by PCRE symbols from Apache. https://github.com/NixOS/nixpkgs/issues/31499