Issues

ZF2-436: Zend\Mvc\Router\Http\Litteral route crashes with empty string as route

Issue Type: Bug Created: 2012-08-01T02:46:08.000+0000 Last Updated: 2012-10-08T20:15:04.000+0000 Status: Closed Fix version(s): Reporter: √Čric Ortega (rixo) Assignee: Ben Scholzen (dasprid) Tags: - Zend\Mvc\Router

Related issues: Attachments:

Description

For example, the following code:

$request = new \Zend\Http\PhpEnvironment\Request;
$route = new \Zend\Mvc\Router\Http\Literal('');
$route->match($request, strlen($request->getBaseUrl()));

Will raise the following error:

Fatal error: Uncaught PHP error with message: 'strpos(): Empty delimiter' in ... /Zend/Mvc/Router/Http/Literal.php:99

It is possible to workaround this problem with an empty Regex route.

Comments

Posted by Ralph Schindler (ralph) on 2012-10-08T20:15:04.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: https://github.com/zendframework/zf2/issues/2511

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts