History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ZF-193
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Rob Allen
Reporter: Michel Vanhamme
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

Zend_Config_Array::load : PHP notice when throwing exception

Created: 05/Jul/06 03:09 AM   Updated: 05/Jul/07 02:44 PM
Component/s: Zend_Config
Affects Version/s: 0.1.4
Fix Version/s: 0.1.5

Time Tracking:
Not Specified

Resolution Date: 05/Jul/06 06:29 AM


 Description  « Hide
When $config is not set, throwing the exception :

throw new Zend_Config_Exception("Cannot find $config array in $filename");

triggers a PHP notice:

Undefined variable: config in path-to-ZF-library/Zend/Config/Array.php on line 58

my fix is to replace the double quotes with simple quotes:

throw new Zend_Config_Exception('Cannot find $config array in $filename');



 All   Comments   Work Log   Change History   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Rob Allen - 05/Jul/06 06:29 AM
Fixed on the trunk, so should make it into 0.1.5.

Thanks for the report Michel!


Michel Vanhamme - 05/Jul/06 06:35 AM
I realized after reporting the issue that my fix was incorrect. I'm glad you didn't follow it!

Jayson Minard - 11/Jul/06 11:54 AM
0.1.5 released