Open Hecke29 opened 4 years ago
An dirty
while (!isset($data{$offset})) {
$offset-=2;
}
in tcpdi_parser
works.
Will look into how to make this "cleaner".
Hi! And thanx for reporting!
No I'm not maintaining it actually. I put it in the source because no one seems to be maintaining anything and I needed to make some minor fixes for php 7.4.. If you have found a more official version that works I'm happy to use that instead. Otherwise I'll merge any fix as long as there are some additional tests. I can write an acceptance test with your failing file if you want something to hack against..
I'm havig this same issue in some cases of merge.
I removed the try/catch statement to see where it came from.
Uninitialized string offset: 22 {"userId":1,"exception":"\[object\] (ErrorException(code: 0): Uninitialized string offset: 22 at .../vendor/iio/libmergepdf/tcpdi/tcpdi_parser.php:711)
When I try to merge PDFs with the following code I get the error
Notice: Uninitialized string offset: 548
This happens when trying to merge the attached PDF File 354025a5-original.pdf
More stack:
Even more stack available if necessary. How can I challenge this problem? Is that
tcpdi_parser
even maintained by you?