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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sachin dot nigam at netzero dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Thu Dec 26 12:01:30 2024 UTC