Comments (1)
We hacked a fix into the core file, but obviously this is not an ideal solution for upgradability. Not sure what the best path is for future compatibility.
--- lib/Zend/Cache/Backend.php (revision 930)
+++ lib/Zend/Cache/Backend.php (revision 931)
@@ -76,6 +76,17 @@
public function setDirectives($directives)
{
if (!is_array($directives)) Zend_Cache::throwException('Directives parameter must be an array');
+ // Core hack to fix notice: Deprecated functionality: The each() function is deprecated. This message will be suppressed on further calls in /mnt/www//lib/Zend/Cache/Backend.php on line 79
+ foreach($directives as $name => $value) {
+ if (!is_string($name)) {
+ Zend_Cache::throwException("Incorrect option name : $name");
+ }
+ $name = strtolower($name);
+ if (array_key_exists($name, $this->_directives)) {
+ $this->_directives[$name] = $value;
+ }
+ }
+ /*
while (list($name, $value) = each($directives)) {
if (!is_string($name)) {
Zend_Cache::throwException("Incorrect option name : $name");
@@ -86,6 +97,7 @@
}
}
+ */
$this->_loggerSanity();
}
from inchoo_php7.
Related Issues (20)
- Thumbnails not showing HOT 2
- __autoload deprecated issue HOT 2
- isSessionOverriden wrong message
- Magento 1.9.3.6 - PHP7.0 - Paypal Express checkout not working
- Class 'Inchoo_PHP7_Helper_Data' not found after uninstall HOT 1
- Running on PHP 7.1 page HOT 3
- PHP7.2 Dev mode - session_module_name HOT 2
- PHP7.2 getAllOptions() HOT 13
- PHP 7.1 Suport HOT 8
- Cannot use magento package manager, error 500 blank page
- Magento 1.9.3.x and PHP 7.2.x when adding to cart produces warning HOT 2
- PHP 7.2.x produces recoverable error when using "user" mode for session management HOT 1
- Does it support PHP 7.3.x? HOT 5
- Inchoo_PHP7_Helper_Data class not found HOT 1
- The each function in Magento with PHP 7.2
- Does 1.9.3.10 include this (or Magento's) PHP 7.2 fixes? HOT 4
- Topological order for totals calculation not in offical patch? HOT 2
- Php 7.2 + M1.9.4.x : can no longer link child (associated) products to parent configurables in admin HOT 1
- error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inchoo_php7.