src/Php polyfills.php

Functions

each()

each(array  $array) : array|false

Returns the current key and value of an array and advances the pointer.

Parameters

array $array

The array to read, by reference.

Returns

array|false —

The pair as both [0, 1] and ['key', 'value'], or false past the end.

get_magic_quotes_gpc()

get_magic_quotes_gpc() : bool

Reports magic quotes for request data, which PHP removed in 8.0.

Returns

bool —

Always false.

get_magic_quotes_runtime()

get_magic_quotes_runtime() : bool

Reports magic quotes for runtime data, which PHP removed in 8.0.

Returns

bool —

Always false.

set_magic_quotes_runtime()

set_magic_quotes_runtime(bool|int  $new_setting) : bool

Accepts a request to change runtime magic quotes, which no longer exist.

Parameters

bool|int $new_setting

The requested setting.

Returns

bool —

True when asked to disable them, false when asked to enable them.