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

2005-01-16 Thread Richard Lynch
Adrian wrote: > 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. You'd be hard-pressed

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

2005-01-16 Thread Adrian
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, "$var

[PHP] Only variables can be passed by reference - Preg_match Fatal error

2005-01-16 Thread Chandana Bandara
hi When i try to compile this code it gives following error. Fatal error: Only variables can be passed by reference in /var/www/html/hello/test.php on line 16 I have defined variable for to match some string patterns / symbols. when i execute that code for preg_match , gives this fatal e