--- a/wp/wp-admin/includes/class-pclzip.php Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-admin/includes/class-pclzip.php Fri Sep 05 18:40:08 2025 +0200
@@ -48,7 +48,7 @@
// 0 : PclZip Class integrated error handling
// 1 : PclError external library error handling. By enabling this
// you must ensure that you have included PclError library.
- // [2,...] : reserved for futur use
+ // [2,...] : reserved for future use
if (!defined('PCLZIP_ERROR_EXTERNAL')) {
define( 'PCLZIP_ERROR_EXTERNAL', 0 );
}
@@ -166,7 +166,7 @@
define( 'PCLZIP_CB_POST_EXTRACT', 78002 );
define( 'PCLZIP_CB_PRE_ADD', 78003 );
define( 'PCLZIP_CB_POST_ADD', 78004 );
- /* For futur use
+ /* For future use
define( 'PCLZIP_CB_PRE_LIST', 78005 );
define( 'PCLZIP_CB_POST_LIST', 78006 );
define( 'PCLZIP_CB_PRE_DELETE', 78007 );
@@ -632,9 +632,9 @@
// newer_exist : the file was not extracted because a newer file exists
// path_creation_fail : the file is not extracted because the folder
// does not exist and can not be created
- // write_error : the file was not extracted because there was a
+ // write_error : the file was not extracted because there was an
// error while writing the file
- // read_error : the file was not extracted because there was a error
+ // read_error : the file was not extracted because there was an error
// while reading the file
// invalid_header : the file was not extracted because of an archive
// format error (bad file header)
@@ -1170,8 +1170,8 @@
// ----- Reset the error handler
$this->privErrorReset();
- // ----- Look if the $p_archive is a PclZip object
- if (is_object($p_archive) && $p_archive instanceof pclzip)
+ // ----- Look if the $p_archive is an instantiated PclZip object
+ if ($p_archive instanceof pclzip)
{
// ----- Duplicate the archive
@@ -1234,8 +1234,8 @@
return(0);
}
- // ----- Look if the $p_archive_to_add is a PclZip object
- if (is_object($p_archive_to_add) && $p_archive_to_add instanceof pclzip)
+ // ----- Look if the $p_archive_to_add is an instantiated PclZip object
+ if ($p_archive_to_add instanceof pclzip)
{
// ----- Merge the archive
@@ -1364,12 +1364,12 @@
// Function : privCheckFormat()
// Description :
// This method check that the archive exists and is a valid zip archive.
- // Several level of check exists. (futur)
+ // Several level of check exists. (future)
// Parameters :
// $p_level : Level of check. Default 0.
// 0 : Check the first bytes (magic codes) (default value))
- // 1 : 0 + Check the central directory (futur)
- // 2 : 1 + Check each file header (futur)
+ // 1 : 0 + Check the central directory (future)
+ // 2 : 1 + Check each file header (future)
// Return Values :
// true on success,
// false on error, the error code is set.
@@ -1748,7 +1748,7 @@
case PCLZIP_CB_POST_EXTRACT :
case PCLZIP_CB_PRE_ADD :
case PCLZIP_CB_POST_ADD :
- /* for futur use
+ /* for future use
case PCLZIP_CB_PRE_DELETE :
case PCLZIP_CB_POST_DELETE :
case PCLZIP_CB_PRE_LIST :
@@ -1854,7 +1854,7 @@
$p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] = floor($v_memory_limit_int*PCLZIP_TEMPORARY_FILE_RATIO);
- // ----- Sanity check : No threshold if value lower than 1M
+ // ----- Confidence check : No threshold if value lower than 1M
if ($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] < 1048576) {
unset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD]);
}