Ticket #2505 (new バグ指摘) — at Version 3

Opened 10 years ago

Last modified 10 years ago

Windows 版 PHP5.3.28 以降で画面が真っ白になる

Reported by: nanasess Owned by: somebody
Priority: Milestone: EC-CUBE2.13.2
Component: フロント Version: 2.13.1
Keywords: Cc:
修正済み: yes

Description (last modified by nanasess) (diff)

 http://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=14203&forum=2

Windows 版 PHP5.3.28以降、 Smarty のテンプレートをコンパイルする際に、うまくリネームされなくなったようです。

未確認ですが、 PHP5.3.28 では、 Azure 以外の Windows 環境でも発生するかもしれません。

以下再現を確認した環境

  • Windows7 + インストーラ版PHP5.3.28 + Apache2.2.x
  • Windows Azure Websites (PHP5.3.28)

一時凌ぎのパッチを添付しておきます。 Smarty.core に手を入れるのはナンセンスなので、 根本的には SC_View あたりで対応できると良いと思います。

Change History

Changed 10 years ago by nanasess

暫定対応のパッチ

comment:1 Changed 10 years ago by nanasess

そもそもは、 EC-CUBE がファイル名を渡す際の行儀が悪いのが原因の模様。以下のようにファイル名を渡していたので、パッチでは、パスを正規化するようにしました。

修正前) D:\home\site\wwwroot/html/../data/Smarty/templates_c/default/\%%EA^EAE^EAE54A3C%%list.tpl.php

修正後) D:/home/site/wwwroot/html/../data/Smarty/templates_c/default/%%EA^EAE^EAE54A3C%%list.tpl.php

comment:2 Changed 10 years ago by nanasess

これの副作用かも。  https://bugs.php.net/bug.php?id=63241

comment:3 Changed 10 years ago by nanasess

  • Description modified (diff)
  • Summary changed from Windows Azure Websites で画面が真っ白になる to Windows 版 PHP5.3.28 以降で画面が真っ白になる
Note: See TracTickets for help on using tickets.