Edit report at http://bugs.php.net/bug.php?id=45087&edit=1
ID: 45087 Updated by: fel...@php.net Reported by: spam2 at rhsoft dot net Summary: Illegal or truncated character in input -Status: Open +Status: Wont fix Type: Bug Package: Unicode Engine related Operating System: Fedora 9 x86_64 PHP Version: 6CVS-2008-05-25 (CVS) New Comment: Old trunk related. Previous Comments: ------------------------------------------------------------------------ [2008-10-29 16:05:03] gabrycucciolo84pv at fastwebnet dot it I associate myself with this bug report. I had on my page the © symbol and the ® symbol and became mad to find what was wrong until I read this bug submission and thought that also the © and the ® sign are not standard characters. At the moment I solved replacing them with © and ® but it is a bit of pain this thing, it's better to rather change or replace it with 5.2 behaviour. <OT>Php 6 is breaking several compatibilities with old scripts (and by old I mean v5 not v4 or v3). I am not a php coder so I don't know what's behind, but being a webmaster and programmer I can say that this is very ODD. In less than 3 months, with standard configuration i used for years, my script had to be totally revised, phpMyAdmin was broken until a fix was done in v3, phpBB has some problems in reading private messages (v3.02 gold) and I suspect also many other scripts had problems. Wouldn't be better to add a switch in php.ini of 6.0 to keep the old 5.2 behaviour, for backwards compatibility? </OT> ------------------------------------------------------------------------ [2008-05-25 16:40:19] spam2 at rhsoft dot net Description: ------------ Warning: Illegal or truncated character in input: offset 104, state=0 in /mnt/data/www/thelounge.rhsoft.net/index.php on line 45 Parse error: syntax error, unexpected $end in /mnt/data/www/thelounge.rhsoft.net/index.php on line 45 _____________ The problem is the german "ü" else echo " <br /><h2 style=\"color:red\">Derzeit stehen keine Entwicklungsprojekte auf dieser Domain zur Verfügung !</h2><br /> "; Reproduce code: --------------- <?php $result = @ini_set ("url_rewriter.tags", ""); // Inhalt des Ordners zwischenspeichern settype ($dir_list, "array"); $verz = opendir ("./"); while ($file = readdir ($verz)) { if (@is_dir($file) && $file !="." && $file !=".." && !stristr($file, "thevolumesetting") && !stristr($file, "network trash")) $dir_list[] = $file; } closedir ($verz); asort($dir_list); if (!empty($dir_list)) { foreach ($dir_list as $dir) { echo "<a href=\"./" . $dir . "/\">" . strtolower($dir) . "</a><br>"; } } else echo " <br /><h2 style=\"color:red\">Derzeit stehen keine Entwicklungsprojekte auf dieser Domain zur Verfügung !</h2><br /> "; ?> Expected result: ---------------- A simple html page Actual result: -------------- a strange parse error ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=45087&edit=1