php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61675 Passing section name to Yaf_Application constructor has no effect
Submitted: 2012-04-08 16:54 UTC Modified: 2012-04-08 17:22 UTC
From: sachin dot nigam at netzero dot net Assigned:
Status: Closed Package: yaf (PECL)
PHP Version: 5.3.10 OS: Ubuntu Linux
Private report: No CVE-ID: None
 [2012-04-08 16:54 UTC] sachin dot nigam at netzero dot net
Description:
------------
Even if you pass $section to Yaf_Application::__construct() it defaults to yaf.environ set in php.ini.


Test script:
---------------
$app  = new Yaf_Application(APPLICATION_PATH."conf/application.ini","development");
echo $app->environ();
prints prod
Yaf_Application(APPLICATION_PATH."conf/application.ini","prod");
echo $app->environ();
prints prod


Expected result:
----------------
Should load the passed $section instead of the one defined in php.ini.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-04-08 17:22 UTC] sachin dot nigam at netzero dot net
-Status: Open +Status: Closed
 [2012-04-08 17:22 UTC] sachin dot nigam at netzero dot net
Never mind, it seems like $app->environ() always prints the value set in php.ini.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 10:01:29 2024 UTC