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

From: Date: Sat, 08 Jul 2006 11:34:37 +0000
Subject: Bug #8163 [Opn]: go-pear.php fails on PHP < v4.3.0
References: 1  Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-5140@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=8163&edit=1 ID: 8163 Updated by: wiesemann@php.net Reported By: me at gavitron dot com Status: Open Id: 8163 Type: Bug -Package: Documentation +Package: Web Site Operating System: linux PHP Version: Irrelevant New Comment: Not a documentation issue, it's a website problem. Previous Comments: ------------------------------------------------------------------------ [2006-07-07 16:26:50] me at gavitron dot com 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 this bug report at http://pear.php.net/bugs/bug.php?id=8163&edit=1

« previous php.pear.webmaster (#5140) next »