php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35272 PDO->prepare() (mysql) causes apache 1.3 to crash
Submitted: 2005-11-18 08:17 UTC Modified: 2006-05-07 15:12 UTC
From: alexdow__ at hotmail dot com Assigned:
Status: Closed Package: PDO related
PHP Version: 5.1.0RC5 OS: Windows XP SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
40 + 18 = ?
Subscribe to this entry?

 
 [2005-11-18 08:17 UTC] alexdow__ at hotmail dot com
Description:
------------
Preparing a query on MySQL 5.0 using PDO results in Apache crashing.

Reproduce code:
---------------
$pdo = new PDO('mysql:host=localhost;dbname=somedb','user','pass',array(PDO::ATTR_PERSISTENT => true));				
		
$statement = $pdo->prepare($argQuery);

Expected result:
----------------
I expect $statement to be a proper PDOStatement object.

Actual result:
--------------
Actual result is Apache crashing. I'm not sure how to generate backtraces in windows other than debugging through VS.NET, if you want that.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-18 09:07 UTC] alexdow__ at hotmail dot com
$query = "INSERT INTO users (username,email,country,city,password,creation_date,status)
                      VALUES (:username,:email,:country,:city,:password,NOW(),1)";

here is a query I use
 [2005-11-18 09:35 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2005-11-26 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2006-05-07 15:12 UTC] wez@php.net
Upgrade to latest release.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 03:01:27 2024 UTC