Index: trunk/phase3/maintenance/eval.php |
— | — | @@ -22,9 +22,7 @@ |
23 | 23 | /** */ |
24 | 24 | require_once( "commandLine.inc" ); |
25 | 25 | |
26 | | -$line = readconsole( "> " ); |
27 | | - |
28 | | -while ( $line !== false ) { |
| 26 | +while ( ( $line = readconsole( '> ' ) ) !== false ) { |
29 | 27 | $val = eval( $line . ";" ); |
30 | 28 | if( is_null( $val ) ) { |
31 | 29 | echo "\n"; |
— | — | @@ -36,7 +34,6 @@ |
37 | 35 | if ( function_exists( "readline_add_history" ) ) { |
38 | 36 | readline_add_history( $line ); |
39 | 37 | } |
40 | | - $line = readconsole( "> " ); |
41 | 38 | } |
42 | 39 | |
43 | 40 | print "\n"; |