/    Sign up×
Community /Pin to ProfileBookmark

Reflection with overloaded objects

Well the title says most of it.. When I use reflection with anyother object/class/function it works as intended. However when I try to use it with an overloaded object like COM, it crashes apache. It is really phpt2.dll that crashes and then in turn brings apache down.. ?

Here is the code that I am using.. (simple com and simple reflection)

[code=php]
<?php
$com = new COM(‘powerpoint.application’) or die (‘Unable to instantiate PowerPoint’);
Reflection::export(new ReflectionObject($com));
$com->quit();
?>
[/code]

As I said the over loaded object returned from COM seems to crash apache.

Any suggestions as to why this is happening or a possible work around would be great..

Thanks,
Tom

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @tomfmason spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...