-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
brew upgrade php54-augmentedtypes fails on missing phpdoc #14
Comments
Oh boy. This is an unfortunate artifact of the default configuration for php54-augmentedtypes instructing augmented types to enforce everything by default. This can be worked around by commenting out the last line of |
Is it possible to exclude it for building php and other php extensions? Nicholas Silva On Tue, Jul 8, 2014 at 11:26 AM, Joseph Marrama [email protected]
|
I'd like to include an option in the brew recipe for augmented types to not include that particular ini setting. You can't selectively exclude projects from AT enforcement without either modifying php code or changing that ini setting. |
You should submit a PR to https://github.com/Homebrew/homebrew-php/blob/master/Formula/php54-augmentedtypes.rb to write a config file that excludes |
That would be a good solution, but the blacklisting/whitelisting functionality is only available in php, not ini directives. IMO, the better solution would be just to make it a configurable option to not set the |
Someone developing in their homebrew vendor directory is not someone I trust. Also, if you enable |
It feels like the core of the problem is putting the white and black list in PHP code itself. I'm all for circularity but it seems like you will run into persistent problems like this if any code gets run before the black and whitelist can be processed. enforce_by_default seems like the wrong lever to be using to deal with those issues. The right solution seems to be putting the black and whitelist in the ini itself. |
@JHuffaker - you hit a recent problem right on the head. Nasty stuff happens when files are ran before the whitelist and blacklist can be processed. I just added functionality to add paths to the white/blacklist via two ini directives 'whitelist' and 'blacklist' in commit eed4bdf |
It looks like attempting to install php54 (a dependency for php54-augmentedtypes) breaks on a missing phpdoc.
The text was updated successfully, but these errors were encountered: