1

I have recently been studying the Zend Framework, but I have ran into a problem.

Apache crashes when I run :

$this->db->fetchAll("SELECT COUNT(DISTINCT userid) AS NumberOfUsers, COUNT(id) AS total FROM notebook")

But,this don't happen if I run

$this->db->fetchAll("SELECT COUNT(DISTINCT userid) AS NumberOfUsers FROM notebook")

or

$this->db->fetchAll("SELECT COUNT(id) AS total FROM notebook")

error log :

---------------------------
apache.exe - Application error
---------------------------
"0x019b250a" Instruction references of "0x00000000" memory。This memory can't for "read"。
To the termination procedure, please click "ok".
Should debug program, please click "cancel".
---------------------------
ok cancel   
---------------------------

I don't know why this happens. Could the problem be the version of PHP I am running. (Currently I am running PHP 5.2.8). Can you help me?

4

1 回答 1

0

这是因为PHP版本或配置。首先,检查版本。Secord,检查'php.ini'的配置,然后重新启动apache。

于 2010-12-03T07:28:56.557 回答