php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: me at gavitron dot com
New email:
PHP Version: OS:

 

 [2006-07-07 16:26 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-08 07:34 UTC] wiesemann@php.net
Not a documentation issue, it's a website problem.
 [2006-07-08 07:37 UTC] pajoye@php.net
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] pajoye@php.net
This bug has been fixed in CVS.

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

If this was a problem with the pear.php.net 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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC