"Hashar" posted a comment on MediaWiki.r107054.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/107054#c28307

Commit summary for MediaWiki.r107054:

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!
 $

Hashar's comment:

When using eval.php, I write the commands in a file ending with .php. My editor 
requires the first line to be '<?php' to enable syntax coloring :-)

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to