我在注释行收到此错误。知道为什么吗?
Fatal error: Call-time pass-by-reference has been removed in myfile.php on line 301
Call Stack
# Time Memory Function Location
1 0.0002 245352 {main}( ) ../plugins.php:0
2 0.3016 7149968 plugin_sandbox_scrape( ) ../plugins.php:156
代码如下...
function rseo_doTheParse($tag, $post){
//headings
$keyword = rseo_sanitize3(trim(strtolower(rseo_getKeyword($post))));
$content = rseo_sanitize3($post->post_content);
$match = 0;
$token = '/<'.$tag.'[^>]*>(.*\b'.$keyword.'\b.*)<\/'.$tag.'>/siU';
if(preg_match($token, &$content, $matches)) //THIS IS LINE 301
{
$match = 1;
}
return $match;
}