#26903 [Opn->Bgs]: highlight_php() causes warnings

From: Date: Tue, 06 Sep 2005 13:44:12 +0000
Subject: #26903 [Opn->Bgs]: highlight_php() causes warnings
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-29216@lists.php.net to get a copy of this message
ID: 26903 Updated by: sniper@php.net Reported By: f dot malfatto at fmal dot com -Status: Open +Status: Bogus Bug Type: Website problem Operating System: Linux Suse PHP Version: 4.3.4 New Comment: Update your PHP.. Previous Comments: ------------------------------------------------------------------------ [2004-01-14 12:19:56] f dot malfatto at fmal dot com Did not find mentioned example, but tried several highlighted string with backslashes ... no messages. I also searched old logs for other similar errors: none out of layout.inc of mirror site (I have several php applications running on server) This warning appeared firt time in Oct 19 2003 and was only revealed in this include script at the same line (21). No other references found in past 2 years. ------------------------------------------------------------------------ [2004-01-14 11:19:18] goba@php.net This used to be a bug when highlighting strings with backslash in them... An example is the examples at the echo manual page. Could you please check if these examples trigger the error if you call the page up, or we need to find what pages have an illegitimate backslash somewhere... It would help a lot to see the REQUEST URI by the side of these PHP errors... ------------------------------------------------------------------------ [2004-01-14 11:02:21] f dot malfatto at fmal dot com Until 15:21 I was using 4.3.3, but before to open this problem I preferred to upgrade to 4.3.4 to check the effect (build from source). I restarted the server at 15:22 (local time) : [Wed Jan 14 15:22:27 2004] [notice] Apache/1.3.23 (Unix) mod_ssl/2.8.7 OpenSSL/0.9.6c PHP/4.3.4 configured -- and the warning message is again in logs : Jan 14 16:43:06 lorien httpd: PHP Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /usr1/php_mirror/include /layout.inc on line 21 My php test page is http://www.fmal.com/test.php ------------------------------------------------------------------------ [2004-01-14 10:44:19] goba@php.net It is hard to beleive that you are using PHP 4.3.4... I suspect you have an older version of PHP, since this was a bug in the implementation of highlight_string() in an older PHP version and it is fixed now. Please check your PHP version and provide feedback. ------------------------------------------------------------------------ [2004-01-14 10:38:42] f dot malfatto at fmal dot com Description: ------------ On my php mirror (it.php.net) I need to log on syslog (user.debug) info from php scripts. I noted lots of messages like this : Jan 14 16:34:38 lorien httpd: PHP Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /usr1/php_mirror/include /layout.inc on line 21 No other problem is reported ... but my userlog file is really huge ! Thanks in advance ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26903&edit=1

« previous php.mirrors (#29216) next »