Bug #76573 [Opn->Fbk]: Log file is created with wrong permissions if deprecated configuration found

From: Date: Thu, 05 Jul 2018 21:00:15 +0000
Subject: Bug #76573 [Opn->Fbk]: Log file is created with wrong permissions if deprecated configuration found
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216160@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76573&edit=1 ID: 76573 Updated by: ab@php.net Reported by: mbiebl at messageconcept dot com Summary: Log file is created with wrong permissions if deprecated configuration found -Status: Open +Status: Feedback Type: Bug Package: IIS related Operating System: Windows Server 2016 PHP Version: 7.2.7 Block user comment: N Private report: N New Comment: @mbiebl could you please share a backtrace or a crash dump from the case the syslog scenario crashes? See https://bugs.php.net/bugs-generating-backtrace-win32.php Thanks. Previous Comments: ------------------------------------------------------------------------ [2018-07-05 20:18:32] spam2 at rhsoft dot net well, having logfiles in C:\Windows\temp\PHP72_errors.log must be a Windows attitude, i am out here... ------------------------------------------------------------------------ [2018-07-05 20:17:03] mbiebl at messageconcept dot com Well, even if I pre-create the log file somehow (say in the application installer), it's not unthinkable that the admin cleans up C:\Windows\Temp at some point (along with the log file). So I'd need a separate daemon which is running all the time and watches C:\Windows\Temp and immediately re-creates the file. Otherwise, on the next connection attempt the file will be created by php with the wrong permissions again leading to a very hard to debug problem for the admin. ------------------------------------------------------------------------ [2018-07-05 19:55:13] spam2 at rhsoft dot net where would you store and delay them? logs are written when they happen just make sure that your defined logfiles exist from the begin and have the correct permissions and you are done ------------------------------------------------------------------------ [2018-07-05 19:53:09] mbiebl at messageconcept dot com Just tried to use syslog but then got only 500 errors (php-cgi.exe crashing). ------------------------------------------------------------------------ [2018-07-05 19:26:32] mbiebl at messageconcept dot com Would it be possible to delay the logging of those deprecation warnings until the PHP process runs with the correct privileges? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=76573 -- Edit this bug report at https://bugs.php.net/bug.php?id=76573&edit=1

« previous php.bugs (#216160) next »