Hi Gavin,
Gavin Vess wrote:
Hi Brad,
I suggest writing an extremely short PHP script that uses PDO directly,
and prepares and retrieves a row of data.
If the problem persists, then I would suspect something might be wrong
with the installation of PHP or related libraries.
Yes I did do that and it worked fine.
Also, I would suggest checking the list of recent and unsolved
PDO-related bugs to see if any match your situation:
http://bugs.php.net/search.php?cmd=display&bug_type[]=PDO+related&status=All&search_for=&php_os=&boolean=1&author_email=&bug_age=0&by=&order_by=id&direction=ASC&phpver=&limit=30&assign=&reorder_by=id
I would also be tempted to try running your application on the ZF
Community Development server to discover whether the problem exists
under Red Hat Enterprise Linux 4 / PHP 5.1.6:
http://framework.zend.com/wiki/display/ZFDEV/Sandbox
I will give both these suggestions a try. Thanks for your help.
Cheers,
Brad
Brad Kowalczyk wrote:
Hi,
I am writing my first ZF based app and wanted to use the Zend_Db PDO
classes. My problem is that apache is exiting with signal 11 when
Zend_Db_Adapter_Pdo_Abstract::prepare() tries to return the result of
$this->_connection->prepare():
Dec 29 16:37:33 localhost kernel: pid 35047 (httpd), uid 65534: exited
on signal 11
If I edit Zend_Db_Adapter_Pdo_Abstract::prepare() (see below) so that
it is not trying to return the return value of
$this->_connection->prepare() apache is fine but this of course breaks
the script.
public function prepare($sql)
{
$this->_connect();
$this->_connection->prepare($sql);
return;
}
I tried assigning the return value of $this->_connection->prepare() to
a variable before returning it but that also killed apache. Seems I
can't try to assign the return value in any way.
Any ideas what the problem is??
I am running freeBSD 5.4-STABLE with apache2.2.3 and php5.2 and latest
ZF from svn.
Cheers,
Brad
--
Brad Kowalczyk
Web Developer
www.ibiscode.com
02 63796642