It is no need to include "../../mk/bsd.prefs.mk" before including "../../lang/php/ext.mk" since ext.mk includes bsd.prefs.mk internally.