Skip to content

Commit a0e1e30

Browse files
committed
Fixing openssl_encrypt
1 parent 2c69118 commit a0e1e30

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

generated/libxml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* Retrieve last error from libxml.
99
*
10-
* @return object Returns a LibXMLError object if there is any error in the
10+
* @return libXMLError Returns a LibXMLError object if there is any error in the
1111
* buffer, FALSE otherwise.
1212
* @throws LibxmlException
1313
*

generated/shmop.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* shmop_delete is used to delete a shared memory block.
99
*
10-
* @param int $shmid The shared memory block resource created by
10+
* @param resource $shmid The shared memory block resource created by
1111
* shmop_open
1212
* @throws ShmopException
1313
*
@@ -25,7 +25,7 @@ function shmop_delete($shmid): void
2525
/**
2626
* shmop_read will read a string from shared memory block.
2727
*
28-
* @param int $shmid The shared memory block identifier created by
28+
* @param resource $shmid The shared memory block identifier created by
2929
* shmop_open
3030
* @param int $start Offset from which to start reading
3131
* @param int $count The number of bytes to read.
@@ -48,7 +48,7 @@ function shmop_read($shmid, int $start, int $count): string
4848
/**
4949
* shmop_write will write a string into shared memory block.
5050
*
51-
* @param int $shmid The shared memory block identifier created by
51+
* @param resource $shmid The shared memory block identifier created by
5252
* shmop_open
5353
* @param string $data A string to write into shared memory block
5454
* @param int $offset Specifies where to start writing data inside the shared memory

lib/special_cases.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,14 @@ function preg_replace($pattern, $replacement, $subject, int $limit = -1, int &$c
172172
* OPENSSL_RAW_DATA and
173173
* OPENSSL_ZERO_PADDING.
174174
* @param string $iv A non-NULL Initialization Vector.
175-
* @param string|null $tag The authentication tag passed by reference when using AEAD cipher mode (GCM or CCM).
175+
* @param string $tag The authentication tag passed by reference when using AEAD cipher mode (GCM or CCM).
176176
* @param string $aad Additional authentication data.
177177
* @param int $tag_length The length of the authentication tag. Its value can be between 4 and 16 for GCM mode.
178178
* @return string Returns the encrypted string.
179179
* @throws OpensslException
180180
*
181181
*/
182-
function openssl_encrypt(string $data, string $method, string $key, int $options = 0, string $iv = "", string &$tag = null, string $aad = "", int $tag_length = 16): string
182+
function openssl_encrypt(string $data, string $method, string $key, int $options = 0, string $iv = "", string &$tag, string $aad = "", int $tag_length = 16): string
183183
{
184184
error_clear_last();
185185
// The $tag parameter is handled in a weird way by openssl_encrypt. It cannot be provided unless encoding is AEAD

0 commit comments

Comments
 (0)