Bug #8163 [NEW]: go-pear.php fails on PHP < v4.3.0

From: Date: Fri, 07 Jul 2006 20:26:50 +0000
Subject: Bug #8163 [NEW]: go-pear.php fails on PHP < v4.3.0
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8136@lists.php.net to get a copy of this message
From: me at gavitron dot com Operating system: linux Package version: PHP version: Irrelevant Package: Documentation Bug Type: Bug Bug description: go-pear.php fails on PHP < v4.3.0 Description: ------------ I tried to install PEAR under php v 4.2.1, but the command in the documentation: # lynx -source http://go-pear.org/ | php Fails with the following: PHP Fatal error: Call to undefined function: set_include_path() in - on line 594 Test script: --------------- Sure enough, http://www.php.net/set_include_path tells me that this wonderful system call is >= 4.3.0 only! I made the a simple change to a local copy of go-pear.php and it chugged along merrily. This following 4-line diff should fix it for everyone: 594c594 < set_include_path($ptmp); --- > ini_set('include_path', $ptmp); Regards, Gavin. Expected result: ---------------- Should install on PHP v4.2.0+ Actual result: -------------- only installs on PHP v4.3.0+ go-pear.php dies with: PHP Fatal error: Call to undefined function: set_include_path() in - on line 594 -- Edit bug report at http://pear.php.net/bugs/bug.php?id=8163&edit=1 --

« previous php.pear.doc (#8136) next »