问题
I am using Zend Framework (1.11.11) with Doctrine (1.2.4) and two operating systems (Ubuntu 10.04 and Windows XP) and there is a strange behaviour in my application. I try do do 2 basic things (This is the part of my IndexController):
$this->view->items = Doctrine::getTable('Prelekcje')->findAll(); // 1 line
$this->view->item = Doctrine::getTable('Prelekcje')->find(2); // 2 line
On Windows it works properly and I don't have any troubles. In Linux (Ubuntu) first line works - I get the data from DB and display it in the view. Second line doesn't work - it displays blank site (Firefox) or 324 (net::ERR_EMPTY_RESPONSE) (Chrome).
I tried few things with Doctrine, but it works only when I'm selecting all records from DB. If I add WHERE clause or anything more complicated to this - everything is gone with 324 error.
来源:https://stackoverflow.com/questions/8772586/324-no-response-error-in-ubuntu-10-04-but-works-in-windows