<p dir="auto"><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/symfony/symfony/commit/f1c2ab7/hovercard" href="https://github.com/symfony/symfony/commit/f1c2ab7"><tt>f1c2ab7</tt></a>#commitcomment-3341689</p>
<p dir="auto"><a href="https://groups.google.com/d/topic/symfony2/F17eK33QY6M/discussion" rel="nofollow">https://groups.google.com/d/topic/symfony2/F17eK33QY6M/discussion</a></p>
<p dir="auto">It`s very simple to reproduce:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="services:
  request_scoped_service:
    class: stdObject
    scope: request

  alias_for_service:
    alias: request_scoped_service"><pre class="notranslate"><span class="pl-ent">services</span>:
  <span class="pl-ent">request_scoped_service</span>:
    <span class="pl-ent">class</span>: <span class="pl-s">stdObject</span>
    <span class="pl-ent">scope</span>: <span class="pl-s">request</span>

  <span class="pl-ent">alias_for_service</span>:
    <span class="pl-ent">alias</span>: <span class="pl-s">request_scoped_service</span></pre></div>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/** @var ContainerInterface $container */
$container-&gt;enterScope('request')
$byName = $container-&gt;get('request_scoped_service');
$byAlias1 = $container-&gt;get('alias_for_service');
$byAlias2 = $container-&gt;get('alias_for_service');
var_dump( $byName === $byAlias1 ); // false, expected true
var_dump( $byName === $byAlias2 ); // false, expected true
var_dump( $byAlias1 === $byAlias2 ); // false, expected true"><pre class="notranslate"><span class="pl-c">/** @var ContainerInterface $container */</span>
<span class="pl-s1"><span class="pl-c1">$</span>container</span>-&gt;<span class="pl-en">enterScope</span>(<span class="pl-s">'request'</span>)
<span class="pl-s1"><span class="pl-c1">$</span>byName</span> = <span class="pl-s1"><span class="pl-c1">$</span>container</span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'request_scoped_service'</span>);
<span class="pl-s1"><span class="pl-c1">$</span>byAlias1</span> = <span class="pl-s1"><span class="pl-c1">$</span>container</span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'alias_for_service'</span>);
<span class="pl-s1"><span class="pl-c1">$</span>byAlias2</span> = <span class="pl-s1"><span class="pl-c1">$</span>container</span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'alias_for_service'</span>);
var_dump( <span class="pl-s1"><span class="pl-c1">$</span>byName</span> === <span class="pl-s1"><span class="pl-c1">$</span>byAlias1</span> ); <span class="pl-c">// false, expected true</span>
var_dump( <span class="pl-s1"><span class="pl-c1">$</span>byName</span> === <span class="pl-s1"><span class="pl-c1">$</span>byAlias2</span> ); <span class="pl-c">// false, expected true</span>
var_dump( <span class="pl-s1"><span class="pl-c1">$</span>byAlias1</span> === <span class="pl-s1"><span class="pl-c1">$</span>byAlias2</span> ); <span class="pl-c">// false, expected true</span></pre></div>
<p dir="auto">Bug may be after this: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/symfony/symfony/commit/f1c2ab7/hovercard" href="https://github.com/symfony/symfony/commit/f1c2ab7"><tt>f1c2ab7</tt></a></p>