Skip to content

Instantly share code, notes, and snippets.

@olragon
Created June 3, 2016 04:05
Show Gist options
  • Save olragon/1612fe3a63de572cfccd7f2ee71f625b to your computer and use it in GitHub Desktop.
Save olragon/1612fe3a63de572cfccd7f2ee71f625b to your computer and use it in GitHub Desktop.
Magento 1.9.1.0 with PHP 7 - patch
<?php
// link: https://www.atwix.com/magento/magento-and-php-7/
// file: app/code/core/Mage/Core/Model/Layout.php
// line: 555
$out .= $this->getBlock($callback[0])->$callback[1]();
// should be
$out .= $this->getBlock($callback[0])->{$callback[1]}();
<?php
// link: _self_
// file: lib/Varien/File/Uploader.php
// line: 259
$params['object']->$params['method']($this->_file['tmp_name']);
// should be
$params['object']->{$params['method']}($this->_file['tmp_name']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment