<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Tue Jun 18 21:32:05 UTC 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.doctrine-project.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+DCOM+AND+fixVersion+%3D+%222.2%22&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://www.doctrine-project.org/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Doctrine Project</title>
        <link>http://www.doctrine-project.org/jira/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=project+%3D+DCOM+AND+fixVersion+%3D+%222.2%22</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="13" total="13"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DCOM-97] phpParser.php and &apos;use&apos; keyword in anonymous functions</title>
                <link>http://www.doctrine-project.org/jira/browse/DCOM-97</link>
                <project id="10043" key="DCOM">Doctrine Common</project>
                        <description>&lt;p&gt;When i use the keyword &apos;use&apos; in anonymous function (like describe in page &lt;a href=&quot;http://php.net/manual/en/functions.anonymous.php&quot; class=&quot;external-link&quot;&gt;http://php.net/manual/en/functions.anonymous.php&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Exemple : &lt;br/&gt;
...&lt;/p&gt;

&lt;p&gt;/**&lt;br/&gt;
    *&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Extract event from all events for this day&lt;/li&gt;
	&lt;li&gt;&lt;/li&gt;
	&lt;li&gt;@param int $year&lt;/li&gt;
	&lt;li&gt;@param int $month&lt;/li&gt;
	&lt;li&gt;@param int $day&lt;/li&gt;
	&lt;li&gt;@return ArrayCollection&lt;br/&gt;
    */&lt;br/&gt;
   public function getEventsForDate($year, $month, $day)
   &lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unknown macro: {        $extractEvents = null;        // check if date of item is inside day given        $extractEvents =  $this-&amp;gt;events-&amp;gt;filter(                function ($item) use ($year, $month, $day)                {
                    $leftDate = new \DateTime($year.&apos;-&apos;.$month.&apos;-&apos;.$day.&apos; 00:00&apos;);
                    $rigthDate = new \DateTime($year.&apos;-&apos;.$month.&apos;-&apos;.$day.&apos; +1 day 00:00&apos;);

                    return ( ( $leftDate &amp;lt;= $item-&amp;gt;getDateStart() ) &amp;amp;&amp;amp; ( $item-&amp;gt;getDateStart() &amp;lt; $rigthDate ) );
                }        );        return $extractEvents;   }&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;...&lt;/p&gt;


&lt;p&gt;The phpParser generate error&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;ErrorException&amp;#93;&lt;/span&gt;                                                                                                                         &lt;br/&gt;
  Notice: Undefined offset: -1 in /home/ent/project/Symfony/vendor/doctrine-common/lib/Doctrine/Common/Annotations/PhpParser.php line 117 &lt;/p&gt;

&lt;p&gt;It try to parse &apos;use ($year, $month, $day)&apos; as Class&lt;/p&gt;


</description>
                <environment>php 5.3, Symfony2, linux</environment>
            <key id="13442">DCOM-97</key>
            <summary>phpParser.php and &apos;use&apos; keyword in anonymous functions</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="totolehero">Thomas Lecarpentier</reporter>
                        <labels>
                    </labels>
                <created>Mon, 13 Feb 2012 13:26:09 +0000</created>
                <updated>Fri, 30 Mar 2012 20:15:04 +0000</updated>
                    <resolved>Fri, 30 Mar 2012 20:15:04 +0000</resolved>
                            <version>2.1.4</version>
                                <fixVersion>2.2</fixVersion>
                                <component>Annotations</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17653" author="fabio.bat.silva" created="Sun, 25 Mar 2012 14:07:44 +0000"  >&lt;p&gt;I think this is fixed on the php parser rewrite. (2.2)&lt;/p&gt;</comment>
                    <comment id="17655" author="fabio.bat.silva" created="Sun, 25 Mar 2012 18:29:46 +0000"  >&lt;p&gt;Coverage added : &lt;a href=&quot;https://github.com/doctrine/common/commit/7ec510dbb2279f76a00ecf3f911298879c6ba1a1&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/commit/7ec510dbb2279f76a00ecf3f911298879c6ba1a1&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;I think this could be closed..&lt;/p&gt;</comment>
                    <comment id="17689" author="fabio.bat.silva" created="Fri, 30 Mar 2012 20:15:04 +0000"  >&lt;p&gt;Fixed on php parser rewrite. (2.2)&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DCOM-93] Add Reflection Abstraction</title>
                <link>http://www.doctrine-project.org/jira/browse/DCOM-93</link>
                <project id="10043" key="DCOM">Doctrine Common</project>
                        <description>&lt;p&gt;The Reflection code in ClassMetadata(Info*)s is getting out of control.&lt;/p&gt;

