Bug 24938

Summary: -pear patch changes the PEAR_INSTALL_DIR to an incorrect directory
Product: [Retired] Red Hat Linux Reporter: Arenas Belon, Carlo Marcelo <carenas>
Component: phpAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-02-05 10:13:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
new pear patch that uses /usr/share/php as expected
none
new pear patch with a non relocable /usr/share/php (also fixes 24943)
none
-4 spec wich also fixes a small typo none

Description Arenas Belon, Carlo Marcelo 2001-01-25 16:24:14 UTC
for PEAR /usr/share/php ($datadir/php) is used, but this is patch is
incorrectly setting it to
$datadir/php4 (/usr/share/php4) breaking the PEAR.php generation and
posibly making installation harder than it should be

Comment 1 Arenas Belon, Carlo Marcelo 2001-01-25 16:50:31 UTC
Created attachment 8248 [details]
new pear patch that uses /usr/share/php as expected

Comment 2 Arenas Belon, Carlo Marcelo 2001-01-25 19:52:54 UTC
sadly, using $datadir lead to the problem explained on 24943, so this is not a
good solution.

Comment 3 Arenas Belon, Carlo Marcelo 2001-01-25 20:23:21 UTC
Created attachment 8270 [details]
new pear patch with a non relocable /usr/share/php (also fixes 24943)

Comment 4 Arenas Belon, Carlo Marcelo 2001-01-25 20:24:47 UTC
*** Bug 24943 has been marked as a duplicate of this bug. ***

Comment 5 Arenas Belon, Carlo Marcelo 2001-01-25 20:27:12 UTC
Created attachment 8271 [details]
-4 spec wich also fixes a small typo

Comment 6 Nalin Dahyabhai 2001-01-29 20:07:02 UTC
*** Bug 24940 has been marked as a duplicate of this bug. ***

Comment 7 Nalin Dahyabhai 2001-01-29 20:09:57 UTC
Does 4.0.4pl1-4 from Raw Hide fix this problem?

Comment 8 Arenas Belon, Carlo Marcelo 2001-02-05 10:13:09 UTC
nope, there is no fix on the latest -6 from rawhide.

on /usr/share/php/PEAR.php there is a wrong path for :

  define ('PEAR_INSTALL_DIR', '${prefix}/share/php4');

as a result the load of the corresponding Mail subclass on Mail::factory fails
when :

  $classfile = PEAR_INSTALL_DIR. '/Mail/' . $mailer_type. '.php';

Comment 9 Arenas Belon, Carlo Marcelo 2001-03-05 21:38:15 UTC
php-4.0.4pl1-8 used the correct path for pear