com web/pecl: These functions are available since 5.0: generatePECL_REST.php
| From: | Maciej Sobaczewski | Date: | Mon, 30 Mar 2015 11:19:09 +0000 |
| Subject: | com web/pecl: These functions are available since 5.0: generatePECL_REST.php | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-21992@lists.php.net to get a copy of this message | ||
Commit: 53d690110d173c2598cb719e1bf25b5233ec1d1a
Author: Sobak <msobaczewski@gmail.com> Mon, 30 Mar 2015 13:19:09 +0200
Parents: 9c3da28e03fe76e450d2e383de2b40006ae14863
Branches: master
Link: http://git.php.net/?p=web/pecl.git;a=commitdiff;h=53d690110d173c2598cb719e1bf25b5233ec1d1a
Log:
These functions are available since 5.0
Changed paths:
M generatePECL_REST.php
Diff:
diff --git a/generatePECL_REST.php b/generatePECL_REST.php
index 61ac0d0..c373ce0 100644
--- a/generatePECL_REST.php
+++ b/generatePECL_REST.php
@@ -31,25 +31,6 @@ if (!isset($pear_rest)) {
}
}
-if (!function_exists('file_get_contents')) {
- function file_get_contents($file, $use_include_path = false) {
- if (!$fp = fopen($file, 'r', $use_include_path)) {
- return false;
- }
- $data = fread($fp, filesize($file));
- fclose($fp);
- return $data;
- }
-}
-
-if (!function_exists('file_put_contents')) {
- function file_put_contents($fname, $contents)
- {
- $fp = fopen($fname, 'wb');
- fwrite($fp, $contents);
- fclose($fp);
- }
-}
include_once "DB.php";
include_once "DB/storage.php";