logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: MySQL 5.1.30 Apache 2.2 PHP 5.2.6 Using Zend crashes Apache
Author
skt



Joined: 17 Dec 2008
Posts: 4

PostPosted: Wed 17 Dec '08 4:58    Post subject: MySQL 5.1.30 Apache 2.2 PHP 5.2.6 Using Zend crashes Apache Reply with quote

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

PostPosted: Wed 17 Dec '08 5:19    Post subject: Reply with quote

To be a little more specific, my Apache is 2.2.10.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Wed 17 Dec '08 16:04    Post subject: Reply with quote

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

PostPosted: Thu 18 Dec '08 4:38    Post subject: Reply with quote

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

PostPosted: Fri 19 Dec '08 1:05    Post subject: Reply with quote

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: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 19 Dec '08 11:31    Post subject: Reply with quote

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

PostPosted: Tue 17 Feb '09 23:29    Post subject: Reply with quote

I had the same problem and found the solution. See also www.volkomenjuist.nl/blog/2009/02/17/apache-xamp-170-crashes-in-combination-with-zend/
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Wed 18 Feb '09 11:30    Post subject: Reply with quote

What is the solution? On your link there is only the the bug.
Back to top
beyond



Joined: 17 Feb 2009
Posts: 2

PostPosted: Wed 18 Feb '09 20:18    Post subject: Reply with quote

James Blond wrote:
What is the solution? On your link there is only the the bug.


Check again if you want.
Back to top


Reply to topic   Topic: MySQL 5.1.30 Apache 2.2 PHP 5.2.6 Using Zend crashes Apache View previous topic :: View next topic
Post new topic   Forum Index -> Other Software