I have a problem with
Image_GraphViz PEAR package. I installed it on my computer and i tried the
example, but it doesn't work on PHP 5.3.5. Instead, i got this following error messages:
Strict Standards: Non-static method System::mktemp() should not be called statically, assuming $this from incompatible context in
/usr/share/pear/Image/GraphViz.php on line
1005Strict Standards: Non-static method System::_parseArgs() should not be called statically, assuming $this from incompatible context in
/usr/share/pear/System.php on line
385Strict Standards: Non-static method Console_Getopt::getopt2() should not be called statically, assuming $this from incompatible context in
/usr/share/pear/System.php on line
76Strict Standards: Non-static method Console_Getopt::doGetopt() should not be called statically, assuming $this from incompatible context in
/usr/share/pear/Console/Getopt.php on line
75Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in
/usr/share/pear/Console/Getopt.php on line
109Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in
/usr/share/pear/System.php on line
386Strict Standards: Non-static method System::tmpdir() should not be called statically, assuming $this from incompatible context in
/usr/share/pear/System.php on line
400Strict Standards: Non-static method System::mkDir() should not be called statically, assuming $this from incompatible context in
/usr/share/pear/System.php on line
403Strict Standards: Non-static method System::_parseArgs() should not be called statically, assuming $this from incompatible context in
/usr/share/pear/System.php on line
239Strict Standards: Non-static method Console_Getopt::getopt2() should not be called statically, assuming $this from incompatible context in
/usr/share/pear/System.php on line
76Strict Standards: Non-static method Console_Getopt::doGetopt() should not be called statically, assuming $this from incompatible context in
/usr/share/pear/Console/Getopt.php on line
75Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in
/usr/share/pear/Console/Getopt.php on line
109Strict Standards: Non-static method Console_Getopt::_parseShortOption() should not be called statically, assuming $this from incompatible context in
/usr/share/pear/Console/Getopt.php on line
162Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in
/usr/share/pear/Console/Getopt.php on line
167Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in
/usr/share/pear/System.php on line
240Strict Standards: Non-static method PEAR::registerShutdownFunc() should not be called statically, assuming $this from incompatible context in
/usr/share/pear/System.php on line
421Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in
/usr/share/pear/Image/GraphViz.php on line
204Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method System::_removeTmpFiles() should not be called statically in
/usr/share/pear/PEAR.php on line
774Strict Standards: Non-static method System::rm() should not be called statically in
/usr/share/pear/System.php on line
440Strict Standards: Non-static method System::_parseArgs() should not be called statically in
/usr/share/pear/System.php on line
193Strict Standards: Non-static method Console_Getopt::getopt2() should not be called statically in
/usr/share/pear/System.php on line
76Strict Standards: Non-static method Console_Getopt::doGetopt() should not be called statically in
/usr/share/pear/Console/Getopt.php on line
75Strict Standards: Non-static method PEAR::isError() should not be called statically in
/usr/share/pear/Console/Getopt.php on line
109Strict Standards: Non-static method Console_Getopt::_parseShortOption() should not be called statically in
/usr/share/pear/Console/Getopt.php on line
166Strict Standards: Non-static method PEAR::isError() should not be called statically in
/usr/share/pear/Console/Getopt.php on line
167Strict Standards: Non-static method PEAR::isError() should not be called statically in
/usr/share/pear/System.php on line
194Strict Standards: Non-static method System::_multipleToStruct() should not be called statically in
/usr/share/pear/System.php on line
204The example source code is very simple. Here they are:
<?php
require_once 'Image/GraphViz.php';
$gv = new Image_GraphViz();
$gv->addEdge(array('wake up' => 'visit bathroom'));
$gv->addEdge(array('visit bathroom' => 'make coffee'));
$gv->image();
?>
I tried to debug this code and i found out that the last line that caused the problem to appear which i think it's related to strictness of PHP 5.3.x compared to earlier version of PHP. I am thinking about compatibility issues between Image_GraphViz and PHP 5.3.x. I hope it can be solved as soon as possible