Skip to content

2025-01-16, Trying to access array offset on int #848

@Jack-Mutsers

Description

@Jack-Mutsers

i just updated to the latest version of TCPDF, but now i run into this message

Message: Trying to access array offset on int
Filename: tcpdf/Tcpdf.php
Line Number: 11737

So i looked into it and its about this $line[$i] inside of

$border_style2 = array();
foreach ($border_style as $line => $value) {
	$length = strlen($line);
	for ($i = 0; $i < $length; ++$i) {
		$border_style2[$line[$i]] = $value;
	}
}
$border_style = $border_style2;

so apparently $line (the array key) has a chance to be an integer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions