-
Notifications
You must be signed in to change notification settings - Fork 87
Augeas PHP lens fails on empty values #107
Comments
that seem to be an augeas error - what do you want to do? remove the entry or? |
@Jack12816 iirc, the php.aug file is based off the built-in ini file lens which, yes, is actually quite buggy, especially with the regular expressions that it uses to validate the right side of an assignment. In this particular case though, the lens will refuse to set an empty string like that. My suggestion is to fix it using the
This will result in your PHP ini file having this entry: I have a couple of PHP settings that I don't necessarily want to set myself, but want to make sure are unset so they use the default, and this is the method I use to do this. |
@jippi I was wrong about this problem. It can't be fixed with Augeas commands. The xcache module on Ubuntu 14 LTS (Trusty) is 100% incompatible with the Augeas. The Inifile lens that the PHP lens relies on is so amazingly buggy in every release before the version packaged for Ubuntu Trusty and is still broken in the latest release. The three options are to:
The first two aren't ever happening. In order to get around the problem myself, I just don't bother using this module for the xcache install and do it manually. I have |
If you got a ini file with this line for example:
You cant work on this file.
The text was updated successfully, but these errors were encountered: