Bug #50818 [Opn]: SQLSTATE[HY093]: Invalid parameter number: parameter was not defined

[email protected]
Newsgroups php.bugs
Message-ID <[email protected]>
Edit report at http://bugs.php.net/bug.php?id=50818&edit=1

 ID:               50818
 Updated by:       [email protected]
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.