PHP Doku:: Creates a chdb instance - chdb.construct.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige DiensteConstant hash databaseThe chdb classchdb::__construct

Ein Service von Reinhard Neidl - Webprogrammierung.

The chdb class

<<The chdb class

chdb::get>>

chdb::__construct

(PECL chdb >= 0.1.0)

chdb::__constructCreates a chdb instance

Beschreibung

chdb::__construct ( string $pathname )

Loads a chdb file, by mapping it into memory.

Hinweis:

While some validity checks are performed on the specified file, they are mostly there to avoid the possibility of common mistakes (for example, loading a file which is not a chdb database, or that is somehow incompatible with the current system). A maliciously crafted chdb file can thus be dangerous if loaded, so chdb files should be trusted and treated with the same security protections used for PHP shared libraries.

Parameter-Liste

pathname

The name of the file to load.

Fehler/Exceptions

Throws an exception in case the chdb file hasn't been successfully loaded.

Hinweis:

A valid chdb file might fail to load in case it was created on an architecture with a different endianness, with a different version of chdb, or if the file is too big to be mapped into memory (mostly in case of huge files and 32-bit architectures). In these cases the load will fail by throwing an exception, but otherwise not performing any illegal operation.


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)