#36053 [Opn->Asn]: Multiple params fail with new version of PHP

From: Date: Tue, 17 Jan 2006 15:22:05 +0000
Subject: #36053 [Opn->Asn]: Multiple params fail with new version of PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-92069@lists.php.net to get a copy of this message
ID: 36053 Updated by: tony2001@php.net Reported By: tzlee at tzlee dot com -Status: Open +Status: Assigned Bug Type: PDO related Operating System: Linux PHP Version: 5.1.2 -Assigned To: +Assigned To: wez New Comment: Assigned to the maintainer. Previous Comments: ------------------------------------------------------------------------ [2006-01-17 16:19:00] tzlee at tzlee dot com Description: ------------ Using a param (e.g. :id) more than once in a prepared statement used to work with my older PHP 5.0.4 (PDO 1.0.2 and PDO_MySQL 1.0.1) but now breaks with PHP 5.1.2 (using default PDO and PDO_MySQL ext included in download) Reproduce code: --------------- $stmt = $db->prepare("SELECT id, name FROM table WHERE id = :id OR parent = :id"); $stmt->assignValue(':id', 1, PDO::PARAM_INT); $stmt->execute(); Expected result: ---------------- Should work Actual result: -------------- Failed with General Error ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36053&edit=1

« previous php.bugs (#92069) next »