|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36360 PHP crashes when accessing an object that was just create by parent object
Submitted: 2006-02-10 17:59 UTC Modified: 2020-02-16 04:22 UTC
Avg. Score:4.0 ± 1.0
Reproduced:0 of 0 (0.0%)
From: karsten dot hohmeier at bbz-fulda dot de Assigned: cmb (profile)
Status: No Feedback Package: COM related
PHP Version: 5CVS-2006-02-10 (snap) OS: Windows Server 2003 SP1
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 — but make sure to vote on the bug!
Your email address:
Solve the problem:
42 + 36 = ?
Subscribe to this entry?

 [2006-02-10 17:59 UTC] karsten dot hohmeier at bbz-fulda dot de
I'm trying to automate MS ISA Server 2000 destination-set and filter-rule generation by using its COM Objects. The creation and modification processes perfectly works in VBS. When trying to implement those mechanisms with PHP the Script crashes whenever i try to modify newly created objects. The creation and modification is carried out and the rules are visible in ISA Managment afterwards, but the PHP Script does not cleanly exit. There are application errors (see below) logged in the system log when running from commandline and as apache module (apache crashes too).
If i do not try to modify any new objects the script terminates as expected.

I tried any available 5.x Version of PHP below but no change in behavior.

Reproduce code:
$FilterRuleName = "TestRule";

$objFPC = new COM("FPC.Root") or die("Unable to create FPC Objekt");
$MyFPCRuleSets = $objFPC->Arrays->GetContainingArray->ArrayPolicy->SiteAndContentRules;

unset($objFPC, $MyFPCRuleSets);
$objFPC = NULL;
$MyFPCRuleSets = NULL;

$objFPC = new COM("FPC.Root") or die("Unable to create FPC Objekt");
$MyFPCRule = $objFPC->Arrays->GetContainingArray->ArrayPolicy->SiteAndContentRules->Item($FilterRuleName);

echo $MyFPCRule->Name."\r\n";

$MyFPCRule->Description = "TestDesc"; <--- Crash on modification

unset($objFPC, $MyFPCRule);
$objFPC = NULL;
$MyFPCRule = NULL;

Expected result:
Clean exit of Script

Actual result:
PHP Crashes (commandline as well as Apache Module) and Logs 1 Event in the Applicationlog

Application Failure  php.exe in php5ts.dll at offset 00008fea


Application Failure  php.exe in php5ts.dll at offset 000093a9


Application Failure  php.exe in php5ts.dll at offset 00009b9aa


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-12-13 07:46 UTC]
-Status: Assigned +Status: Open -Assigned To: wez +Assigned To:
 [2020-02-07 08:25 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-02-07 08:25 UTC]
Can you still reproduce this with any of the actively supported
PHP versions[1]?

[1] <>
 [2020-02-16 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Feb 25 16:01:27 2024 UTC