Skip to content

Undefined variables in run() method #57

Description

@16

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)))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions