diff --git a/tests/issue134.phpt b/tests/issue134.phpt new file mode 100644 index 00000000..eadf2a73 --- /dev/null +++ b/tests/issue134.phpt @@ -0,0 +1,26 @@ +--TEST-- +ISSUE #134 (Segfault while calling assemble) +--SKIPIF-- + +--INI-- +yaf.use_namespace=0 +--FILE-- + 'index', + 'action' => 'detail', + 'module' => 'kfc' + ) +); +$router->addRoute("kfc/index/detail", $route); + +print_r($router->getRoute('kfc/index/detail')->assemble( + array( + ':id' => '1', + ) +)); +--EXPECTF-- +/detail/1