ID: 30213 Comment by: bugzilla at swift-web dot com Reported By: Philipp dot vonHartrott at iwm dot fraunhofer dot de Status: Open Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 5.0.0 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [2004-09-23 19:26:00] 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). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30213&edit=1