php5[34]-pear & auto_prepend_file

Wilks, Daniel dwilks at
Fri Sep 28 18:10:42 PDT 2012


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

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?


More information about the macports-users mailing list