X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Feval.php;h=499644676a41b817540b1d7eda68334f12bac917;hb=9964ca1a390c446397dcd466916ffed356cdc3c9;hp=3f10a33b516399dcadf88bb84d1c4ce9d32d30e1;hpb=26726d0f9745d8f5fb86e08c4d147a4375d63a98;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/eval.php b/maintenance/eval.php index 3f10a33b51..499644676a 100644 --- a/maintenance/eval.php +++ b/maintenance/eval.php @@ -30,7 +30,7 @@ * @ingroup Maintenance */ -$optionsWithArgs = array( 'd' ); +$optionsWithArgs = [ 'd' ]; /** */ require_once __DIR__ . "/commandLine.inc"; @@ -60,11 +60,6 @@ if ( $__useReadline ) { readline_read_history( $__historyFile ); } -$__phpPath = preg_match( '/Zend Engine|HipHop VM/', wfShellExecWithStderr( 'php --version' ) ) - ? 'php' //standard system path name - : ''; // not accessible somehow - -$__multiLine = ''; $__e = null; // PHP exception while ( ( $__line = Maintenance::readconsole() ) !== false ) { if ( $__e && !preg_match( '/^(exit|die);?$/', $__line ) ) { @@ -79,18 +74,8 @@ while ( ( $__line = Maintenance::readconsole() ) !== false ) { readline_add_history( $__line ); readline_write_history( $__historyFile ); } - // Try to only run PHP once a valid chunk is formed (deals with newlines) - if ( $__phpPath ) { - $res = wfShellExecWithStderr( - "echo " . wfEscapeShellArg( "getMessage()}\n" . $__e->getTraceAsString() . "\n";