When using the deprecated e modifier, this function escapes * some characters (namely ', ", * \ and NULL) in the strings that replace the * backreferences. This is done to ensure that no syntax errors arise * from backreference usage with either single or double quotes (e.g. * 'strlen(\'$1\')+strlen("$2")'). Make sure you are * aware of PHP's string * syntax to know exactly how the interpreted string will look. * @param string|array|string[] $subject The string or an array with strings to search and replace. * * If subject is an array, then the search and * replace is performed on every entry of subject, * and the return value is an array as well. * @param int $limit The maximum possible replacements for each pattern in each * subject string. Defaults to * -1 (no limit). * @param int $count If specified, this variable will be filled with the number of * replacements done. * @return string|array|string[] preg_replace returns an array if the * subject parameter is an array, or a string * otherwise. * * If matches are found, the new subject will * be returned, otherwise subject will be * returned unchanged. * * @throws PcreException * */ function preg_replace($pattern, $replacement, $subject, int $limit = -1, int &$count = null) { error_clear_last(); $result = \preg_replace($pattern, $replacement, $subject, $limit, $count); if (preg_last_error() !== PREG_NO_ERROR || $result === null) { throw PcreException::createFromPhpError(); } return $result; } /** * @param resource|null $dir_handle * @return string|false * @deprecated * This function is only in safe because the php documentation is wrong */ function readdir($dir_handle = null) { if ($dir_handle !== null) { $result = \readdir($dir_handle); } else { $result = \readdir(); } return $result; } /** * Encrypts given data with given method and key, returns a raw * or base64 encoded string * * @param string $data The plaintext message data to be encrypted. * @param string $method The cipher method. For a list of available cipher methods, use openssl_get_cipher_methods. * @param string $key The key. * @param int $options options is a bitwise disjunction of the flags * OPENSSL_RAW_DATA and * OPENSSL_ZERO_PADDING. * @param string $iv A non-NULL Initialization Vector. * @param string $tag The authentication tag passed by reference when using AEAD cipher mode (GCM or CCM). * @param string $aad Additional authentication data. * @param int $tag_length The length of the authentication tag. Its value can be between 4 and 16 for GCM mode. * @return string Returns the encrypted string. * @throws OpensslException * */ function openssl_encrypt(string $data, string $method, string $key, int $options = 0, string $iv = "", string &$tag = "", string $aad = "", int $tag_length = 16): string { error_clear_last(); // The $tag parameter is handled in a weird way by openssl_encrypt. It cannot be provided unless encoding is AEAD if (func_num_args() <= 5) { $result = \openssl_encrypt($data, $method, $key, $options, $iv); } else { $result = \openssl_encrypt($data, $method, $key, $options, $iv, $tag, $aad, $tag_length); } if ($result === false) { throw OpensslException::createFromPhpError(); } return $result; } /** * The function socket_write writes to the * socket from the given * buffer. * * @param resource $socket * @param string $buffer The buffer to be written. * @param int $length The optional parameter length can specify an * alternate length of bytes written to the socket. If this length is * greater than the buffer length, it is silently truncated to the length * of the buffer. * @return int Returns the number of bytes successfully written to the socket. * The error code can be retrieved with * socket_last_error. This code may be passed to * socket_strerror to get a textual explanation of the * error. * @throws SocketsException * */ function socket_write($socket, string $buffer, int $length = 0): int { error_clear_last(); $result = $length === 0 ? \socket_write($socket, $buffer) : \socket_write($socket, $buffer, $length); if ($result === false) { throw SocketsException::createFromPhpError(); } return $result; } Shop | WETBAG
Sort by:

Shop

-17%

MHwan Wetbag Kindergarten, wasserdichter Doppelreißverschluss zur getrennten Aufbewahrung

Aktueller Preis ist: 10,99 €. Ursprünglicher Preis war: 12,99 €
13
-17%

MHwan Wetbag mit Doppelreißverschluss zur getrennten Aufbewahrung Nasser & trockener Kleidung

Aktueller Preis ist: 10,99 €. Ursprünglicher Preis war: 12,99 €
13
-17%

MHwan Wetbag, Wasserdichter Doppelreißverschluss zur getrennten Aufbewahrung

Aktueller Preis ist: 10,99 €. Ursprünglicher Preis war: 12,99 €
10