Ticket #1335 (closed defect: fixed)

Opened 11 months ago

Last modified 10 months ago

Unspecified from() argument causes Apache to crash

Reported by: Dan Owned by: jwage
Priority: minor Milestone:
Component: Attributes Version: 1.0.0
Severity: Keywords:
Cc: Has Test: no
Status: Pending Core Response Has Patch: no

Description

I'm using WAMP and using something similar to the following code:

$pager_layout = new Pager(

new Doctrine_Pager(

Doctrine_Query::create()

->from($this->table) ->orderBy("$sortkey $sortorder"),

$currentPage, $resultsPerPage

), new Doctrine_Pager_Range_Sliding(array(

'chunk' => 5

)), 'url'

);

I had an error where I put $table instead of $this->table for from() and it caused Apache to crash. I'd recommend possibly something to catch if the argument is null/blank and throw an exception.. it's hard to test when Apache continually fails :)

Change History

Changed 10 months ago by jwage

  • version changed from 0.11 to 1.0
  • milestone changed from Unknown to 1.0.0-RC2

Changed 10 months ago by jwage

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

(In [4862]) fixes #1335 - Throw an exception when Doctrine_Query::execute() is called with no from parts

Changed 10 months ago by anonymous

  • milestone New deleted

Milestone New deleted

Note: See TracTickets for help on using tickets.