Ticket #1919 (closed バグ指摘: 無効)

Opened 12 years ago

Last modified 12 years ago

IIS7.5 + PHP5.3.13 の環境でローカルフックポイントが動作しない場合がある

Reported by: nanasess Owned by: somebody
Priority: Milestone: EC-CUBE2.12.2
Component: その他 Version: 2.12.1
Keywords: Cc:
修正済み: no

Description

再現性が不明だが, 以下の環境でローカルフックポイントが動作しない場合がある.

カテゴリコンテンツプラグインは動作したが, 独自に作成したプラグインは動作しなかった.

EC-CUBE 2.12.1
サーバーOS Windows NT WIN-1O7B90MP0MP 6.1 build 7601 (Windows Server 2008 R2 Web Server Edition Service Pack 1) i586
DBサーバー MySQL 5.1.56-community
WEBサーバー Microsoft-IIS/7.5
PHP 5.3.13 (Core, bcmath, calendar, com_dotnet, ctype, date, ereg, filter, ftp, hash, iconv, json, mcrypt, SPL, odbc, pcre, Reflection, session, standard, mysqlnd, tokenizer, zip, zlib, libxml, dom, PDO, openssl, SimpleXML, wddx, xml, xmlreader, xmlwriter, cgi-fcgi, mysql, mysqli, mbstring, gd, gettext, curl, exif, xmlrpc, Phar, soap, pdo_mysql, pdo_sqlite, imap, tidy, sqlsrv, pdo_sqlsrv, mhash)
GD 有効 (GD Version => bundled (2.0.34 compatible), FreeType? Support => 1, FreeType? Linkage => with freetype, T1Lib Support => , GIF Read Support => 1, GIF Create Support => 1, JPEG Support => 1, PNG Support => 1, WBMP Support => 1, XPM Support => , XBM Support => 1, JIS-mapped Japanese Font Support => )
HTTPユーザーエージェント Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)

call_user_function_array() をコールしても黙殺されている模様. 最小限の再現コードを作成し, 確認する.

Attachments

WebMatrixPromblem.tar.gz Download (1.6 KB) - added by nanasess 12 years ago.
最小限の再現コード

Change History

Changed 12 years ago by nanasess

最小限の再現コード

comment:1 Changed 12 years ago by nanasess

  • Component changed from 管理画面 to その他

ローカルフックポイントで定義する関数の引数に $objPage をリファレンスで渡すと動作しない模様

<?php

// OK
function hook_point_function_name($objPage) {
    // 動作するコード
}

// NG
function hook_point_function_name(&$objPage) {
    // & をつけると動作しない
}

このバグが原因か?  https://bugs.php.net/bug.php?id=51174

このサンプルコードを使用すれば回避できた  http://jp2.php.net/manual/ja/function.call-user-func-array.php#100794

comment:2 Changed 12 years ago by nanasess

  • Status changed from new to closed
  • Resolution set to 無効

EC-CUBE 本体の不具合ではないのでクローズします

Note: See TracTickets for help on using tickets.