Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: 1.0.1, 1.0.2, 1.6.1
-
Fix Version/s: 1.8.1
-
Component/s: Zend_Db_Select, Zend_Db_Table
-
Labels:None
-
Fix Version Priority:Nice to Have
Description
This is a simple function I use to get a parseable string out of for an AJAX call on the site. I put the die() at the end so that the header/footer are not sent to the client.
function getStatusAction() {
$id = $this->_request->getParam("id");
if (!$id)
die(", No ID sent\n");
$db = Zend_Registry::get('db');
$stmt = $db->query("SELECT ds., st.id AS st_id, st. FROM deliverables_status AS ds INNER JOIN status_types AS st ON ds.status_type=st.id WHERE ds.deliverable={$id}");
$res = $stmt->fetchAll();
// This is where i'd loop through the results to print out the list, but it never gets here. It crashes on the $db->query() line.
print ", YAY\n";
die();
}
This crashes Apache running :
httpd-2.0.59-1.el4s1.8.el4.centos
mysql-5.0.48-1.el4.centos
php-cli-5.1.6-3.el4s1.8
php-mysql-5.1.6-3.el4s1.8
php-pear-1.4.11-1.el4s1.1
php-5.1.6-3.el4s1.8
php-gd-5.1.6-3.el4s1.8
php-soap-5.1.6-3.el4s1.8
php-common-5.1.6-3.el4s1.8
php-pdo-5.1.6-3.el4s1.8
php-mbstring-5.1.6-3.el4s1.8
php-xmlrpc-5.1.6-3.el4s1.8
OS Version: CentOS release 4.5 (Final)
Could you post the error from your server log?