var_dump()の代わりにcom_print_typeinfo()を使用できます。 これは、COM、VARIANT、およびDOTNETオブジェクトで有効です。出力は次のようになります。
class IFile { /* GUID={C7C3F5A4-88A3-11D0-ABCB-00A0C90FFFC0} */
// some PHP-COM internal stuff ...
/* DISPID=1610612736 */
function QueryInterface(
/* VT_PTR [26] [in] --> ? [29] */ &$riid,
/* VT_PTR [26] [out] --> VT_PTR [26] */ &$ppvObj
)
{
}
/* DISPID=1610612737 */
/* VT_UI4 [19] */
function AddRef(
)
{
}
// ...
/* DISPID=1610678275 */
function Invoke(
/* VT_I4 [3] [in] */ $dispidMember,
/* VT_PTR [26] [in] --> ? [29] */ &$riid,
/* VT_UI4 [19] [in] */ $lcid,
/* VT_UI2 [18] [in] */ $wFlags,
/* VT_PTR [26] [in] --> ? [29] */ &$pdispparams,
/* VT_PTR [26] [out] --> VT_VARIANT [12] */ &$pvarResult,
/* VT_PTR [26] [out] --> ? [29] */ &$pexcepinfo,
/* VT_PTR [26] [out] --> VT_UINT [23] */ &$puArgErr
)
{
}
// properties and methods of the COM object
// ...
/* DISPID=1001 */
/* VT_BSTR [8] */
/* Short name */
var $ShortName;
/* DISPID=1004 */
/* VT_PTR [26] */
/* Get drive that contains file */
var $Drive;
/* DISPID=1005 */
/* VT_PTR [26] */
/* Get folder that contains file */
var $ParentFolder;
// ...
/* DISPID=1204 */
function Move(
/* VT_BSTR [8] [in] */ $Destination
)
{
/* Move this file */
}
/* DISPID=1100 */
/* VT_PTR [26] */
function OpenAsTextStream(
/* ? [29] [in] */ $IOMode,
/* ? [29] [in] */ $Format
)
{
/* Open a file as a TextStream */
}
}
の関連バグ()/ますprint_r()と言いますか? –
'print_r($ data)'は 'Variant Object'を返します。 'var_dump'は何らかの理由でPHPをクラッシュさせます。 – shaiss