Ich habe unter lib/vendor FDPI 1.3.2 (+ FPDF_TPL 1.1.4) und TCPDF (4.9.018) und binde über ein require_once beide in eine PDF-Klasse ein und extende FDPI, beim Aufruf in einer Action erhalte ich folgende Fehlermeldung?
Strict standards: Declaration of FPDF_TPL::AddPage() should be compatible with that of TCPDF::AddPage()
Hat jemand eine Lösung? Oder vertragen sich beide Versionen nicht
2. Frage sollte nicht eigentlich alle in lib/vendor automatisch included werden?
bye, mille.
FPDI / TCPDF AddPage() should be compatible
Started by mille, Mai 05 2010 09:42
1 reply to this topic
#1
Geschrieben 05 Mai 2010 - 09:42
#2
Geschrieben 05 Mai 2010 - 11:34
Es sieht aus das beide Versionen sich nicht vertragen. Ein Beispiel soll es verdeutlichen.
Ausgabe:
Declaration of Bar::foo() must be compatible with that of Foo::foo()
<?php
error_reporting(E_ALL|E_STRICT);
abstract class Foo {
abstract public function foo(Foo $a);
}
class Bar extends Foo{
public function foo() {
return __METHOD__;
}
}
Ausgabe:
Declaration of Bar::foo() must be compatible with that of Foo::foo()











