Bug #50818 [Opn]: SQLSTATE[HY093]: Invalid parameter number: parameter was not defined
| From: | uw@php.net | Date: | Wed, 24 Mar 2010 12:26:37 +0000 |
| Subject: | Bug #50818 [Opn]: SQLSTATE[HY093]: Invalid parameter number: parameter was not defined | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-148927@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=50818&edit=1
ID: 50818
Updated by: uw@php.net
Reported by: saschagros at gmail dot com
Summary: SQLSTATE[HY093]: Invalid parameter number: parameter
was not defined
Status: Open
Type: Bug
Package: PDO related
Operating System: Linux (Ubuntu)
PHP Version: 6SVN-2010-01-22 (snap)
New Comment:
There's no PHP 6 any more. What shall happen to those reports: close,
bogus, test against 5.3, test against new trunk?
Previous Comments:
------------------------------------------------------------------------
[2010-01-22 00:36:51] saschagros at gmail dot com
Description:
------------
Once again trying to get Drupal to run with PHP 6.
I'm getting the following error on the first query that is run..
Fatal error: Uncaught exception 'PDOException' with message
'SQLSTATE[HY093]: Invalid parameter number: parameter was not defined'
in .../drupal7/includes/database/database.inc:1941
That line looks like this:
<?php
$return = parent::execute($args);
?>
Note: parent is PDOStatement.
The executed query:
unicode(87) "SELECT data, created, headers, expire, serialized FROM
cache_bootstrap WHERE cid = :cid"
$args contains:
array(1) {
[u":cid"]=>
unicode(9) "variables"
}
I would suspect that it does have something to do with unicode.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=50818&edit=1