mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 09:34:54 +02:00
Fixed a bunch of PHP 7.4 syntax errors
- FIX: Removed pointless (and invalid) destructor in LinkedIn::__destruct() - FIX: All files that trigger this deprecation notice in PHP 7.4: "Array and string offset access syntax with curly braces is deprecated"
This commit is contained in:
@@ -383,7 +383,7 @@ if (!defined("PCL_TAR"))
|
||||
}
|
||||
|
||||
// ----- Call the extracting fct
|
||||
if (($v_result = PclTarHandleExtract($p_tarname, 0, &$p_list, "complete", $p_path, $v_tar_mode, $p_remove_path)) != 1)
|
||||
if (($v_result = PclTarHandleExtract($p_tarname, 0, $p_list, "complete", $p_path, $v_tar_mode, $p_remove_path)) != 1)
|
||||
{
|
||||
TrFctEnd(__FILE__, __LINE__, 0, PclErrorString());
|
||||
return(0);
|
||||
@@ -445,7 +445,7 @@ if (!defined("PCL_TAR"))
|
||||
if (is_array($p_filelist))
|
||||
{
|
||||
// ----- Call the extracting fct
|
||||
if (($v_result = PclTarHandleExtract($p_tarname, $p_filelist, &$p_list, "partial", $p_path, $v_tar_mode, $p_remove_path)) != 1)
|
||||
if (($v_result = PclTarHandleExtract($p_tarname, $p_filelist, $p_list, "partial", $p_path, $v_tar_mode, $p_remove_path)) != 1)
|
||||
{
|
||||
TrFctEnd(__FILE__, __LINE__, 0, PclErrorString());
|
||||
return(0);
|
||||
@@ -459,7 +459,7 @@ if (!defined("PCL_TAR"))
|
||||
$v_list = explode(" ", $p_filelist);
|
||||
|
||||
// ----- Call the extracting fct
|
||||
if (($v_result = PclTarHandleExtract($p_tarname, $v_list, &$p_list, "partial", $p_path, $v_tar_mode, $p_remove_path)) != 1)
|
||||
if (($v_result = PclTarHandleExtract($p_tarname, $v_list, $p_list, "partial", $p_path, $v_tar_mode, $p_remove_path)) != 1)
|
||||
{
|
||||
TrFctEnd(__FILE__, __LINE__, 0, PclErrorString());
|
||||
return(0);
|
||||
@@ -534,7 +534,7 @@ if (!defined("PCL_TAR"))
|
||||
if (is_integer($p_index))
|
||||
{
|
||||
// ----- Call the extracting fct
|
||||
if (($v_result = PclTarHandleExtractByIndexList($p_tarname, $p_index, &$p_list, $p_path, $p_remove_path, $v_tar_mode)) != 1)
|
||||
if (($v_result = PclTarHandleExtractByIndexList($p_tarname, $p_index, $p_list, $p_path, $p_remove_path, $v_tar_mode)) != 1)
|
||||
{
|
||||
TrFctEnd(__FILE__, __LINE__, 0, PclErrorString());
|
||||
return(0);
|
||||
@@ -545,7 +545,7 @@ if (!defined("PCL_TAR"))
|
||||
else if (is_string($p_index))
|
||||
{
|
||||
// ----- Call the extracting fct
|
||||
if (($v_result = PclTarHandleExtractByIndexList($p_tarname, $p_index, &$p_list, $p_path, $p_remove_path, $v_tar_mode)) != 1)
|
||||
if (($v_result = PclTarHandleExtractByIndexList($p_tarname, $p_index, $p_list, $p_path, $p_remove_path, $v_tar_mode)) != 1)
|
||||
{
|
||||
TrFctEnd(__FILE__, __LINE__, 0, PclErrorString());
|
||||
return(0);
|
||||
@@ -603,7 +603,7 @@ if (!defined("PCL_TAR"))
|
||||
if (is_array($p_filelist))
|
||||
{
|
||||
// ----- Call the extracting fct
|
||||
if (($v_result = PclTarHandleDelete($p_tarname, $p_filelist, &$p_list, $p_mode)) != 1)
|
||||
if (($v_result = PclTarHandleDelete($p_tarname, $p_filelist, $p_list, $p_mode)) != 1)
|
||||
{
|
||||
TrFctEnd(__FILE__, __LINE__, 0, PclErrorString());
|
||||
return(0);
|
||||
@@ -617,7 +617,7 @@ if (!defined("PCL_TAR"))
|
||||
$v_list = explode(" ", $p_filelist);
|
||||
|
||||
// ----- Call the extracting fct
|
||||
if (($v_result = PclTarHandleDelete($p_tarname, $v_list, &$p_list, $p_mode)) != 1)
|
||||
if (($v_result = PclTarHandleDelete($p_tarname, $v_list, $p_list, $p_mode)) != 1)
|
||||
{
|
||||
TrFctEnd(__FILE__, __LINE__, 0, PclErrorString());
|
||||
return(0);
|
||||
@@ -676,7 +676,7 @@ if (!defined("PCL_TAR"))
|
||||
if (is_array($p_filelist))
|
||||
{
|
||||
// ----- Call the extracting fct
|
||||
if (($v_result = PclTarHandleUpdate($p_tarname, $p_filelist, &$p_list, $p_mode, $p_add_dir, $p_remove_dir)) != 1)
|
||||
if (($v_result = PclTarHandleUpdate($p_tarname, $p_filelist, $p_list, $p_mode, $p_add_dir, $p_remove_dir)) != 1)
|
||||
{
|
||||
TrFctEnd(__FILE__, __LINE__, 0, PclErrorString());
|
||||
return(0);
|
||||
@@ -690,7 +690,7 @@ if (!defined("PCL_TAR"))
|
||||
$v_list = explode(" ", $p_filelist);
|
||||
|
||||
// ----- Call the extracting fct
|
||||
if (($v_result = PclTarHandleUpdate($p_tarname, $v_list, &$p_list, $p_mode, $p_add_dir, $p_remove_dir)) != 1)
|
||||
if (($v_result = PclTarHandleUpdate($p_tarname, $v_list, $p_list, $p_mode, $p_add_dir, $p_remove_dir)) != 1)
|
||||
{
|
||||
TrFctEnd(__FILE__, __LINE__, 0, PclErrorString());
|
||||
return(0);
|
||||
@@ -2719,7 +2719,7 @@ if (!defined("PCL_TAR"))
|
||||
$v_binary_data = gzread($v_tar, 512);
|
||||
|
||||
// ----- Read the header properties
|
||||
if (($v_result = PclTarHandleReadHeader($v_binary_data, &$v_header)) != 1)
|
||||
if (($v_result = PclTarHandleReadHeader($v_binary_data, $v_header)) != 1)
|
||||
{
|
||||
// ----- Close the archive file
|
||||
if ($p_tar_mode == "tar")
|
||||
@@ -3011,7 +3011,7 @@ if (!defined("PCL_TAR"))
|
||||
$v_binary_data = gzread($v_tar, 512);
|
||||
|
||||
// ----- Read the header properties
|
||||
if (($v_result = PclTarHandleReadHeader($v_binary_data, &$v_header)) != 1)
|
||||
if (($v_result = PclTarHandleReadHeader($v_binary_data, $v_header)) != 1)
|
||||
{
|
||||
// ----- Close the archive file
|
||||
if ($p_tar_mode == "tar")
|
||||
@@ -3556,4 +3556,4 @@ if (!defined("PCL_TAR"))
|
||||
|
||||
// ----- End of double include look
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user