0
我在我的程序中使用了preg_match函数。该代码是这样的如何解决Preg_match警告?
if (!$this->config_allow_src_above_docroot && !preg_match('^'.preg_quote(str_replace(DIRECTORY_SEPARATOR, '/', realpath($this->config_document_root))), $AbsoluteFilename))
但运行应用程序它显示了这样的警告
Warning: preg_match() [function.preg-match]: No ending delimiter '^'
你能不能帮我请..