#35272 [Opn]: PDO->prepare() (mysql) causes apache 1.3 to crash
| From: | alexdow__ at hotmail dot com | Date: | Fri, 18 Nov 2005 08:07:53 +0000 |
| Subject: | #35272 [Opn]: PDO->prepare() (mysql) causes apache 1.3 to crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-88450@lists.php.net to get a copy of this message | ||
ID: 35272
User updated by: alexdow__ at hotmail dot com
Reported By: alexdow__ at hotmail dot com
Status: Open
Bug Type: PDO related
Operating System: Windows XP SP2
PHP Version: 5.1.0RC5
New Comment:
$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
Previous Comments:
------------------------------------------------------------------------
[2005-11-18 08:17:11] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35272&edit=1