Reply to Re: [PHP] Only variables can be passed by reference - Preg_match Fatal error
Posted by Adrian on 01/16/05 15:08
check your preg_match() call...
things like "$pattern" and "$msg" are the spawn of satan btw.
there is ABSOLUTELY NO REASON to put variables in quotation marks
except that php has to parse the string which is slower than php just
seeing the variable.
and when a functions expects a reference, "$variable" will cause a
fatal error like it happens in your script.