Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence du fichier extract.php

Structures de données

class  ZIPExtraction
 

Espaces de nommage

 Joomla\Administrator
 

Fonctions

if(defined('_JOOMLA_UPDATE_TESTING')) clearFileInOPCache (string $file)
 
 timingSafeEquals ($known, $user)
 
 setLongTimeout ()
 
 setHugeMemoryLimit ()
 

Variables

const _JOOMLA_UPDATE 1
 
 $retArray
 
 $configuration = getConfiguration()
 
 $enabled = !empty($configuration)
 
if($enabled) if (! $enabled)
 

Documentation des fonctions

◆ clearFileInOPCache()

if (defined( '_JOOMLA_UPDATE_TESTING')) clearFileInOPCache ( string  $file)

Invalidate a file in OPcache.

Only applies if the file has a .php extension.

Paramètres
string$fileThe filepath to clear from OPcache
Renvoie
boolean
Depuis
4.0.4

Références null.

Référencé par ZIPExtraction\processLastExtractedFile(), et ZIPExtraction\processTypeLink().

◆ setHugeMemoryLimit()

setHugeMemoryLimit ( )

Sets the memory limit to 1GiB

Renvoie
void
Depuis
4.2.0

◆ setLongTimeout()

setLongTimeout ( )

Sets the PHP timeout to 3600 seconds

Renvoie
void
Depuis
4.2.0

◆ timingSafeEquals()

timingSafeEquals (   $known,
  $user 
)

A timing safe equals comparison.

Uses the built-in hash_equals() method if it exists. It SHOULD exist, as it's available since PHP 5.6 whereas even Joomla 4.0 requires PHP 7.2 or later. If for any reason the built-in function is not available (for example, a host has disabled it because they do not understand the first thing about security) we will fall back to a safe, userland implementation.

Paramètres
string$knownThe known value to check against
string$userThe user submitted value to check
Renvoie
boolean True if the two strings are identical.
Depuis
4.0.4
Voir également
http://blog.ircmaxell.com/2014/11/its-all-about-time.html

Références $i, $result, et $user.

Documentation des variables

◆ $configuration

$configuration = getConfiguration()

◆ $enabled

◆ $retArray

$retArray
Valeur initiale :
= [
'status' => true

◆ _JOOMLA_UPDATE

const _JOOMLA_UPDATE 1

Should you want to debug this file, please add a new line ABOVE this comment with the following contents (excluding the space star space at the start of this line):

define('_JOOMLA_UPDATE_DEBUG', 1);

This will do two things:

  • it will create the joomla_update.txt file in your site's temporary directory (default: tmp). This file contains a debug log, detailing everything extract.php is doing during the extraction of the Joomla update ZIP file.
  • It will prevent extract.php from being overwritten during the update with a new version. This is useful if you are testing any changes in extract.php you do not want accidentally overwritten, or if you are given a modified extract.php by a Joomla core contributor with changes which might fix your update problem.

◆ if

if ( $enabled) if(! $enabled)