cvs: pearweb /include pear-prepend.php pear-rest.php

From: Date: Sun, 15 May 2005 20:47:52 +0000
Subject: cvs: pearweb /include pear-prepend.php pear-rest.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-31876@lists.php.net to get a copy of this message
pajoye Sun May 15 16:47:52 2005 EDT Modified files: /pearweb/include pear-prepend.php pear-rest.php Log: - declare file_put_contents in prepend, as get_contents http://cvs.php.net/diff.php/pearweb/include/pear-prepend.php?r1=1.58&r2=1.59&ty=u Index: pearweb/include/pear-prepend.php diff -u pearweb/include/pear-prepend.php:1.58 pearweb/include/pear-prepend.php:1.59 --- pearweb/include/pear-prepend.php:1.58 Tue May 10 12:41:18 2005 +++ pearweb/include/pear-prepend.php Sun May 15 16:47:51 2005 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: pear-prepend.php,v 1.58 2005/05/10 16:41:18 dufuz Exp $ + $Id: pear-prepend.php,v 1.59 2005/05/15 20:47:51 pajoye Exp $ */ require_once "pear-config.php"; if ($_SERVER['SERVER_NAME'] != PEAR_CHANNELNAME) { @@ -102,5 +102,14 @@ } } +if (!function_exists('file_put_contents')) { + function file_put_contents($fname, $contents) + { + $fp = fopen($fname, 'wb'); + fwrite($fp, $contents); + fclose($fp); + } +} + session_start(); ?> http://cvs.php.net/diff.php/pearweb/include/pear-rest.php?r1=1.10&r2=1.11&ty=u Index: pearweb/include/pear-rest.php diff -u pearweb/include/pear-rest.php:1.10 pearweb/include/pear-rest.php:1.11 --- pearweb/include/pear-rest.php:1.10 Tue May 3 18:05:27 2005 +++ pearweb/include/pear-rest.php Sun May 15 16:47:51 2005 @@ -378,12 +378,4 @@ DIRECTORY_SEPARATOR . 'info.xml', 0666); } } -if (!function_exists('file_put_contents')) { - function file_put_contents($fname, $contents) - { - $fp = fopen($fname, 'wb'); - fwrite($fp, $contents); - fclose($fp); - } -} -?> \ No newline at end of file +?>

« previous php.pear.cvs (#31876) next »