You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 16, 2018. It is now read-only.
@v-noskov@weierophinney We need to decide whether we should fixed this in Zend_Json or not.
Fixing it will make it behaves the same as PHP5 but null or empty string is indeed not a valid json and it is intended behavior on PHP7. See discussion on zendframework/zend-json#23. Whatever the final decision we should make Zend_Json and ZF2 zend-json behaves the same.
I think, that Zend_Json v.1.12.xx must preserve backward compatibility and demonstrate the same behaviour on all supported versions of php. Also, ZF2 components can have other behaviour than ZF1 components.
I have the following code that works on php 5.6 but throws Zend_Json_Exception on PHP7.
Each call causes Zend_Json_Exception.
This bug caused by https://bugs.php.net/bug.php?id=71718
Code:
runs without exceptions.
The text was updated successfully, but these errors were encountered: