Skip to content

Commit

Permalink
Fixed ISSUE #571
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed May 19, 2022
1 parent 9acee7a commit 5a0e57a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/issue420.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ PHP

$app = new Yaf_Application($config);
$req = new Yaf_Request_Simple();
$req->setControllerName('Foo_Bar');
$req->setControllerName('Foo_Bar', false);
var_dump($req->getControllerName());
$req->setControllerName('index');
$req->setActionName('func');
Expand Down
6 changes: 3 additions & 3 deletions yaf_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -1024,8 +1024,8 @@ PHP_METHOD(yaf_request, setModuleName) {
} else {
if (request->module) {
zend_string_release(request->module);
request->module = zend_string_copy(module);
}
request->module = zend_string_copy(module);
}
}

Expand All @@ -1050,8 +1050,8 @@ PHP_METHOD(yaf_request, setControllerName) {
} else {
if (request->controller) {
zend_string_release(request->controller);
request->controller = zend_string_copy(controller);
}
request->controller = zend_string_copy(controller);
}
}

Expand All @@ -1076,8 +1076,8 @@ PHP_METHOD(yaf_request, setActionName) {
} else {
if (request->action) {
zend_string_release(request->action);
request->action = zend_string_copy(action);
}
request->action = zend_string_copy(action);
}
}

Expand Down

0 comments on commit 5a0e57a

Please sign in to comment.