&lt;p&gt;I want to remove the dependency by introducing a ReflectionService interface:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;interface&lt;/span&gt; ReflectionService
{
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getClassShortName($class);
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getClassNamespace($class);
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getClass($class);
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getAccessibleProperty($class, $property);
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function hasPublicMethod($class, $method);
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The reflection methods are specifically allowed to return NULL, so that we can create a StaticReflectionService that works without the classes actually existing.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13317">DCOM-93</key>
            <summary>Add Reflection Abstraction</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 28 Dec 2011 20:23:37 +0000</created>
                <updated>Tue, 3 Jan 2012 21:56:55 +0000</updated>
                    <resolved>Mon, 2 Jan 2012 21:06:10 +0000</resolved>
                                            <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17136" author="beberlei" created="Wed, 28 Dec 2011 23:50:03 +0000"  >&lt;p&gt;This issue is referenced in Github Pull-Request GH-89&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/common/pull/89&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/89&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17137" author="beberlei" created="Thu, 29 Dec 2011 09:15:05 +0000"  >&lt;p&gt;Related Pull Request was closed: &lt;a href=&quot;https://github.com/doctrine/common/pull/89&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/89&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17169" author="beberlei" created="Mon, 2 Jan 2012 21:06:10 +0000"  >&lt;p&gt;Implemented&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10001">
                <name>Reference</name>
                                                <inwardlinks description="is referenced by">
                            <issuelink>
            <issuekey id="13327">DDC-1577</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DCOM-85] GH-81: Add Proxy#__load()</title>
                <link>http://www.doctrine-project.org/jira/browse/DCOM-85</link>
                <project id="10043" key="DCOM">Doctrine Common</project>
                        <description>&lt;p&gt;Pull-Request was automatically synchronized: &lt;a href=&quot;https://github.com/doctrine/common/pull/81&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/81&lt;/a&gt;&lt;/p&gt;
</description>
                <environment></environment>
            <key id="13237">DCOM-85</key>
            <summary>GH-81: Add Proxy#__load()</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 3 Dec 2011 23:28:24 +0000</created>
                <updated>Mon, 12 Dec 2011 19:19:46 +0000</updated>
                    <resolved>Mon, 12 Dec 2011 19:19:46 +0000</resolved>
                                            <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16972" author="beberlei" created="Mon, 12 Dec 2011 19:19:46 +0000"  >&lt;p&gt;Implemented in &lt;a href=&quot;https://github.com/doctrine/common/pull/83&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/83&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DCOM-84] Improve Proxy Naming</title>
                <link>http://www.doctrine-project.org/jira/browse/DCOM-84</link>
                <project id="10043" key="DCOM">Doctrine Common</project>
                        <description>&lt;p&gt;see &lt;a href=&quot;https://gist.github.com/b493493ecdb22c21590e&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/b493493ecdb22c21590e&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13233">DCOM-84</key>
            <summary>Improve Proxy Naming</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/blocker.png">Blocker</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="johannes">Johannes Schmitt</reporter>
                        <labels>
                    </labels>
                <created>Thu, 1 Dec 2011 13:34:39 +0000</created>
                <updated>Tue, 13 Dec 2011 20:41:05 +0000</updated>
                    <resolved>Mon, 12 Dec 2011 19:18:46 +0000</resolved>
                                            <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16971" author="beberlei" created="Mon, 12 Dec 2011 19:18:46 +0000"  >&lt;p&gt;Implemented in &lt;a href=&quot;https://github.com/doctrine/common/pull/83&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/83&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="16977" author="beberlei" created="Tue, 13 Dec 2011 20:41:05 +0000"  >&lt;p&gt;This issue is referenced in Github Pull-Request GH-83&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/common/pull/83&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/83&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DCOM-83] Rename ComparableInterface</title>
                <link>http://www.doctrine-project.org/jira/browse/DCOM-83</link>
                <project id="10043" key="DCOM">Doctrine Common</project>
                        <description>&lt;p&gt;see &lt;a href=&quot;https://github.com/doctrine/common/commit/fce661a041aa1dc3634bd1c04cacd684619579fc&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/commit/fce661a041aa1dc3634bd1c04cacd684619579fc&lt;/a&gt; for reasoning&lt;/p&gt;

