<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>no</td>
</tr>
<tr>
<td>Feature request?</td>
<td>yes</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>4.1</td>
</tr>
</tbody>
</table>
<p dir="auto">As reported in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="260021947" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony-docs/issues/8420" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony-docs/issues/8420/hovercard" href="https://github.com/symfony/symfony-docs/issues/8420">symfony/symfony-docs#8420</a> PdoSessionHandler allows using PDO DSN ... which are completely different from the Doctrine DSN used in modern Symfony apps.</p>
<p dir="auto">Adding Doctrine DSN support without breaking things would be simple because it's easy to detect which of the two DSN are being used. Is this something we want to do? Thanks!</p>
<p dir="auto">Follup of <a href="https://github.com/symfony/symfony/pull/10921#issuecomment-44195569" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/10921/hovercard">this comment</a>:</p>
<p dir="auto">Something is missing since a long time in the configuration of the prod environment for error handling: the <code class="notranslate">ErrorsLoggersListener</code> does a <code class="notranslate">ErrorHandler::setLogger()</code>, but <code class="notranslate">ErrorHandler::register()</code> is never called, so no logging can ever happen, except the one done by the native PHP handler.</p>
<p dir="auto">This led me to two points:</p>
<ul dir="auto">
<li>I think we should always call <code class="notranslate">ErrorHandler::register()</code>, and use <code class="notranslate">set_error_handler()</code>'s second argument to catch only what we want to catch (thus no perf impact in prod).</li>
<li>Does Symfony have recommended settings for <code class="notranslate">log_errors</code> and <code class="notranslate">error_log</code> ini settings? Because IMHO it could be a good idea to put native php logs in <code class="notranslate">app/logs/</code>, <em>if</em> the settings are not configured.</li>
</ul>