On Apr 10, 2004, at 03:46, Erik Moeller wrote:
! $state["strong"] = $state["em"] = $token["pos"]; ! $state["strong"] = $state["em"] = isset($token["pos"]) ? $token["pos"] : true;
Maybe it's just because it's late, but those don't look like they do the same thing to me. An unset variable evaluates to boolean false, not true.
-- brion vibber (brion @ pobox.com)
Brion-
On Apr 10, 2004, at 03:46, Erik Moeller wrote:
! $state["strong"] = $state["em"] = $token["pos"]; ! $state["strong"] = $state["em"] = isset($token["pos"]) ? $token["pos"] : true;
Maybe it's just because it's late, but those don't look like they do the same thing to me. An unset variable evaluates to boolean false, not true.
This does not appear to be the case, maybe because it is an associative array and $token["pos"] is somehow a non-zero value. If you set the value to false, the parser breaks (no error, just screwed up formatting).
Regards,
Erik
wikitech-l@lists.wikimedia.org