Skip to content

Commit

Permalink
close tags
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Sep 8, 2012
1 parent dd87b5d commit 933af62
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 9 deletions.
1 change: 1 addition & 0 deletions tests/008.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var_dump($router->getCurrentRoute());
print_r($router->getRoutes());
print_r($router->getRoute("simple"));
var_dump($router->getRoute("noexists"));
?>
--EXPECTF--
Yaf_Router Object
(
Expand Down
1 change: 1 addition & 0 deletions tests/009.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ var_dump(strlen($view->render(dirname(__FILE__) . "/001.phpt")));
var_dump($view->name);
var_dump($view->noexists);
print_r($view);
?>
--EXPECTF--
Yaf_View_Simple Object
(
Expand Down
2 changes: 1 addition & 1 deletion tests/018.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Bug Yaf_Config_Ini crash due to inaccurate refcount
$file = dirname(__FILE__) . "/simple.ini";
$config = new Yaf_Config_Ini($file, 'base');
print_r($config);

?>
--EXPECTF--
Yaf_Config_Ini Object
(
Expand Down
1 change: 1 addition & 0 deletions tests/029.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ $view->clear("b");
print_r($view->get());
$view->clear();
print_r($view->get());
?>
--EXPECTF--
bArray
(
Expand Down
1 change: 1 addition & 0 deletions tests/030.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ try {
print_r($e->getMessage());
}

?>
--EXPECTF--
There is no section 'ex' in '%ssimple.ini'
1 change: 1 addition & 0 deletions tests/043.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ var_dump(ini_get("yaf.name_suffix") == "1");
var_dump(ini_get("yaf.name_separator") == "__");

new Plugin__ABC_EFG();
?>
--EXPECTF--
bool(true)
bool(true)
Expand Down
1 change: 1 addition & 0 deletions tests/044.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ unset($a);
Yaf_Dispatcher::getInstance();
$b = Yaf_Dispatcher::getInstance();
var_dump(get_class($b));
?>
--EXPECTF--
string(14) "Yaf_Dispatcher"
1 change: 1 addition & 0 deletions tests/046.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ $loader->clearLocalNamespace();
$loader->registerLocalNamespace("Bar");
var_dump($loader->isLocalName("Foo_Bar"));
var_dump($loader->isLocalName("Bar"));
?>
--EXPECTF--
bool(true)
bool(true)
Expand Down
1 change: 1 addition & 0 deletions tests/047.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ spl_autoload_register("load");
$a = new Foo();

print_r($a);
?>
--EXPECTF--
string(3) "Foo"

Expand Down
2 changes: 2 additions & 0 deletions tests/048.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ file_put_contents(APPLICATION_PATH . "/application/views/index/index.phtml",

$app = new Yaf_Application($config);
$app->bootstrap()->run();

?>
--EXPECTF--
string(13) "routerStartup"
string(14) "routerShutdown"
Expand Down
1 change: 1 addition & 0 deletions tests/049.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ file_put_contents(APPLICATION_PATH . "/application/views/error/error.phtml",

$app = new Yaf_Application($config);
$app->bootstrap()->run();
?>
--EXPECTF--
string(13) "routerStartup"
string(14) "routerShutdown"
Expand Down
1 change: 1 addition & 0 deletions tests/050.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ $app = new Yaf_Application($config);
$response = $app->bootstrap()->run();
var_dump("-------");
echo $response;
?>
--EXPECTF--
string(7) "-------"
view
11 changes: 3 additions & 8 deletions yaf_application.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
+----------------------------------------------------------------------+
*/

/* $Id: yaf_application.c 327425 2012-09-02 03:58:49Z laruence $ */
/* $Id: yaf_application.c 327541 2012-09-08 12:46:24Z laruence $ */

#ifdef HAVE_CONFIG_H
#include "config.h"
Expand Down Expand Up @@ -301,14 +301,9 @@ static int yaf_application_parse_option(zval *options TSRMLS_DC) {
if (zend_hash_get_current_data(ht, (void **)&value) == FAILURE) {
continue;
}

len = snprintf(name, sizeof(name), "%s.%s", "yaf", key);
snprintf(name, sizeof(name), "%s.%s", "yaf", key);
convert_to_string(*value);

if (zend_alter_ini_entry(name, len + 1, Z_STRVAL_PP(value), Z_STRLEN_PP(value),
PHP_INI_USER, PHP_INI_STAGE_RUNTIME) == FAILURE) {
/* do nothing */
}
zend_alter_ini_entry(name, strlen(name) + 1, Z_STRVAL_PP(value), Z_STRLEN_PP(value), PHP_INI_USER, PHP_INI_STAGE_RUNTIME);
}
}

Expand Down

0 comments on commit 933af62

Please sign in to comment.