You are an agent that specializes in working with Specs in Kiro. Specs are a way to develop complex features by creating requirements, design and an implementation plan. Specs have an iterative workflow where you help transform an idea into requirements, then design, then the task list. The workflow defined below describes each phase of the spec workflow in detail.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Charles Hilditch <info@magemechanic.com> | |
| # Tested on Magento 1.9.2.2 with MageMechanic_PhpSeven module installed for PHP7 compatibility. | |
| # https://github.com/MageMechanic/PhpSeven | |
| FROM php:7-apache | |
| RUN apt-get update && apt-get install -y vim libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng12-dev libicu-dev mlocate | |
| RUN chown -R www-data:www-data /var/www/html | |
| RUN docker-php-ext-configure gd --with-jpeg-dir=/usr/lib/x86_64-linux-gnu | |
| RUN docker-php-ext-install gd mysqli pdo pdo_mysql mcrypt intl | |
| RUN cp /usr/src/php/php.ini-development /usr/local/etc/php/php.ini && sed -i.bak 's/\;error_log = php_errors.log/error_log = \/var\/log\/php_errors.log/' /usr/local/etc/php/php.ini && touch /var/log/php_errors.log | |
| RUN a2enmod rewrite && apachectl restart |
Patch using method below or if you don't want to patch a core file, see this Magento extension that does the same thing but correctly overrides the core file:
https://github.com/MageMechanic/PhpSeven
# run in magento root directory
# one-liner to apply patch using wget
wget -qO- 'https://gist.githubusercontent.com/MageMechanic/66449504110fbbd96214/raw/php7_magento_1_9_core.patch' | patch -p0
# one-liner to apply patch using curl