Ticket #1335 (closed defect: fixed)
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
Note: See
TracTickets for help on using
tickets.