Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined variables in run() method #57

Open
16 opened this issue Aug 27, 2018 · 0 comments
Open

Undefined variables in run() method #57

16 opened this issue Aug 27, 2018 · 0 comments
Labels

Comments

@16
Copy link
Collaborator

16 commented Aug 27, 2018

limonade/lib/limonade.php

Lines 390 to 396 in be59a72

if(!function_exists('route_missing'))
{
function route_missing($request_method, $request_uri)
{
halt(NOT_FOUND, "($request_method) $request_uri");
}
}

$request_methodand $request_uri must be defined before !

For now, they are only defined a few lines after (in section 6. Check request)

limonade/lib/limonade.php

Lines 400 to 401 in be59a72

# 6. Check request
if($rm = request_method($env))

limonade/lib/limonade.php

Lines 408 to 409 in be59a72

# 6.1 Check matching route
if($route = route_find($rm, request_uri($env)))

@16 16 added the Bug label Aug 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant