Are there any tools available to validate that an .ini file is syntactically correct and usable by PHP? In specific, this is going to be loaded by Zend_Config in Zend Framework which uses parse_ini_file().
I'm finding it difficult to Google for this as most results are on modifying php.ini to do something, or linting the actual PHP code.
This looked like a possibility but it wouldn't be aware of PHP's requirements for ini files, also I'd need to write and deploy a C program.
One possible option would be to write a PHP script which tries to load the .ini config and exits nonzero if there's an error. I was hoping there might be a pre-existing solution for this that would be easier to slot in to an ant build, as a dummy check before the config is deployed to a production environment.