Date: 09/04/99
- Next message: Bug Database: "[PHP-DEV] Bug #516 Updated: Set of characters to escape in addslashes is fixed"
- Previous message: Bug Database: "[PHP-DEV] Bug #1365 Updated: PHP doesn't handle the server message 5701 properly"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 2150
Updated by: riffraff
Reported By: tri_kar <email protected>
Status: Closed
Bug Type: Parser error
Assigned To:
Comments:
remember, that file() leaves the '\n''s at the end of the string!
so if garbagewords.txt contains:
riff
raff
$gar[0] is "riff\n" and $gar[1] is "raff\n", which isn't
equal to "riff" or "raff".
see manual of chop() to solve your problem.
also notice, that if $a and $b are strings and $a=$b, than
strlen($a)=strlen($b). you haven't to check it explicitelly.
if this wasn't your problem, write me or report another bug.
Full Bug description available at: http://bugs.php.net/?id=2150
-- 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: Bug Database: "[PHP-DEV] Bug #516 Updated: Set of characters to escape in addslashes is fixed"
- Previous message: Bug Database: "[PHP-DEV] Bug #1365 Updated: PHP doesn't handle the server message 5701 properly"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

