Only call strlen(lc_fname) if we are going to use the result
Just call strcmp() rather than strlen() twice plus zend_binary_strcmp()
"if (strlen(msg))" -> "if (msg[0])"
Whitespace tweaks