Closed ghost closed 5 years ago
In routing.php new code has been added:
routing.php
<?php if (!defined('APP_STARTED')) { die('Forbidden!'); }
But, wouldn't APP_STARTED be false when runningphp -S 0.0.0.0:8888 routing.php? Because, routing.php has not had a chance to run index.php where APP_STARTED is set to true?
APP_STARTED
php -S 0.0.0.0:8888 routing.php
index.php
Steven
Yeap, you are right.
Since I do not use the builtin web server, I would never notice.
I added a fix and already pushed it.
Just update your master branch and this problem should be gone
In
routing.php
new code has been added:But, wouldn't
APP_STARTED
be false when runningphp -S 0.0.0.0:8888 routing.php
? Because,routing.php
has not had a chance to runindex.php
whereAPP_STARTED
is set to true?Steven