From:             saschagros at gmail dot com
Operating system: Linux (Ubuntu)
PHP version:      6SVN-2010-01-22 (snap)
PHP Bug Type:     PDO related
Bug description:  SQLSTATE[HY093]: Invalid parameter number: parameter was not 
defined

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 bug report at http://bugs.php.net/?id=50818&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=50818&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=50818&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=50818&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=50818&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50818&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=50818&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=50818&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=50818&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=50818&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=50818&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=50818&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=50818&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=50818&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=50818&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50818&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50818&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=50818&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=50818&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=50818&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=50818&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=50818&r=mysqlcfg

Reply via email to