Warning: strtok(): Both arguments must be provided when starting tokenization in /htdocs/cooperative-du-lauragais.fr/wp-content/mu-plugins/wp-such.php on line 1
Warning: strtok(): Both arguments must be provided when starting tokenization in /htdocs/cooperative-du-lauragais.fr/wp-content/mu-plugins/wp-such.php on line 1
e resulting file.
* @throws XdiffException
*
*/
function xdiff_file_patch_binary(string $file, string $patch, string $dest): void
{
error_clear_last();
$result = \xdiff_file_patch_binary($file, $patch, $dest);
if ($result === false) {
throw XdiffException::createFromPhpError();
}
}
/**
* Makes a binary diff of two files and stores the result in a patch file.
* The difference between this function and xdiff_file_bdiff is different
* algorithm used which should result in faster execution and smaller diff produced.
* This function works with both text and binary files. Resulting patch
* file can be later applied using xdiff_file_bpatch/xdiff_string_bpatch.
*
* For more details about differences between algorithm used please check libxdiff
* website.
*
* @param string $old_file Path to the first file. This file acts as "old" file.
* @param string $new_file Path to the second file. This file acts as "new" file.
* @param string $dest Path of the resulting patch file. Resulting file contains differences
* between "old" and "new" files. It is in binary format and is human-unreadable.
* @throws XdiffException
*
*/
function xdiff_file_rabdiff(string $old_file, string $new_file, string $dest): void
{
error_clear_last();
$result = \xdiff_file_rabdiff($old_file, $new_file, $dest);
if ($result === false) {
throw XdiffException::createFromPhpError();
}
}
/**
* Patches a string str with a binary patch.
* This function accepts patches created both via xdiff_string_bdiff
* and xdiff_string_rabdiff functions or their file counterparts.
*
* @param string $str The original binary string.
* @param string $patch The binary patch string.
* @return string Returns the patched string.
* @throws XdiffException
*
*/
function xdiff_string_bpatch(string $str, string $patch): string
{
error_clear_last();
$result = \xdiff_string_bpatch($str, $patch);
if ($result === false) {
throw XdiffException::createFromPhpError();
}
return $result;
}
/**
* Patches a string str with a binary patch.
* This function accepts patches created both via xdiff_string_bdiff
* and xdiff_string_rabdiff functions or their file counterparts.
*
* Starting with version 1.5.0 this function is an alias of xdiff_string_bpatch.
*
* @param string $str The original binary string.
* @param string $patch The binary patch string.
* @return string Returns the patched string.
* @throws XdiffException
*
*/
function xdiff_string_patch_binary(string $str, string $patch): string
{
error_clear_last();
$result = \xdiff_string_patch_binary($str, $patch);
if ($result === false) {
throw XdiffException::createFromPhpError();
}
return $result;
}
/**
* Patches a str string with an unified patch in patch parameter
* and returns the result. patch has to be an unified diff created by
* xdiff_file_diff/xdiff_string_diff function.
* An optional flags parameter specifies mode of operation. Any
* rejected parts of the patch will be stored inside error variable if
* it is provided.
*
* @param string $str The original string.
* @param string $patch The unified patch string. It has to be created using xdiff_string_diff,
* xdiff_file_diff functions or compatible tools.
* @param int $flags flags can be either
* XDIFF_PATCH_NORMAL (default mode, normal patch)
* or XDIFF_PATCH_REVERSE (reversed patch).
*
* Starting from version 1.5.0, you can also use binary OR to enable
* XDIFF_PATCH_IGNORESPACE flag.
* @param string|null $error If provided then rejected parts are stored inside this variable.
* @return string Returns the patched string.
* @throws XdiffException
*
*/
function xdiff_string_patch(string $str, string $patch, int $flags = null, ?string &$error = null): string
{
error_clear_last();
if ($error !== null) {
$result = \xdiff_string_patch($str, $patch, $flags, $error);
} elseif ($flags !== null) {
$result = \xdiff_string_patch($str, $patch, $flags);
} else {
$result = \xdiff_string_patch($str, $patch);
}
if ($result === false) {
throw XdiffException::createFromPhpError();
}
return $result;
}
[$method])) {
$this->methodInjections[$method] = [];
}
$this->methodInjections[$method][] = $methodInjection;
}
public function completeFirstMethodInjection(MethodInjection $injection)
{
$method = $injection->getMethodName();
if (isset($this->methodInjections[$method][0])) {
// Merge
$this->methodInjections[$method][0]->merge($injection);
} else {
// Set
$this->addMethodInjection($injection);
}
}
public function setLazy(bool $lazy = null)
{
$this->lazy = $lazy;
}
public function isLazy() : bool
{
if ($this->lazy !== null) {
return $this->lazy;
}
// Default value
return false;
}
public function classExists() : bool
{
return $this->classExists;
}
public function isInstantiable() : bool
{
return $this->isInstantiable;
}
public function replaceNestedDefinitions(callable $replacer)
{
array_walk($this->propertyInjections, function (PropertyInjection $propertyInjection) use ($replacer) {
$propertyInjection->replaceNestedDefinition($replacer);
});
if ($this->constructorInjection) {
$this->constructorInjection->replaceNestedDefinitions($replacer);
}
array_walk($this->methodInjections, function ($injectionArray) use ($replacer) {
array_walk($injectionArray, function (MethodInjection $methodInjection) use ($replacer) {
$methodInjection->replaceNestedDefinitions($replacer);
});
});
}
/**
* Replaces all the wildcards in the string with the given replacements.
*
* @param string[] $replacements
*/
public function replaceWildcards(array $replacements)
{
$className = $this->getClassName();
foreach ($replacements as $replacement) {
$pos = strpos($className, DefinitionArray::WILDCARD);
if ($pos !== false) {
$className = substr_replace($className, $replacement, $pos, 1);
}
}
$this->setClassName($className);
}
public function __toString()
{
return (new ObjectDefinitionDumper)->dump($this);
}
private function updateCache()
{
$className = $this->getClassName();
$this->classExists = class_exists($className) || interface_exists($className);
if (! $this->classExists) {
$this->isInstantiable = false;
return;
}
$class = new ReflectionClass($className);
$this->isInstantiable = $class->isInstantiable();
}
}
Fatal error: Uncaught Error: Class "WPMU_DEV\Defender\Vendor\DI\Definition\ObjectDefinition" not found in /htdocs/cooperative-du-lauragais.fr/wp-content/plugins/defender-security/lib/packages/DI/Definition/Source/ReflectionBasedAutowiring.php:27
Stack trace:
#0 /htdocs/cooperative-du-lauragais.fr/wp-content/plugins/defender-security/lib/packages/DI/Definition/Source/ReflectionBasedAutowiring.php(42): WPMU_DEV\Defender\Vendor\DI\Definition\Source\ReflectionBasedAutowiring->autowire('WP_Defender\\Con...')
#1 /htdocs/cooperative-du-lauragais.fr/wp-content/plugins/defender-security/lib/packages/DI/Definition/Source/SourceChain.php(54): WPMU_DEV\Defender\Vendor\DI\Definition\Source\ReflectionBasedAutowiring->getDefinition('WP_Defender\\Con...')
#2 /htdocs/cooperative-du-lauragais.fr/wp-content/plugins/defender-security/lib/packages/DI/Container.php(155): WPMU_DEV\Defender\Vendor\DI\Definition\Source\SourceChain->getDefinition('WP_Defender\\Con...')
#3 /htdocs/cooperative-du-lauragais.fr/wp-content/plugins/defender-security/lib/packages/DI/Container.php(134): WPMU_DEV\Defender\Vendor\DI\Container->getDefinition('WP_Defender\\Con...')
#4 /htdocs/cooperative-du-lauragais.fr/wp-content/plugins/defender-security/src/traits/defender-bootstrap.php(356): WPMU_DEV\Defender\Vendor\DI\Container->get('WP_Defender\\Con...')
#5 /htdocs/cooperative-du-lauragais.fr/wp-content/plugins/defender-security/src/class-bootstrap.php(39): WP_Defender\Bootstrap->init_modules_common()
#6 /htdocs/cooperative-du-lauragais.fr/wp-content/plugins/defender-security/src/traits/defender-bootstrap.php(604): WP_Defender\Bootstrap->init_modules()
#7 /htdocs/cooperative-du-lauragais.fr/wp-includes/class-wp-hook.php(324): WP_Defender\Bootstrap->WP_Defender\Traits\{closure}('')
#8 /htdocs/cooperative-du-lauragais.fr/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#9 /htdocs/cooperative-du-lauragais.fr/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#10 /htdocs/cooperative-du-lauragais.fr/wp-settings.php(653): do_action('setup_theme')
#11 /htdocs/cooperative-du-lauragais.fr/wp-config.php(90): require_once('/htdocs/coopera...')
#12 /htdocs/cooperative-du-lauragais.fr/wp-load.php(50): require_once('/htdocs/coopera...')
#13 /htdocs/cooperative-du-lauragais.fr/wp-blog-header.php(13): require_once('/htdocs/coopera...')
#14 /htdocs/cooperative-du-lauragais.fr/index.php(17): require('/htdocs/coopera...')
#15 {main}
thrown in /htdocs/cooperative-du-lauragais.fr/wp-content/plugins/defender-security/lib/packages/DI/Definition/Source/ReflectionBasedAutowiring.php on line 27