From:             [EMAIL PROTECTED]
Operating system: win2k
PHP version:      4.0.6
PHP Bug Type:     Scripting Engine problem
Bug description:  d'oh


first of all, i'm not able to reproduce that. sorry. it only occures in the context of 
my scripts.

occures in 4.0.5 also.

$pos = strpos(strToLower($string), strToLower($accessKey));
echo $pos . " -" . $string . ' ' . $accessKey . "<br>\n";

this prints out '1 -Username U when it should be a 0 instead. when i do

if ($string === 'Username') $string = 'Username';

before, there's no problem. of course a var_dump() of $string shows string(8) 

in the same context, 

$t = array('<u>', '</u>');
echo $t[1];

spits out a few strange characters (others each time) 
instead of the '</u>'. and a var_dump() of $t even crashes 

the value of $string ('Username') comes from mysql, it's a serialized value, and looks 
like: ;s:8:"Username"; so this should be fine.

well, maybe this sounds familiar to you. to me it looks *very* strange. again, i'm not 
able to reproduce it.


Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to