Re: Only variables can be passed by reference - Preg_match Fatal error

From: Date: Sun, 16 Jan 2005 13:08:10 +0000
Subject: Re: Only variables can be passed by reference - Preg_match Fatal error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-206477@lists.php.net to get a copy of this message
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.

« previous php.general (#206477) next »