&lt;p&gt;I didn&apos;t want to do it myself, don&apos;t know what depends on this.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13232">DCOM-83</key>
            <summary>Rename ComparableInterface</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="johannes">Johannes Schmitt</reporter>
                        <labels>
                    </labels>
                <created>Thu, 1 Dec 2011 13:33:42 +0000</created>
                <updated>Mon, 12 Dec 2011 19:29:13 +0000</updated>
                    <resolved>Mon, 12 Dec 2011 19:29:13 +0000</resolved>
                                            <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16974" author="beberlei" created="Mon, 12 Dec 2011 19:29:13 +0000"  >&lt;p&gt;Fixed in 3ee9aea&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DCOM-79] Move Lifecycle Events into Doctrine\Common\Persistence\Events</title>
                <link>http://www.doctrine-project.org/jira/browse/DCOM-79</link>
                <project id="10043" key="DCOM">Doctrine Common</project>
                        <description></description>
                <environment></environment>
            <key id="13202">DCOM-79</key>
            <summary>Move Lifecycle Events into Doctrine\Common\Persistence\Events</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 19 Nov 2011 10:26:43 +0000</created>
                <updated>Mon, 12 Dec 2011 19:21:59 +0000</updated>
                    <resolved>Mon, 12 Dec 2011 19:21:59 +0000</resolved>
                                            <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16973" author="beberlei" created="Mon, 12 Dec 2011 19:21:59 +0000"  >&lt;p&gt;Implemented in 29dbb7070058c8e7bb81bc5f9ef79d877b058887&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DCOM-78] ZendDataCache, Can&apos;t use method return value in write context</title>
                <link>http://www.doctrine-project.org/jira/browse/DCOM-78</link>
                <project id="10043" key="DCOM">Doctrine Common</project>
                        <description>&lt;p&gt;On line 70, empty($this-&amp;gt;getNamespace()).&lt;/p&gt;

&lt;p&gt;empty() works only with variables so you need to assign the namespace to something before using empty().&lt;/p&gt;

&lt;p&gt;Fatal error: Can&apos;t use method return value in write context in Doctrine/Common/Cache/ZendDataCache.php on line 70&lt;/p&gt;</description>
                <environment></environment>
            <key id="13201">DCOM-78</key>
            <summary>ZendDataCache, Can&apos;t use method return value in write context</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="ambis">Matti Niemel&#228;</reporter>
                        <labels>
                    </labels>
                <created>Sat, 19 Nov 2011 03:57:14 +0000</created>
                <updated>Sat, 19 Nov 2011 13:24:50 +0000</updated>
                    <resolved>Sat, 19 Nov 2011 13:24:50 +0000</resolved>
                            <version>2.2</version>
                                <fixVersion>2.2</fixVersion>
                                <component>Caching</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16889" author="beberlei" created="Sat, 19 Nov 2011 13:24:50 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DCOM-71] Add save get_class() to Debug Util</title>
                <link>http://www.doctrine-project.org/jira/browse/DCOM-71</link>
                <project id="10043" key="DCOM">Doctrine Common</project>
                        <description></description>
                <environment></environment>
            <key id="13117">DCOM-71</key>
            <summary>Add save get_class() to Debug Util</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 22 Oct 2011 17:17:05 +0000</created>
                <updated>Sun, 23 Oct 2011 06:36:00 +0000</updated>
                    <resolved>Sun, 23 Oct 2011 06:36:00 +0000</resolved>
                                            <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16689" author="beberlei" created="Sun, 23 Oct 2011 06:36:00 +0000"  >&lt;p&gt;Added.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DCOM-66] Github-PR-55 by shesek: Use stream_resolve_include_path</title>
                <link>http://www.doctrine-project.org/jira/browse/DCOM-66</link>
                <project id="10043" key="DCOM">Doctrine Common</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of &lt;/p&gt;
{username}
&lt;p&gt;:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/common/pull/55&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/55&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;`Doctrine\Common\ClassLoader::fileExistsInIncludePath` behaves the same as `stream_resolve_include_path`, use that instead when available (PHP &amp;gt;= 5.3.2). It should be faster than doing that manually.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12969">DCOM-66</key>
            <summary>Github-PR-55 by shesek: Use stream_resolve_include_path</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 25 Aug 2011 18:02:50 +0000</created>
                <updated>Sun, 28 Aug 2011 03:31:11 +0000</updated>
                    <resolved>Sun, 28 Aug 2011 03:31:11 +0000</resolved>
                                            <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16392" author="guilhermeblanco" created="Sun, 28 Aug 2011 03:31:11 +0000"  >&lt;p&gt;Fixed in trunk.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DCOM-59] ArrayCollection contains function - switch from in_array to foreach</title>
                <link>http://www.doctrine-project.org/jira/browse/DCOM-59</link>
                <project id="10043" key="DCOM">Doctrine Common</project>
                        <description>&lt;p&gt;The function contains uses in_array to determine if an element provided as parameter is found in the array $this-&amp;gt;_elements, and performs a strict comparison.&lt;br/&gt;
