|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-01 10:28 UTC] yohgaki@php.net
[2002-10-01 10:29 UTC] yohgaki@php.net
[2002-10-01 13:02 UTC] moriyoshi@php.net
[2002-10-01 13:29 UTC] jc at mega-bucks dot co dot jp
[2002-10-01 13:32 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 08:00:01 2025 UTC |
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;