Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<variant::__constructCOMPersistHelper::__construct>
^COMLast updated: Mon, 26 Oct 2026

The COMPersistHelper class

(PHP 5, PHP 7, PHP 8)

Introduction

COMPersistHelper improves the interoperability of COM and PHP with regard to the php.ini directive open_basedir, and stream resources.

Class synopsis

final class COMPersistHelper {
/* Methods */
public function __construct(?variant $variant = null)
public function GetCurFileName(): string|false
public function GetMaxStreamSize(): int
public function InitNew(): bool
public function LoadFromFile(string $filename, int $flags = 0): bool
public function LoadFromStream(resource $stream): bool
public function SaveToFile(?string $filename, bool $remember = true): bool
public function SaveToStream(resource $stream): bool
}

Table of Contents


<variant::__constructCOMPersistHelper::__construct>
^COMLast updated: Mon, 26 Oct 2026