There might be a way to improve the performances of this function by using a foreach + if&lt;/p&gt;

&lt;p&gt;In attachement you can find a small bench file to show the  differences between in_array and foreach on object search.&lt;br/&gt;
You might want to run the bench with a doctrine Object to verify if this changes anything to the result.&lt;br/&gt;
For simple Objects, foreach is much faster when the array has less than 30k elements. Over 30k the difference flattens, and might revert around 50k (meaning that in_array might start being faster when the array has more than 50k entries).&lt;/p&gt;

&lt;p&gt;Maybe we could provide two functions, one for smaller than 40-50k items (using foreach), and one for bigger arrays (using in_array) ?&lt;/p&gt;</description>
                <environment></environment>
            <key id="12910">DCOM-59</key>
            <summary>ArrayCollection contains function - switch from in_array to foreach</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="pem">PEM</reporter>
                        <labels>
                    </labels>
                <created>Wed, 10 Aug 2011 08:09:36 +0000</created>
                <updated>Sun, 28 Aug 2011 03:21:33 +0000</updated>
                    <resolved>Sun, 28 Aug 2011 03:21:33 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.2</fixVersion>
                                <component>Collections</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16391" author="guilhermeblanco" created="Sun, 28 Aug 2011 03:21:33 +0000"  >&lt;p&gt;I created more test cases and indeed foreach is around 40% faster than in_array. I applied the change in our suite, this should be available in new versions of Doctrine Common.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11045" name="inArray_vs_foreach.php" size="1729" author="pem" created="Wed, 10 Aug 2011 08:09:36 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DCOM-58] Having class named Entity in the global namespace, interferes with the new annotation reader.</title>
                <link>http://www.doctrine-project.org/jira/browse/DCOM-58</link>
                <project id="10043" key="DCOM">Doctrine Common</project>
                        <description>&lt;p&gt;Having a class named Entity in the global namespace, results in exceptions: &quot;Class xxx is not a valid entity or mapped super class.&quot;&lt;br/&gt;
The problem is not present in 2.0&lt;/p&gt;

&lt;p&gt;The problem:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;\Doctrine\Common\Annotations\DocParser.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;line 421: $reflClass = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \ReflectionClass($name);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;$name is &quot;Entity&quot;, and the reflection finds the non-doctrine Entity-class in the global namespace, and so doesn&apos;t find the &quot;@Annotation&quot; it&apos;s looking for when it examines the class.&lt;/p&gt;

&lt;p&gt;If I force it to reflect on \Doctrine\ORM\Mapping\Entity instead, the next problem is instantiation:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;\Doctrine\Common\Annotations\DocParser.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;line 435: &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; $name($values);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Forcing that to the right class, brings a &quot;Failed opening required &apos;Doctrine/ORM/Mapping/Doctrine/ORM/Mapping/Id.php&apos; &quot; - I haven&apos;t investigated further (yet at least).&lt;/p&gt;

&lt;p&gt;/Michael&lt;/p&gt;</description>
                <environment>Ubuntu 10.04, Zend Server CE 5.1.0 (Apache 2.2.14, PHP 5.3.5), Doctrine 2.1</environment>
            <key id="12899">DCOM-58</key>
            <summary>Having class named Entity in the global namespace, interferes with the new annotation reader.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="napsi">Michael Nielsen</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Aug 2011 10:16:11 +0000</created>
                <updated>Wed, 7 Sep 2011 22:14:24 +0000</updated>
                    <resolved>Wed, 7 Sep 2011 22:14:24 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.2</fixVersion>
                                <component>Annotations</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16452" author="guilhermeblanco" created="Wed, 7 Sep 2011 22:14:24 +0000"  >&lt;p&gt;Fixed &lt;a href=&quot;https://github.com/doctrine/common/commit/481083226477b325decfd7202ff59c252397c392&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/commit/481083226477b325decfd7202ff59c252397c392&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DCOM-43] Cache Stats</title>
                <link>http://www.doctrine-project.org/jira/browse/DCOM-43</link>
                <project id="10043" key="DCOM">Doctrine Common</project>
                        <description>&lt;p&gt;Doctrine should be able to retrieve stats from cache providers, such as Memcache and APC. Stats may list cache hits, cache misses, memory, and so forth.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12536">DCOM-43</key>
            <summary>Cache Stats</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="otaviofff">Otavio Ferreira</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Apr 2011 13:31:26 +0000</created>
                <updated>Wed, 21 Sep 2011 14:57:26 +0000</updated>
                    <resolved>Wed, 21 Sep 2011 14:57:26 +0000</resolved>
                            <version>2.0.1</version>
                                <fixVersion>2.2</fixVersion>
                                <component>Caching</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16497" author="guilhermeblanco" created="Wed, 21 Sep 2011 14:57:26 +0000"  >&lt;p&gt;Implemented this support since this commit: &lt;a href=&quot;https://github.com/doctrine/common/commit/34e060309ee1ae06f4be610d39d8721d2cfb1b90&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/commit/34e060309ee1ae06f4be610d39d8721d2cfb1b90&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DCOM-32] Memcache cache relies on deprecated functions</title>
                <link>http://www.doctrine-project.org/jira/browse/DCOM-32</link>
                <project id="10043" key="DCOM">Doctrine Common</project>
                        <description>&lt;p&gt;The method getIds() in MemcacheCache relies on the old &quot;cachedump&quot; stat type.&lt;/p&gt;

