php5[34]-pear & auto_prepend_file
Bradley Giesbrecht
pixilla at macports.org
Sat Sep 29 13:49:23 PDT 2012
On Sep 29, 2012, at 11:52 AM, Ryan Schmidt wrote:
>
> On Sep 28, 2012, at 20:10, "Wilks, Daniel" wrote:
>
>> I've finally gotten around to switching from the php5 port to php in an attempt at 5.4. But after I got all configured with 5.3 I noticed that the auto_prepend_file that I set in /opt/local/etc/php53/php.ini wasn't being used anymore. A quick tour through Eclipse/XDebug led me to /opt/local/var/db/php53/pear/pear-ini.php being run instead which lead me to auto_prepend_file = '/opt/local/var/db/php53/pear/pear-ini.php' being set in /opt/local/var/db/php53/pear.ini.
>>
>> I can easily comment the line out but the warning gives me pause:
>>
>> ; Do not edit this file; it is automatically generated by MacPorts.
>> ; Any changes you make will be lost if you upgrade or uninstall php54-pear-pear.
>> ; To configure PHP, edit /opt/local/etc/php53-pear/php.ini.
>>
>> I think it's slightly humorous that it tells me to edit php.ini instead. :)
>
> Well it's telling you to edit /opt/local/etc/php53-pear/php.ini, not /opt/local/etc/php53/php.ini. I assume that's not a typo.
Fixed in:
http://trac.macports.org/changeset/98224
>> My own auto_prepend_file is already setting the pear path so I don't need the functionality of the php5x-pear port's pear.ini file. Is there any way to disable the "PEAR build and repository support for php" bit of the pear port?
>
> Not that I can tell.
>
> I don't run a PHP server anymore but when I did, I did use my own auto-prepend file too, so it may be improper of the php5x-pear to take that setting over. I'm not sure what the best solution is.
http://trac.macports.org/changeset/98225
I improved the description to indicate that this port is optional. No ports depend on php5{,3,4}-pear:
description Optional port adds the PEAR repository to the include path for ${php.port}.
Regards,
Bradley Giesbrecht (pixilla)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2763 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120929/46e33ba7/attachment.p7s>
More information about the macports-users
mailing list