Bug #1398: wrong return value

From: Date: Tue, 11 May 1999 09:51:36 +0000
Subject: Bug #1398: wrong return value
Groups: php.dev 
Request: Send a blank email to php-dev+get-5498@lists.php.net to get a copy of this message
From: thomas@intermezzo.de Operating system: Linux PHP version: 3.0.5 PHP Bug Type: Misbehaving function Bug description: wrong return value $browser = "Mozilla"; if ( strpos($value, "Mozilla/") == 0) { ..... } $browser = "Lynx"; if ( strpos($value, "Mozilla/") == 0) { ..... } The function returns 0 , once because Mozilla is the first Character and secondly because Mozilla doesn't appear in "Lynx" -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#5498) next »