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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
25 + 42 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Sun Jun 16 21:01:29 2024 UTC