php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36200 get_object_vars crashes
Submitted: 2006-01-29 14:27 UTC Modified: 2006-01-29 16:07 UTC
From: marc dot bachmann at greencardshop dot de Assigned:
Status: Not a bug Package: COM related
PHP Version: 5.1.2 OS: Win XP
Private report: No CVE-ID: None
 [2006-01-29 14:27 UTC] marc dot bachmann at greencardshop dot de
Description:
------------
get_object_vars crashed with object from COM-class

Reproduce code:
---------------
<?php

$outlook = new COM("Outlook.Application") or die("Kann Outlook nicht ?ffnen");
$namespace = $outlook->GetNameSpace("MAPI");
$contacts = $namespace->GetDefaultFolder(10);
$messages = $contacts->Items;
$length = $messages->count;

for ($i = 1; $i <= $length ; $i++)
{
  $item = $messages->Item($i);
  $arr = get_object_vars($item);
  print_r($arr);
  die();
}

?>

Expected result:
----------------
array (...)

Actual result:
--------------
crash

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-29 16:07 UTC] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See bug #34297
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC