-
Notifications
You must be signed in to change notification settings - Fork 1.4k
SkeletonApplication with Zend Framework 2.1.1 #161
Comments
Yes the same for me |
This problem has issue, i've modified my composer.json and it's work. "zendframework/zendframework": "2.1.x-dev", |
The solution posted by mtcocktail only works for applications that have the framework installed via composer in the vendor folder. If you have the framework elsewhere it won't work. The solution I found is to put the following lines: after the |
In my case, it was a problem in the "Zend/Stdlib/compatibility/autoload.php" and the "Zend/Session/compatibilty/autoload.php". The release-2.1.1 contains "if (version_compare(PHP_VERSION, '5.3.3', 'le')) {" instead of "if (version_compare(PHP_VERSION, '5.3.4', 'lt')) {", which excludes strangly versioned PHP 5.3.3 packages of debian and ubuntu from loading some needed classes. It's solved in the master branch of zf2. |
@GordonSchmidt I changed thoese two files, and am still getting this error. Any idea what else to check? Thanks! |
Hii, I am also getting following error, Fatal error: Declaration of Zend\Stdlib\ArrayObject::offsetGet() must be compatible with that of ArrayAccess::offsetGet() in /var/www/vendor/zendframework/zendframework/library/Zend/Stdlib/ArrayObject.php on line 25. |
Hi,
since zf2.1.1 there seems to be an own implementation of ArrayObject which doesn't stick to the ArrayAccess-Interface (using PHP 5.3.3-7+squeeze14). This leeds to the error: "Fatal error: Declaration of Zend\Stdlib\ArrayObject::offsetGet() must be compatible with that of ArrayAccess::offsetGet() in //vendor/zendframework/zendframework/library/Zend/Stdlib/ArrayObject.php on line 25"
public function &offsetGet($key) vs. abstract public function offsetGet ($offset)
It seems to relate to this change: zendframework/zendframework#3684
I have to change "zendframework/zendframework": "2." to "zendframework/zendframework": "2.0." in the composer.json to make the ZendSkeletonApplication work on my maschine.
Does anyone know, what that's about?
Yours
Gordon
The text was updated successfully, but these errors were encountered: