Statement on glibc/iconv Vulnerability

posix_sysconf

(PHP 8 >= 8.3.0)

posix_sysconfLiefert Laufzeitinformationen des Systems

Beschreibung

posix_sysconf(int $conf_id): int

Gibt Laufzeitinformationen des Systems zurück.

Parameter-Liste

conf_id

Der Bezeichner der Variablen; eine der folgenden Konstanten: POSIX_SC_ARG_MAX, POSIX_SC_PAGESIZE POSIX_SC_NPROCESSORS_CONF, POSIX_SC_NPROCESSORS_ONLN

Rückgabewerte

Gibt den numerischen Wert für conf_id zurück.

Beispiele

Beispiel #1 posix_sysconf()-Beispiel

Gibt die Anzahl der aktiven CPUs zurück.

<?php
echo posix_sysconf(POSIX_SC_NPROCESSORS_ONLN);
?>

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

2
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top