Код: Выделить всё
<?php
$empty = new VARIANT(NULL,VT_NULL);
com_print_typeinfo($empty);
?>
Apache-2.0.50 (Win32)
PHP-5.2.1
ZendOptimizer-3.2.2
Код: Выделить всё
<?php
$empty = new VARIANT(NULL,VT_NULL);
com_print_typeinfo($empty);
?>
Код: Выделить всё
<?php
$v = new variant(null, VT_NULL);
echo variant_get_type($v);
//com_print_typeinfo($empty);
?>
X-Powered-By: PHP/5.2.5
Content-type: text/html
1
Код: Выделить всё
<?php
$oExplorer = new COM("Shell.Application");
com_print_typeinfo($oExplorer);
?>
X-Powered-By: PHP/5.2.5
Content-type: text/html
class IShellDispatch4 { /* GUID={EFD84B2D-4BCF-4298-BE25-EB542A59FBDA} */
/* DISPID=1610940416 */
/* VT_HRESULT [25] */
function WindowsSecurity(
)
{
/* Windows Security */
}
/* DISPID=1610940417 */
/* VT_HRESULT [25] */
function ToggleDesktop(
)
{
/* Raise/lower the desktop */
}
/* DISPID=1610940418 */
/* VT_HRESULT [25] */
function ExplorerPolicy(
/* VT_BSTR [8] [in] */ $bstrPolicyName,
/* VT_PTR [26] [out] --> VT_VARIANT [12] */ &$pValue
)
{
/* Return explorer policy value */
}
/* DISPID=1610940419 */
/* VT_HRESULT [25] */
function GetSetting(
/* VT_I4 [3] [in] */ $lSetting,
/* VT_PTR [26] [out] --> VT_BOOL [11] */ &$pResult
)
{
/* Return shell global setting */
}
}
Код: Выделить всё
<?php
com_print_typeinfo(new ArrayObject());
?>
X-Powered-By: PHP/5.2.5
Content-type: text/html
<br />
<b>Fatal error</b>: Uncaught exception 'com_exception' with message 'expected a variant object' in PHPDocument1:2
Stack trace:
#0 PHPDocument1(2): com_print_typeinfo(Object(ArrayObject))
#1 C:\Program Files\Zend\ZendStudio-5.5.1\bin\php5\dummy.php(1): include('PHPDocument1')
#2 {main}
thrown in <b>PHPDocument1</b> on line <b>2</b><br />