Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003809 [Quercus] major always 12-11-09 04:31 12-11-09 04:43
Reporter Roland Kujundzic View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version 4.0.2
Summary 0003809: Simple strpos of character fails
Description Verfied on current tomcat 5 with current java 1.6.0_17. Fails with UTF-8 and ISO-8859-1 encoding.

Additional Information <?php

$txt = 'a b';

if (strpos($txt, '') === false) {
  print "MAJOR BUG!\n";
}

?>
Attached Files

- Relationships

- Notes
(0004330)
Roland Kujundzic
12-11-09 04:43

All characters c with ord(c) > 127 fail ...

<?php

for ($i = 1; $i < 254; $i++) {
  $x = 'x'.chr($i).'x';

  if (strpos($x, chr($i)) === false) {
    print "strpos fails on chr($i)=[".chr($i)."]
";
  }
}

?>
 

- Issue History
Date Modified Username Field Change
12-11-09 04:31 Roland Kujundzic New Issue
12-11-09 04:43 Roland Kujundzic Note Added: 0004330


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker