Skip to content
Snippets Groups Projects
Commit ffaa4a18 authored by Peter Rotich's avatar Peter Rotich
Browse files

Remove call-time pass-by-reference

parent 73a694de
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ echo "Short open tags: ";
$fails = array();
foreach ($scripts as $s) {
$matches = array();
if (preg_match_all('/<\?\s*(?!php|xml).*$/m', file_get_contents($s), &$matches,
if (preg_match_all('/<\?\s*(?!php|xml).*$/m', file_get_contents($s), $matches,
PREG_OFFSET_CAPTURE) > 0) {
foreach ($matches[0] as $match)
$fails[] = array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment