Re: R: [PHP-WIN] Re: R: [PHP-WIN] PHP randomly is not parsing a valid script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is there error always related with  a logical expression or could it be
elsewhere?

On Mon, 2003-09-22 at 16:53, Francesco.Marsan@bmg.com wrote:
> Every time it is a different error - but always a syntax error -  like if
> the line of code contained a syntax error, which in fact it does not. E.g. I
> get an error that an invalid logical and (&&) is appearing (and in fact
> there is one in the line of code) but it is not really invalid. I just need
> to do a refresh of the page and the code of course works again.
> 
> 
> -----Messaggio originale-----
> Da: Svensson, B.A.T. (HKG) [mailto:B.A.T.Svensson@lumc.nl] 
> Inviato: lunedà 22 settembre 2003 16.48
> A: Francesco.Marsan@bmg.com
> Cc: php@crazyted.com; php-windows@lists.php.net
> Oggetto:  Re: R: [PHP-WIN] PHP randomly is not parsing a valid
> script
> 
> Would it be possible to post a snippet of the error message?
> 
> On Mon, 2003-09-22 at 15:19, Francesco.Marsan@bmg.com wrote:
> > I ported all the code/data to a twin machine I have. And there everything
> > works fine - no problems - as was also in my production machine, before
> the
> > problems started to appear.
> > 
> > The *only* difference between the 2 machines is that one has W2000 Server
> > Italian version, and the other one the English version. For the rest, they
> > have the same software mounted.
> > 
> > I have no clue of what happened. Also I don't know which config params to
> > look at, because the error I'm getting is so weird. Unfortunately it would
> > be a big work to reinstall my production machine from start. Any clue
> > someone?
> > 
> > -----Messaggio originale-----
> > Da: Svensson, B.A.T. (HKG) [mailto:B.A.T.Svensson@lumc.nl] 
> > Inviato: lunedà 22 settembre 2003 15.02
> > A: Francescofrancescomarsanbmgc
> > Cc: php-windows@lists.php.net
> > Oggetto: Re:  PHP randomly is not parsing a valid script
> > 
> > In that case; has anybody changes the server settings? 
> > You might want to review all relevant settings of the server.
> > 
> > Kind regards,
> > 
> > 	//Anders
> > 
> > 
> > On Mon, 2003-09-22 at 14:08, Francesco wrote:
> > > Unfortunately it cannot be a data problem, because PHP finds syntax
> > errrors
> > > every time in some other part of the code. And not just in one script,
> > also
> > > in many others. Also in a distributed application (an evaluation
> versione
> > of
> > > WebEdition CMS) I got those "false" syntax errors. Every time, it is
> > > sufficient to reload the page (F5 in IE) and the script executes
> normally.
> > > This happens not only from my client PC but also from other clients. I
> am
> > > sure it has not been hacked (it's an Intranet). So it is looks really
> like
> > a
> > > problem of PHP-Apache itself.
> > > 
> > > 
> > > 
> > > "B.A.T. Svensson" <B.A.T.Svensson@lumc.nl> ha scritto nel messaggio
> > > 1064229621.18612.40.camel@anders">news:1064229621.18612.40.camel@anders...
> > > > There might be a lot of reasons, but a some brains storm ideas might
> be:
> > > >
> > > > a) New type of data (well formed or not) is feed to the script,
> > > >    and it cant handle this type of format.
> > > >
> > > > b) New functionality has been added and these function can't handle
> > > >    either valid or invalid data formats
> > > >
> > > > c) Old functions has been changed and trigger an error when certain
> > > >    kind of data is feed to them.
> > > >
> > > > d) time out problems
> > > >
> > > > e) solar activities
> > > >
> > > > f) hacking activities has compromised parts of the system
> > > >
> > > > g) data has, become inconsistent in the db by some reason
> > > >
> > > > I would suggest that you insert debug code in your scripts that
> > > > validates data and in addition prints out a trace of function calls,
> > > > to be able to get an answer on the following question:
> > > >
> > > >
> > > >    Does the error always emerge when this particular part of
> > > >    code is executed, or does it happen only in certain cases?
> > > >
> > > >
> > > > If it happens in only certain cases try to isolate the set of
> > > > data that causes the error to emerge, and then back track to
> > > > the particular code segment that causes the script to fault.
> > > >
> > > > If it always happens review your (entire) code carefully once
> > > > again, that is including the full call stack.
> > > >
> > > > Kind regards,
> > > >
> > > > //Anders
> > > >
> > > > On Mon, 2003-09-22 at 13:05, Francesco wrote:
> > > > > My platform: W2000 Server SP4 with latest MS vulnerability patches
> > > applied.
> > > > > Apache 1.3.22, PHP 4.2.2.
> > > > >
> > > > > Since a couple of weeks I have this very nasty problem:
> Intermittently
> > > PHP
> > > > > is not parsing a valid script. It spits out an error regarding some
> > > syntax
> > > > > error in the code, but the code is in fact perfectly ok. In fact if
> I
> > > reload
> > > > > the page the script executes normally.
> > > > >
> > > > > This happens (unfortunately) quite often now, albeit randomly. I
> would
> > > say
> > > > > that in 10-15% of script executions it happens.
> > > > >
> > > > > Anyone has a clue of what might be wrong?
> > > > >
> > > > > Thanks in advance
> > > > >
> > > > > Francesco

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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux