Ticket #2328 (closed defect: duplicate)

Opened 7 months ago

Last modified 7 months ago

Doctrine sandbox import.php scope error

Reported by: gavD Owned by: jwage
Priority: minor Milestone:
Component: Sandbox Version: 1.1.2
Severity: abc Keywords: sandbox, php
Cc: Has Test: no
Status: Pending Core Response Has Patch: no

Description

Hi,

I might be way off base here, this is my first experience with Doctrine so please be nice if I've misunderstood!

In the sandbox lib/Doctrine/import.php method importSchema, the line "$classes = array();" is set inside a foreach loop, but the method attempts to return it at the end. Looks to me like it should be defined before the forEach loop. I think this may have been introduced alongside multiple connections.

Error message:

Notice: Undefined variable: classes in /opt/BoxUK/Doctrine-1.1.2-Sandbox/lib/Doctrine/Import.php on line 439

I attach a complete output. I am getting this problem at the "running tests" phase of the sandbox walkthrough: http://www.doctrine-project.org/documentation/cookbook/1_1/en/my-first-project

I am using PHP 5.3

Attachments

completeOutput.txt Download (5.0 KB) - added by gavD 7 months ago.
Complete output of the failing sandbox index.php

Change History

Changed 7 months ago by gavD

Complete output of the failing sandbox index.php

Changed 7 months ago by gavD

  • status changed from new to closed
  • resolution set to duplicate

Seems someone has already submitted a patch for this:  http://trac.doctrine-project.org/ticket/2284 so I guess we'll have this in 1.1.3? Was also submitted as  http://trac.doctrine-project.org/ticket/2284

Changed 7 months ago by jwage

  • milestone New deleted

Indeed this is already fixed in SVN too.

Note: See TracTickets for help on using tickets.