ID:               19691
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         mbstring related
 Operating System: Red Hat Linux 7.2
 PHP Version:      4.2.3
 New Comment:

Just a comment.

When you submit bug. Submit with "complete" script that is possible to
copy & page, then execute.

It will speed up bug fix.


Previous Comments:
------------------------------------------------------------------------

[2002-10-01 09:25:32] [EMAIL PROTECTED]

Seems like mbstring function is borked in 4.2.3 :) 

mb_ereg_match doesn't seem to be returning a proper FALSE value when
passed to a conditional statement.

BUT, the return value is an empty string which *should* evaluate to
flase no?

Following output and code illustrate:

OUTPUT:

RETURN was ** 
a is FALSE

CODE:

if (mb_ereg_match("A", "X")) {
 echo "MATCHES <BR>";
} 
else {
  "echo NO MATCH <BR>"; 
}
$a = mb_ereg_match("A", "X");
echo "RETURN was *$a*<BR>";
if ($a) {
}
else {
 echo "a is FALSE<BR>";}
exit;


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=19691&edit=1

Reply via email to