|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-01-02 13:08 UTC] cellog@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 20:00:01 2025 UTC |
Description: ------------ PEAR can't execute on PHP 4.2. A reason is that it is using file_get_contents() function. PEAR/Installer/Role.php(Line 231): $parser->parse(file_get_contents($file)); Test script: --------------- echo '<?php require "http://go-pear.org/"; ?>' |php -Cq Expected result: ---------------- Successed. Actual result: -------------- Bootstrapping: PEAR...................(remote) ok Bootstrapping: Archive_Tar............(remote) ok Bootstrapping: Console_Getopt.........(remote) ok Downloading package: DB...............ok Downloading package: Net_Socket.......ok Downloading package: Net_SMTP.........ok Downloading package: Mail.............ok Downloading package: XML_Parser.......ok Downloading package: PHPUnit..........ok Extracting installer..................ok <br /> <b>Fatal error</b>: Call to undefined function: file_get_contents() in <b>/tmp/gopehNRkQH/PEAR/Installer /Role.php</b> on line <b>231</b><br />