Re: Pear problem with graphiz library
| From: | FGM at GMail | Date: | Mon, 15 Oct 2012 13:18:57 +0000 |
| Subject: | Re: Pear problem with graphiz library | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-55063@lists.php.net to get a copy of this message | ||
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 <mattpunk88@gmail.com>
> 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
>