svn: /pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/Runphpt/ Runner.php

From: Date: Sun, 14 Mar 2010 06:20:32 +0000
Subject: svn: /pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/Runphpt/ Runner.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9296@lists.php.net to get a copy of this message
dufuz Sun, 14 Mar 2010 06:20:32 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=296163 Log: remove the exists check for file_put_contents as it's always available. Changed paths: U pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/Runphpt/Runner.php Modified: pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/Runphpt/Runner.php =================================================================== --- pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/Runphpt/Runner.php 2010-03-14 05:18:33 UTC (rev 296162) +++ pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/Runphpt/Runner.php 2010-03-14 06:20:32 UTC (rev 296163) @@ -400,15 +400,7 @@ $text = '<?php'; $text .= "\n" . 'function coverage_shutdown() {' . "\n" . ' $xdebug = var_export(xdebug_get_code_coverage(), true);'; - if (!function_exists('file_put_contents')) { - $text .= "\n" . ' $fh = fopen(\'' . $xdebug_file . '\', "wb");' . - "\n" . ' if ($fh !== false) {' . - "\n" . ' fwrite($fh, $xdebug);' . - "\n" . ' fclose($fh);' . - "\n" . ' }'; - } else { - $text .= "\n" . ' file_put_contents(\'' . $xdebug_file . '\', $xdebug);'; - } + $text .= "\n" . ' file_put_contents(\'' . $xdebug_file . '\', $xdebug);'; $text .= "\n" . 'xdebug_stop_code_coverage();' . "\n" . '} // end coverage_shutdown()' .

« previous php.pear.core (#9296) next »