Index: trunk/phase3/maintenance/tests/selenium/SeleniumServerManager.php |
— | — | @@ -179,12 +179,13 @@ |
180 | 180 | // on its port. Note: this solution kinda |
181 | 181 | // stinks, since it uses a wait loop - dnessett |
182 | 182 | |
| 183 | + wfSuppressWarnings(); |
183 | 184 | for ( $cnt = 1; |
184 | 185 | $cnt <= $this->SeleniumServerStartTimeout; |
185 | 186 | $cnt++ ) { |
186 | | - $fp = @fsockopen ( 'localhost', |
| 187 | + $fp = fsockopen ( 'localhost', |
187 | 188 | $this->SeleniumServerPort, |
188 | | - &$errno, &$errstr, 0 ); |
| 189 | + $errno, $errstr, 0 ); |
189 | 190 | if ( !$fp ) { |
190 | 191 | sleep( 1 ); |
191 | 192 | continue; |
— | — | @@ -194,6 +195,7 @@ |
195 | 196 | return 'started'; |
196 | 197 | } |
197 | 198 | } |
| 199 | + wfRestoreWarnings(); |
198 | 200 | echo ( "Starting Selenium server timed out.\n" ); |
199 | 201 | return 'failed'; |
200 | 202 | } |