FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=18481&edit=1

ID: 18481
Updated by: [email protected]
Reported By: stefan dot jelner at gmx dot de
Summary: Line numbers incorrect when typing german Umlaute
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: PHP_CodeSniffer
Operating System: Windows XP
Package Version: 1.3.0
PHP Version: 5.3.6
Assigned To: squiz
Roadmap Versions:
New Comment:

-Status: Feedback
+Status: No Feedback
If you can provide code to reproduce, please re-open this report.


Previous Comments:
------------------------------------------------------------------------

[2011-04-28 01:08:12] squiz

-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: squiz
I can't replicate your issue with your sample script or any other
characters I enter. Is there a public repository somewhere I can use to
get access to a sample file that has this problem?

Can you also please provide the output from the phpcs command line so I
can see what line numbers it reports.

------------------------------------------------------------------------

[2011-04-26 16:25:38] stefan25376

Description:
------------
I am using Zend Studio 8 with PEAR and the PHP Codesniffer. We have
UTF-8 files here with comments that contain german Umlaute (like
öäüÖÄÜß). after these lines with these special characters the
errors and warnings of PHP Codesniffer have wrong line numbers.

My guess is, that this happens with any other international characters
in UTF-8 and that it happens, because when the line numbers are
calculated the multibyte string functions are not used.

Test script:
---------------
/*
ööööööööööööööööööööööööööööööööööööööääääääääääääääääääääääääääüüüüüüüüüüüüüüüüüüüüüü
*/

//here some lines with too much whitespace

$foo = $bar . "test";

Expected result:
----------------
that the errors or warnings have the right line numbers.

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMay 6, '11 at 4:04a
activeMay 6, '11 at 4:04a
posts1
users1
websitepear.php.net

1 user in discussion

Gsherwood: 1 post

People

Translate

site design / logo © 2023 Grokbase