Author |
|
skt
Joined: 17 Dec 2008 Posts: 4
|
Posted: Wed 17 Dec '08 4:58 Post subject: MySQL 5.1.30 Apache 2.2 PHP 5.2.6 Using Zend crashes Apache |
|
|
Hello Folks,
I am using XP Pro and am starting out using PHP with Zend framework and am running into basic problem with db access. I can bring up PHPInfo without problems.
I have the following code in Index Controller.
class IndexController extends Zend_Controller_Action
{
public function indexAction()
{
$this->view->title = "Welcome to MyPadosi!";
$users = new Users();
$this->view->users = $users->fetchAll();
}
function init()
{
$this->view->baseUrl = $this->_request->getBaseUrl();
Zend_Loader::loadClass('Users');
}
}
and a simple Users model
<?php
class Users extends Zend_Db_Table
{
protected $_name = 'users';
}
?>
Table in MySql db is "users" and in the view file I try to loop over the users and display them.
When I go to my http://localhost in the browser my Apache crashes with the following message in error.log.
[notice] Parent: child process exited with status 3221225477 -- Restarting.
I have tried the libmysql.dll that came with MySQL 5.1.30 and pdo_php_mysql.dll extension posted in another thread at www.apachelounge.com/download/ the file php_mysql.dll-for-MySQL-5.1.30.zip. But Apache still crashes.
Appreciate any thoughts/suggestions on what the problem here might be or suggestoins on how to debug it.
Thanks,
skt. |
|
Back to top |
|
skt
Joined: 17 Dec 2008 Posts: 4
|
Posted: Wed 17 Dec '08 5:19 Post subject: |
|
|
To be a little more specific, my Apache is 2.2.10. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 17 Dec '08 16:04 Post subject: |
|
|
A Status like 3221225477 I've seen when a PHP extension crashes. Disable all PHP extensions in php.ini you don't need. For me it worked than.
if you still have a question please ask again! |
|
Back to top |
|
skt
Joined: 17 Dec 2008 Posts: 4
|
Posted: Thu 18 Dec '08 4:38 Post subject: |
|
|
I have only two extensions turned on for mysql -
extension=php_pdo.dll
extension=php_pdo_mysql.dll
When I comment out either of them it doesn't crash but it doesn't do anything either. |
|
Back to top |
|
skt
Joined: 17 Dec 2008 Posts: 4
|
Posted: Fri 19 Dec '08 1:05 Post subject: |
|
|
I have narrowed the crash down to the fetchAll() call
$this->view->users = $users->fetchAll();
I have been searching around for crash on fetchAll() - there is lot of noise but I don't see any concrete reason or answer to tihs.
Any thoughts? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 19 Dec '08 11:31 Post subject: |
|
|
What does tthos fetchAll funktion do? Any source code?
it would be great if you could create a running source code as short as possible that causes the crash. So that I can reproduce it. |
|
Back to top |
|
beyond
Joined: 17 Feb 2009 Posts: 2
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 18 Feb '09 11:30 Post subject: |
|
|
What is the solution? On your link there is only the the bug. |
|
Back to top |
|
beyond
Joined: 17 Feb 2009 Posts: 2
|
Posted: Wed 18 Feb '09 20:18 Post subject: |
|
|
James Blond wrote: | What is the solution? On your link there is only the the bug. |
Check again if you want. |
|
Back to top |
|