#1530: REGRESSION: PHP notices
------------------------------+---------------------------------------------
  Reporter:  colnector        |       Owner:  romanb               
      Type:  defect           |      Status:  new                  
  Priority:  critical         |   Milestone:                       
 Component:  Query/Hydration  |     Version:  1.0.2                
Resolution:                   |    Keywords:                       
  Has_test:  0                |    Mystatus:  Pending Core Response
 Has_patch:  0                |  
------------------------------+---------------------------------------------
Old description:

> REGRESSION: I thought it has gone away with latest update but I was
> wrong. Here are notes I'm now getting since I've updated from svn about 2
> days ago.
>
> {{{
> Notice: Undefined index: p in
> C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
> on line 730
>
> Notice: Undefined index: p in
> C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
> on line 730
>
> Notice: Undefined index: p in
> C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
> on line 730
>
> Notice: Undefined index: p in
> C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
> on line 730
>
> Notice: Undefined index: i in
> C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
> on line 730
>
> Notice: Undefined index: i in
> C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
> on line 730
>
> Notice: Undefined index: i in
> C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
> on line 730
>
> Notice: Undefined index: i in
> C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
> on line 730
>
> Notice: Undefined index: i in
> C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
> on line 730
>
> Notice: Undefined index: p in
> C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
> on line 730
>
> Notice: Undefined index: i in
> C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
> on line 730
> }}}
>
> Again, these queries worked just fine. Something has changed with the
> implementation of sub-queries which is causing this. Here's a an example
> query:
> {{{
> SELECT z.id AS z__0 FROM myTable z WHERE z.producer_id IN (SELECT p.id AS
> p__id FROM producer p WHERE (p.category_id = ? AND p.country_id = ?))
> }}}

New description:

 REGRESSION: I thought it has gone away with latest update but I was wrong.
 Here are notes I'm now getting since I've updated from svn about 2 days
 ago.

 {{{
 Notice: Undefined index: p in
 C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
 on line 730

 Notice: Undefined index: p in
 C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
 on line 730

 Notice: Undefined index: p in
 C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
 on line 730

 Notice: Undefined index: p in
 C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
 on line 730

 Notice: Undefined index: i in
 C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
 on line 730

 Notice: Undefined index: i in
 C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
 on line 730

 Notice: Undefined index: i in
 C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
 on line 730

 Notice: Undefined index: i in
 C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
 on line 730

 Notice: Undefined index: i in
 C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
 on line 730

 Notice: Undefined index: p in
 C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
 on line 730

 Notice: Undefined index: i in
 C:\proj\plugins\sfDoctrinePlugin\lib\doctrine\Doctrine\Query\Abstract.php
 on line 730
 }}}

 Again, these queries worked just fine. Something has changed with the
 implementation of sub-queries which is causing this. Here's a an example
 query:
 {{{
 SELECT z.id AS z__0 FROM myTable z WHERE z.producer_id IN (SELECT p.id AS
 p__id FROM producer p WHERE (p.category_id = ? AND p.country_id = ?))
 }}}


 I suggest to add this code for all sanity test to ensure notices/warnings
 are properly caught:
 {{{

 function errorHandler($errno, $errstr, $errfile, $errline) {
         throw new Exception($errstr, $errno);
 }
 set_error_handler('errorHandler');

 }}}

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1530#comment:1>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to