Ticket #157 (closed defect: fixed)

Opened 9 months ago

Last modified 9 months ago

Fatal error in PDOSQLExecTask when using filesets

Reported by: hans Assigned to: hans
Priority: critical Milestone: 2.3.0
Component: phing-tasks-ext Version: 2.3.0RC1
Keywords: Cc:

Description

This is in phing-2.3.0RC1

When execing with fileset like so:

<pdo url="mysql:host=${db.server};dbname=${db}"

userid="${db.username}" password="${db.password}"> <fileset dir="${dir}">

<include name="*.${ext}"/>

</fileset>

</pdo>

I get this error:

Fatal error: Call to a member function getDirectoryScanner() on a non-object in /opt/phing-2.3.0RC1/classes/phing/tasks/ext/PDOSQLExecTask.php on line 279

Upon closer inspection, it seems that the $size loop variable declared on line 254 is getting reinitialized on line 285. Renaming the second variable to size2 fixes the problem.

Attachments

Change History

10/17/07 00:58:36 changed by hans

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [248] (2.3) and [249] (trunk)


Add/Change #157 (Fatal error in PDOSQLExecTask when using filesets)




Action