php-developer-list | 2001122
Date: 12/30/01
- Next message: mrobinso <email protected>: "[PHP-DEV] Bug #14772 Updated: some links are missing (cosmetic error)"
- Previous message: georg <email protected>: "[PHP-DEV] Bug #14763 Updated: Make [] of arrays readable"
- Next in thread: mfischer <email protected>: "[PHP-DEV] Bug #14774 Updated: strpos with strtolower to working incorrectly"
- Reply: mfischer <email protected>: "[PHP-DEV] Bug #14774 Updated: strpos with strtolower to working incorrectly"
- Reply: georg <email protected>: "[PHP-DEV] Bug #14774 Updated: strpos with strtolower to working incorrectly"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: armtuk <email protected>
Operating system: Linux 2.4.9-7smp
PHP version: 4.0.6
PHP Bug Type: Unknown/Other Function
Bug description: strpos with strtolower to working incorrectly
<?php
$query="insert into users (user_name) values 'user_name'";
if (strpos(strtolower($query),"select")==0)
{
print "FISH!";
}
?>
Amazingly enough this prints FISH!.
but:
$query="insert into users (user_name) values 'user_name'";
if
(strpos(strtolower($query),"select")==0&&!(strpos(strtolower($query,"select")===FALSE))
{
print "FISH!";
}
does not.
-- Edit bug report at: http://bugs.php.net/?id=14774&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: mrobinso <email protected>: "[PHP-DEV] Bug #14772 Updated: some links are missing (cosmetic error)"
- Previous message: georg <email protected>: "[PHP-DEV] Bug #14763 Updated: Make [] of arrays readable"
- Next in thread: mfischer <email protected>: "[PHP-DEV] Bug #14774 Updated: strpos with strtolower to working incorrectly"
- Reply: mfischer <email protected>: "[PHP-DEV] Bug #14774 Updated: strpos with strtolower to working incorrectly"
- Reply: georg <email protected>: "[PHP-DEV] Bug #14774 Updated: strpos with strtolower to working incorrectly"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

