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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Fri Dec 27 03:01:28 2024 UTC