|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-11-15 10:56 UTC] rasmus
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 08:00:02 2025 UTC |
If $doterms is previously set using a logic expression ($doterms = (x and y and z and ...)) it should contain the integer equivalent of boolean TRUE or FALSE - so far so good. In an assignment context: $doterms = $doterms and ereg(...) and eregi(...); $doterms should only be set to the integer equivalent of boolean TRUE iff all three expressions are considered to be "TRUE" - alas, however, it appears to *always* be set to true, regardless of the ereg/eregi pattern matches. A conditional context does, however work: if( $doterms and ereg(...) and eregi(...) ) $doterms = 1; else $doterms = 0; This will correctly set $doterms to zero (FALSE) should one of the RE pattern matches fail. Surely this is inconsistent (boolean/logic) behaviour (and probably affects other/all functions)?