php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50818 SQLSTATE[HY093]: Invalid parameter number: parameter was not defined
Submitted: 2010-01-22 00:36 UTC Modified: 2010-04-23 16:12 UTC
From: saschagros at gmail dot com Assigned:
Status: Not a bug Package: PDO related
PHP Version: 6SVN-2010-01-22 (snap) OS: Linux (Ubuntu)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: saschagros at gmail dot com
New email:
PHP Version: OS:

 

 [2010-01-22 00:36 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-24 13:26 UTC] uw@php.net
There's no PHP 6 any more. What shall happen to those reports: close, bogus, test against 5.3, test against new trunk?
 [2010-04-23 16:12 UTC] felipe@php.net
-Status: Open +Status: Bogus
 [2010-04-23 16:12 UTC] felipe@php.net
.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 04:01:38 2024 UTC