do not evaluate '<?php' line
authorAntoine Musso <hashar@users.mediawiki.org>
Thu, 22 Dec 2011 11:06:23 +0000 (11:06 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Thu, 22 Dec 2011 11:06:23 +0000 (11:06 +0000)
commit6c0efb8ba60c4321cf61e6596d82ccd9c6eb3b12
treee410cff0ce4f1ac76491930291f5ab64e4a6a7d9
parent6b27669d376e41c98aa5ba6e6b748acdad99fde1
do not evaluate '<?php' line

This happen when you are sending to eval.php a php file. The first line
is the string '<?php' which is passed to eval(). Boom!
This patch skip that string.

Example usage:
 $ cat somefile.php
 <?php
 echo "Working!\n";
 $

 $ cat somefile.php | php maintenance/eval.php
 Working!
 $
maintenance/eval.php