Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.11.0
-
Component/s: Zend_Controller
-
Labels:None
Description
Zend_Controller_Router_Route_Static::match
--------------------------------------------------------------------------
public function match($path)
{
if ($this->isPartial()) {
if (substr($path, 0, strlen($this->_route)) === $this->_route) {
$this->setMatchedPath($this->_route);
return $this->_defaults;
}
} else {
---------------------------------------------------------------------------
When $this->_route is empty, construction substr($path, 0, strlen($this->_route)) return "bool(false)" and condition If is not fullfilled
Issue Links
| This issue is duplicated by: | ||||
| ZF-7848 | Empty static route (empty string) will NEVER match (sample from docs, Route_Hostname, Route_Static) |
|
|
|
Can you provide an example of when this is a problem, exactly? I'm having trouble finding a case where this would not actually be the correct and/or expected behavior.