#21495 [NEW]: strlen, substr and so on bug

From: Date: Tue, 07 Jan 2003 18:17:59 +0000
Subject: #21495 [NEW]: strlen, substr and so on bug
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-29349@lists.php.net to get a copy of this message
From: roger4a45@yahoo.es Operating system: windows 2000 server sp3 PHP version: 4.2.3 PHP Bug Type: Strings related Bug description: strlen, substr and so on bug whe we use strlen or substr there is a bug if parameter string is something like this: $a = "<HTML><HEAD><TITLE>something</TITLE></HEAD><BODY>hi!</BODY><HTML>"; $b = strlen($a); echo $b; output is 0 rather real length of string.... Substr don't work right if we use same $a... any idea? Is use a PHP 4.2.3 (ZIP file) -- Edit bug report at http://bugs.php.net/?id=21495&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21495&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21495&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21495&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21495&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21495&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21495&r=support Expected behavior: http://bugs.php.net/fix.php?id=21495&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21495&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21495&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21495&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21495&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21495&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21495&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21495&r=gnused

« previous php.bugs (#29349) next »