Bug #1317: max() works strangely, dirname() works strangely

From: Date: Thu, 15 Apr 1999 04:07:11 +0000
Subject: Bug #1317: max() works strangely, dirname() works strangely
Groups: php.dev 
Request: Send a blank email to php-dev+get-5063@lists.php.net to get a copy of this message
From: fuf@fuf.sh.cvut.cz Operating system: linux-2.2.5-ac3 PHP version: 3.0.7 PHP Bug Type: Misbehaving function Bug description: max() works strangely, dirname() works strangely max() bug: $str="very long string"; max(strpos($str,"long"),strpos($str,"LONG")) returns 0!!!!! max() does work correctly when given numbers as parameters looks like the number conversion doesn't work for it dirname() bug: dirname('index.html') should return '.' instead it returns 'index.html' !!! -- 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 (#5063) next »