Skip to content

Resource route length > 32 characters throws preg_match() errror. #1001

@JordanDalton

Description

@JordanDalton

When I try to delete a specified resource using a uri that is greater than 32 characters the following error is encountered:

Warning: preg_match(): Compilation failed: subpattern name is too long (maximum 32 characters) at offset 80 in C:\apps\grahamsqbapi\bootstrap\compiled.php line 15188

My defined route:

// "salesorderlinedetaildepartmentemployees" is used to match the table name (gotta love quickbooks..)
Route::resource('salesorderlinedetaildepartmentemployees', 'Api_SalesOrderLineDetailDepartmentEmployeeController', array('only' => array('index', 'destroy')));

If I shorten "salesorderlinedetaildepartmentemployees" to "salesorderlinedetaildepartmentem" everything executes just fine.

Requested solution: Extend how long the resource route uri can be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions