php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30213 Script parsing fails after several invocations
Submitted: 2004-09-23 19:26 UTC Modified: 2005-02-20 01:00 UTC
Votes:4
Avg. Score:4.5 ± 0.5
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:3 (75.0%)
From: Philipp dot vonHartrott at iwm dot fraunhofer dot de Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.0.0 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-09-23 19:26 UTC] Philipp dot vonHartrott at iwm dot fraunhofer dot de
Description:
------------
After running a script successfully several times consecutively it fails with the following error-message (Please note: details like ascii-code number etc. are missing after the single-quote in the error-messages Warning line):

....
Server: Apache/2.0.50 (Unix) mod_perl/1.99_13 Perl/v5.8.4 mod_ssl/2.0.50
....
<br />
<b>Warning</b>:  Unexpected character in input:  ' in
<b>/srv/www/htdocs/fitit_soap/nusoap.php</b> on line <b>159</b><br />
<br />
<b>Parse error</b>:  parse error, unexpected T_CONSTANT_ENCAPSED_STRING in
<b>/srv/www/htdocs/fitit_soap/nusoap.php</b> on line <b>159</b><br />

The respective lines of code:
159	if($GLOBALS['NUSOAP_DEBUG'])
160	{
161		$this->debug_str .= $string;
162	}

The same code works fine in [Apache/2.0.50 (Win32) mod_ssl/2.0.50 OpenSSL/0.9.7c PHP/5.0.1]

What other details can be helpful?

Kind regards.

Reproduce code:
---------------
Unfortunately I am not able of producing a small example. A client script that will make the above SOAP server code fail, can be provided upon request (but will not show more information than given above).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-03 00:13 UTC] bugzilla at swift-web dot com
I was noticing this too.  I installed php5.0.2 (was 4.3.8 where the scripts ran fine).

I write code in my editor and then click refresh on my browser.  Every once in a while I get an error message: Unexpected character in input: ' in script.php on line x

If I click refresh right away the error stays.  If I wait for about 10-15 seconds the error is now gone.  When it does come back it may or may not be in the same script or line number.  

As for the actual code on the line that is listed it is usually a line that has nothing to do with parsing strings/input.

For example the line could be:
}

and the line above it could be:
  die('fatal error');

I've even had it report a blank line in the middle of a few blank lines.

After playing around I recompiled WITHOUT the option "--enable-zend-multibyte" and so far it seems to not be giving this error anymore.
 [2005-02-20 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 13:01:29 2024 UTC