After instalations... some errors

Deprecated: Assigning the return value of new by reference is deprecated in G:\Projectos\www\mySite\includes.php on line 10

Deprecated: Assigning the return value of new by reference is deprecated in G:\Projectos\www\zoop\zoop.php on line 120

Fatal error: Call to undefined function define_once() in G:\Projectos\www\zoop\app\defaultConstants.php on line 2

 This happens when you are

 This happens when you are running Zoop 1.5 in PHP 5 with too strict error settings.

Unfortunately we are not going to spend the time to resolve deprecated calls in the 1.x branch as we are devoting all of our time to the upcoming 2.0 branch. 

Co-Author of Zoop Framework
http://spf13.com

 

steve.francia 19 Nov 2009

Actually the 3rd error,

Actually the 3rd error, Fatal error, is caused by the /zoop/app/define.php file starting with "<?" instead of "<?php". When I made that change I quit getting the Fatal error.

BiggMakk 28 Nov 2009

Fix committed to lunar branch.

Ooh. That makes sense... The framework code standards say not to use short tags (or closing tags) for future code, but we have a bunch of legacy files with this issue.

I've fixed a whole bunch of instances of this in the Lunar branch. This will need to be done on the 1.5 branch as well. Someone (I imagine jmorant?) can run the following to find files with this problem:

find . -name "*.php"|xargs grep -xl "<?"
find . -name "*.php"|xargs grep -xl "?>"

justin 30 Nov 2009