Does PHP create the directory for the error log if it does not exist?
For example, the error_log directive is set to /var/logs/php/errors.log but the folder /var/logs/php does not exist.
Does PHP create the directory for the error log if it does not exist?
For example, the error_log directive is set to /var/logs/php/errors.log but the folder /var/logs/php does not exist.
No, this is not the case. If the directory for the logfile does not exist, it is not automatically created.
If you log only errors to file, no errors will be logged and no notice about that is given.
Tested with PHP 5.4.13