&lt;p&gt;But as you can read here: &lt;a href=&quot;http://de2.php.net/manual/en/memcache.getextendedstats.php&quot; class=&quot;external-link&quot;&gt;http://de2.php.net/manual/en/memcache.getextendedstats.php&lt;/a&gt; this has been removed due to security reasons.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12243">DCOM-32</key>
            <summary>Memcache cache relies on deprecated functions</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="sebastian.hoitz">Sebastian Hoitz</reporter>
                        <labels>
                    </labels>
                <created>Tue, 21 Dec 2010 10:51:14 +0000</created>
                <updated>Wed, 28 Mar 2012 15:14:23 +0000</updated>
                    <resolved>Sat, 27 Aug 2011 20:30:20 +0000</resolved>
                            <version>2.0.0-RC2</version>
                                <fixVersion>2.2</fixVersion>
                                <component>Caching</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="14991" author="sebastian.hoitz" created="Tue, 21 Dec 2010 11:21:51 +0000"  >&lt;p&gt;Adding this to memcached before getting the extended stats cachedump fixed this issue for me:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;(!is_int($slabId)) {
    &lt;span class=&quot;code-keyword&quot;&gt;continue&lt;/span&gt;;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="15322" author="guilhermeblanco" created="Tue, 15 Feb 2011 23:13:55 +0000"  >&lt;p&gt;This issue doesn&apos;t seen to be valid anymore based on commit of @hobodave on Jan 29th.&lt;/p&gt;

&lt;p&gt;Please reopen if it is still valid. I could not reproduce.&lt;/p&gt;</comment>
                    <comment id="15738" author="guilhermeblanco" created="Mon, 18 Apr 2011 11:24:07 +0000"  >&lt;p&gt;Memcache daemon 1.4.5 do not provide cachedump and triggers a couple of issues all around.&lt;br/&gt;
Here is a link that gives more information: &lt;a href=&quot;http://www.pecl.php.net/bugs/bug.php?id=20375&amp;amp;edit=3&quot; class=&quot;external-link&quot;&gt;http://www.pecl.php.net/bugs/bug.php?id=20375&amp;amp;edit=3&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We need to think on a workaround since current state of Doctrine 2 is unusable with recent memcache.&lt;/p&gt;</comment>
                    <comment id="15813" author="ddebernardy" created="Sat, 7 May 2011 14:12:41 +0000"  >&lt;p&gt;There additionally seems to be a hard-coded limit to the size of the dump:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://stackoverflow.com/questions/4363904/is-there-any-length-limitation-of-result-by-stats-cachedump-in-memcached&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/questions/4363904/is-there-any-length-limitation-of-result-by-stats-cachedump-in-memcached&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://lists.danga.com/pipermail/memcached/2007-April/003906.html&quot; class=&quot;external-link&quot;&gt;http://lists.danga.com/pipermail/memcached/2007-April/003906.html&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="16389" author="guilhermeblanco" created="Sat, 27 Aug 2011 20:30:20 +0000"  >&lt;p&gt;Fixed in master by this commit: &lt;a href=&quot;https://github.com/doctrine/common/commit/486169851ea87b3e14ed45d5bfd7d07b1d41af65&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/commit/486169851ea87b3e14ed45d5bfd7d07b1d41af65&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17666" author="sobstel" created="Wed, 28 Mar 2012 15:14:23 +0000"  >&lt;p&gt;@Guilherme, your fix introduced big performance issue as now for each fetch() call there are always 2 additional calls, which is kind of big overhead. See &lt;a href=&quot;https://github.com/doctrine/common/pull/125&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/125&lt;/a&gt; for details.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>