"Hashar" posted a comment on MediaWiki.r107054. URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/107054#c28381
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: Cause when I am hacking I just don't want to write a maintenance script. I usually start using eval.php in interactive mode. Eventually I have to copy pasting or rewriting the same commands over and over. So I end up pasting that in a text file and using <tt>cat file | php eval.php</tt> Today, I have spend too much time figuring out an issue that would have made been obvious if I had syntax coloring. So I did that quick hack and committed it figuring out it might help other devs. _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
