From 51bc5c9acdabd49a63e8890823ecc6543a1a47b2 Mon Sep 17 00:00:00 2001 From: Kentaro Ohkouchi Date: Mon, 8 Jun 2020 21:50:49 +0900 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E3=81=8D=E3=81=AA=E3=82=B5=E3=82=A4?= =?UTF-8?q?=E3=82=BA=E3=81=AECSV=E3=82=92=E6=89=B1=E3=81=88=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=82=BF=E3=82=A4=E3=83=A0=E3=82=A2=E3=82=A6?= =?UTF-8?q?=E3=83=88=E3=82=92=E5=BB=B6=E9=95=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Eccube/Doctrine/Common/CsvDataFixtures/CsvFixture.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Eccube/Doctrine/Common/CsvDataFixtures/CsvFixture.php b/src/Eccube/Doctrine/Common/CsvDataFixtures/CsvFixture.php index 79a7285255b..a95ad64af88 100644 --- a/src/Eccube/Doctrine/Common/CsvDataFixtures/CsvFixture.php +++ b/src/Eccube/Doctrine/Common/CsvDataFixtures/CsvFixture.php @@ -82,6 +82,12 @@ public function load(ObjectManager $manager) // batch insert $result = $prepare->execute(); $this->file->next(); + // 大きなサイズのCSVを扱えるようタイムアウトを延長する + $seconds + = is_numeric(ini_get('max_execution_time')) + ? intval(ini_get('max_execution_time')) + : intval(get_cfg_var('max_execution_time')); + set_time_limit($seconds); } $Connection->commit();