ID: 21495
Comment by: public at hverdag dot dk
Reported By: roger4a45 at yahoo dot es
Status: Bogus
Bug Type: Strings related
Operating System: windows 2000 server sp3
PHP Version: 4.2.3
New Comment:
Excuse me roger4a45, but isn't that exactly what the problem is?! That
it returns another output than expected?!
It returns 0 where it SHOULD return something around 50!
I probably have the same problem with strlen. When I use this:
if (strlen($mydateformat) < 4)
...and I _KNOW_ that $mydateformat is longer than 0, it often returns
the length 0! But then when I reload the page the error doesn't occur
again - usually only the first time I run this page in a new browser
window!
To me this really sounds like a bug...
Previous Comments:
------------------------------------------------------------------------
[2003-01-07 12:26:55] roger4a45 at yahoo dot es
A bug is when a function don't work properly... so, if I make
strlen("<HTML>") i wait that output will be 6. if strlen produce
another result is a bug. Ok. I will try to comment it to support forum.
Thanks.
------------------------------------------------------------------------
[2003-01-07 12:22:30] [EMAIL PROTECTED]
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2003-01-07 12:17:59] roger4a45 at yahoo dot es
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 this bug report at http://bugs.php.net/?id=21495&edit=1