| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 16 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| 1 | <?php | ||
| 35 | public function doTest() | ||
| 36 |     { | ||
| 37 |         $this->setMessage('Check if allow_url_fopen is enabled.'); | ||
| 38 | |||
| 39 |         if (ini_get('allow_url_fopen')) { | ||
| 40 | $this->markSuccess(); | ||
| 41 | |||
| 42 | return; | ||
| 43 | } | ||
| 44 | |||
| 45 | $this->markFailed( | ||
| 46 | 'The php setting allow_url_fopen must be enabled to allow downloading of data. ' . | ||
| 47 | 'Note that this does NOT imply any security risk as this is NOT the setting allow_url_include ' . | ||
| 48 | '(which should be disabled).' | ||
| 49 | ); | ||
| 50 | } | ||
| 51 | } | ||
| 52 |