#49262 [Opn->Fbk]: PDO MySQL doesn't take STRING params

From: Date: Mon, 24 Aug 2009 19:55:43 +0000
Subject: #49262 [Opn->Fbk]: PDO MySQL doesn't take STRING params
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-141450@lists.php.net to get a copy of this message
ID: 49262 Updated by: sjoerd@php.net Reported By: grzegorz at heex dot pl -Status: Open +Status: Feedback Bug Type: PDO related Operating System: Win XP Sp3 PHP Version: 5.3.0 New Comment: Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2009-08-14 20:23:43] grzegorz at heex dot pl Description: ------------ Now, PDO in PHP 5.3 is usless. Reproduce code: --------------- $name = 'same_name'; $pdo= new PDO("mysql:host=localhost;dbname=[base];",'[user]','[pass]'); $sth = $pdo->prepare("SELECT * FROM lng WHERE lng_name=:Name"); $sth->bindValue(':Name',$name,PDO::PARAM_STR); $sth->execute(); die('OK'); Expected result: ---------------- OK Actual result: -------------- PHP CGI / FastCGI crash ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49262&edit=1

« previous php.bugs (#141450) next »