php-windows Digest 14 Oct 2012 20:16:17 -0000 Issue 4076

Topics (messages 30962 through 30963):

Re: Weird/strange issue with PHP file
        30962 by: Jacob Kruger

Pear problem with graphiz library
        30963 by: Matt Matt

Administrivia:

To subscribe to the digest, e-mail:
        php-windows-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-windows-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-wind...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Thanks

I might implement error logging more carefully later on, but, for now, this
is more of me playing around with certain aspects/techniques, and, you'll
see in my other message that figured out that if I split that functionality
into two lines, it seemed to work alright, and since don't seem to be able
to get my primary combination server, WAMP, on this machine to make use of
slightly older versions of PHP closer to the live server's version, did
check that the one XAMPP portable combo have here is in fact almost the same
version of PHP as my live server, so have been sort of double checking
pieces of script like this by first running them in it, before then
uploading them.

Aside from all of this, only other issue with live server is since I'm sort
of piggybacking on a friend's account/config, I don't really have direct
access to the normal, built-in server logs, but anyway.

Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'

----- Original Message ----- From: "Niel Archer" <spam-f...@blueyonder.co.uk>
To: <php-wind...@lists.php.net>
Sent: Sunday, October 14, 2012 7:33 AM
Subject: Re: [PHP-WIN] Weird/strange issue with PHP file


Hi

$iIndex = array_flip($this->arPlayers)[$sPlayer];

This is array dereferencing, which was added with PHP 5.4 so it will
cause an error on previous versions.

see example 7 at http://php.net/manual/en/language.types.array.php

As to why it hangs, for an excessive time, on your productions server. I
suggest checking the error logs for details. You do write errors to a
log, don't you?  ;-)

--
Niel Archer


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--- End Message ---
--- Begin Message ---
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

--- End Message ---

Reply via email to