Index: trunk/phase3/maintenance/eval.php |
— | — | @@ -74,6 +74,11 @@ |
75 | 75 | readline_add_history( $line ); |
76 | 76 | readline_write_history( $historyFile ); |
77 | 77 | } |
| 78 | + if( false !== strpos($line, "<?php") ) { |
| 79 | + # Someone send a .php file to STDIN so we do not want |
| 80 | + # to interprate the special '<?php'. |
| 81 | + continue; |
| 82 | + } |
78 | 83 | $val = eval( $line . ";" ); |
79 | 84 | if ( wfIsHipHop() || is_null( $val ) ) { |
80 | 85 | echo "\n"; |