From: [EMAIL PROTECTED]
Operating system: Red Hat Linux 7.2
PHP version: 4.2.3
PHP Bug Type: mbstring related
Bug description: mb_ereg_match is broken, does not return FALSE
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 bug report at http://bugs.php.net/?id=19691&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19691&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19691&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19691&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19691&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19691&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19691&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19691&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19691&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19691&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19691&r=globals