|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57128 go-pear.php fails on PHP < v4.3.0
Submitted: 2006-07-07 16:26 UTC Modified: 2006-07-08 07:40 UTC
From: me at gavitron dot com Assigned: pajoye (profile)
Status: Closed Package: PECL website (PECL)
PHP Version: Irrelevant OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
42 + 14 = ?
Subscribe to this entry?

 [2006-07-07 16:26 UTC] me at gavitron dot com
I tried to install PEAR under php v 4.2.1, but the command in the documentation: 

# lynx -source | php

Fails with the following:

PHP Fatal error:  Call to undefined function:  set_include_path() in - on line 594

Test script:
Sure enough,

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:

< set_include_path($ptmp);
> ini_set('include_path', $ptmp);


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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-08 07:34 UTC]
Not a documentation issue, it's a website problem.
 [2006-07-08 07:37 UTC]
Yes, we have to keep 4.2.x support. But you should really update your system, to do not say you must update it.
 [2006-07-08 07:40 UTC]
This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on by the end of next Sunday (CET).

If this was a problem with the website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Feb 03 08:05:55 2023 UTC