Re: Pear 1.4.8 under PHP 4.2.2.
| From: | bertrand Gugger | Date: | Wed, 08 Mar 2006 09:09:40 +0000 |
| Subject: | Re: Pear 1.4.8 under PHP 4.2.2. | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23241@lists.php.net to get a copy of this message | ||
Massimiliano Arione wrote:
Matthew Barr wrote: [CUT]As a hack, you could try to build a tiny mycompat.php somewhere in your include_path just putting in it the compat functions what you need and declare it as auto-prepend [1] in your php.ini. As a first try you could just copy in it the file_get_content() compat function [2]. If ok for the error you quoted, then put more in it as needed. That's quite hackish and purists in the list will curse me :) (I have some site the same where php upgrade is out of question) -- toggg [1] http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file [2] http://cvs.php.net/viewcvs.cgi/*checkout*/pear/PHP_Compat/Compat/Function/file_get_contents.php?rev=1.23Fatal error: Call to undefined function: file_get_contents() in /usr/share/pear/PEAR/Installer/Role.php on line 232Did you try to install PHP_Compat? http://pear.php.net/package/PHP_Compat Loading the whole PHP_Compat for that would be much an overload.