Re: [PEAR-DEV] Pear problem with graphiz library
[email protected] (FGM at GMail)
| Newsgroups | php.pear.dev |
|---|---|
| Message-ID | <CANqRZ1OHze=2gb0VWSf2c2Q8k253WcO_TNJgof+F8900JevT6w@mail.gmail.com> |
You can avoid this by lowering your error_reporting in php.ini, so that it no longer includes E_STRICT. Better: - suggest a patch - use an alternative Graphviz PHP library: Image_GraphViz is no longer very much supported (hint: look at https://packagist.org/search/?q=graphviz ) 2012/10/14 Matt Matt <[email protected]> > Hi folks, > > i have a problem with graphviz library, i have installed pear and tested it > correctly folowing the guidelines on the official website, also i ensured i > had all the include path setted properly.Although i encountered theese > errors when i try to run graphiz example > > > Here the code i try to execute : > > <?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(); > ?> > > Here the errors : > ----------------------------------------------------------------- > Strict Standards: Non-static method System::mktemp() should not be called > statically, assuming $this from incompatible context in > pear\Image\GraphViz.php on line 1005 > > Strict Standards: Non-static method System::_parseArgs() should not be > called statically, assuming $this from incompatible context in > pear\System.php on line 393 > > Strict Standards: Non-static method Console_Getopt::getopt2() should not be > called statically, assuming $this from incompatible context in > pear\System.php on line 84 > > Strict Standards: Non-static method Console_Getopt::doGetopt() should not > be called statically, assuming $this from incompatible context in > pear\Console\Getopt.php on line 75 > > Fatal error: Class 'PEAR' not found in \pear\Console\Getopt.php on line 109 > ---------------------------------------- > > I have followed theese instruction correctly and i can see the bool(true) > message, so i can't figure out why it complain about missing PEAR class > (the filePera.php is in under /pear directory) > > this is the guidelines i have followed to set up pear : > http://pear.php.net/manual/en/installation.checking.php > > > Do you have any ideas about solving the problem?Thank you in advance, > > regards, > > Matt >