-
Notifications
You must be signed in to change notification settings - Fork 8k
Fix for #69061 - Remove timestamp for mail.log = syslog #1087
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
Conversation
ext/standard/mail.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will leak the old buffer occupied by msg, since spprintf will allocate the new one and the pointer to the old one will be lost. Please fix.
Fix for #69061 Make mail.log append correct PHP_EOL and remove timestamp when sending to syslog
ext/standard/mail.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't date_str already been freed in line 299?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch
|
@tomsommer fix conflicts please |
|
For some reason I'm still not able to merge this, even though there are no conflicts reported ... possibly your master branch is out of date ? |
|
@krakjoe Possibly related to http://news.php.net/php.internals/97726. |
|
Merged via e77a1db into 7.1+, thanks! I didn't merge into 7.0 as I don't want to change log file format in the middle of the release cycle (could break parsers etc). @krakjoe Not sure what the issue was, I just applied the diff directly. We should probably ask people to rebase changes onto master rather than merging it in. Otherwise the |
Fix for #69061