php5[34]-pear & auto_prepend_file

Ryan Schmidt ryandesign at macports.org
Sat Sep 29 11:52:51 PDT 2012


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.


> 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.




More information about the macports-users mailing list