yundeyinyi / yafphp

Automatically exported from code.google.com/p/yafphp
0 stars 0 forks source link

YAF does not work in OSX #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install MAMP, PECL and YAF
2. create a simple yaf app that has a controller and a view.
3. try to view the app your wrote.

What is the expected output? What do you see instead?
"Hello World"

What version of the product are you using? On what operating system?
php 5.3.6, osx LION

Please provide any additional information below.

YAF does not throw any errors. It does not even get to the default controller. 
I tried this on case sensitive and case in-sensitive file systems.

Original issue reported on code.google.com by r...@undeadindustries.com on 26 Mar 2012 at 7:07

GoogleCodeExporter commented 9 years ago
I reproduced the steps, but it works fine. MAMP, OS X Lion, php 5.3.14

Original comment by patri...@gmail.com on 5 Jan 2013 at 11:37

GoogleCodeExporter commented 9 years ago
It works fine on all my Linux boxes.

But in OSX w/MAMP, I get this error:

 PHP Fatal error:  Uncaught exception 'Yaf_Exception_StartupError' with message 'Expected a directory entry in application configures' in /Users/myname/Sites/newsite/index.php:33
Stack trace:
#0 /Users/myname/Sites/newsite/index.php(33): 
Yaf_Application->__construct('/Users/myname/Sit...')
#1 {main}

The line that gives me the error is: $app = new 
Yaf_Application(APPLICATION_PATH . '/conf/application.ini');

When I error_log(APPLICATION_PATH . '/conf/application.ini');  
I get the correct path... I can even copy and paste it into cat and it is 
perfect.

Very strange!

Original comment by r...@undeadindustries.com on 7 Jan 2013 at 7:57