From:             guidi dot luca at gmail dot com
Operating system: Linux 2.6.16.13-4-smp oSuSE10.1
PHP version:      5CVS-2006-11-01 (snap)
PHP Bug Type:     PDO related
Bug description:  prepare crash without any error

Description:
------------
PDO prepare function crash but don't display any error.

i use:
PDO Driver for MySQL, client library version    5.0.18

Reproduce code:
---------------
$pdo = new PDO("mysql:host=localhost;dbname=myDb","myUser","myPass");
$stmt = $pdo->prepare('select username from users where id = ?');
$stmt->execute( array(123) );
$results = $stmt->fetchAll();

Expected result:
----------------
A statement execution

Actual result:
--------------
Fatal error: Call to a member function execute() on a non-object in
/srv/www/htdocs/index.php on line 21

-- 
Edit bug report at http://bugs.php.net/?id=39331&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39331&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39331&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39331&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39331&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39331&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39331&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39331&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39331&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39331&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39331&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39331&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39331&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39331&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39331&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39331&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39331&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39331&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39331&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39331&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39331&r=mysqlcfg

Reply via email to