Bug #68572 [NEW]: [PHP Modules] apc bcmath bz2 calendar Core ctype curl date dba dom ereg exif fi

From: Date: Tue, 09 Dec 2014 06:50:41 +0000
Subject: Bug #68572 [NEW]: [PHP Modules] apc bcmath bz2 calendar Core ctype curl date dba dom ereg exif fi
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188970@lists.php.net to get a copy of this message
From:             me at free6k dot ru
Operating system: Debian 7.7 Wheezy
PHP version:      5.4.35
Package:          PDO PgSQL
Bug Type:         Bug
Bug description:[PHP Modules] apc bcmath bz2 calendar Core ctype curl date dba dom ereg exif fi

Description:
------------
I have the following problem with binding params in pdo for sql requests

Test script:
---------------
$timezone = 'Asia/Jakarta';
$statement = $pdo->prepare('SET TIME ZONE :timezone');
$statement->execute([':timezone'=>$timezone]);

Actual result:
--------------
PDOException
SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "$1"
LINE 1: SET TIME ZONE $1

-- 
Edit bug report at https://bugs.php.net/bug.php?id=68572&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=68572&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=68572&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=68572&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=68572&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=68572&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=68572&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=68572&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=68572&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=68572&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=68572&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=68572&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=68572&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=68572&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68572&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=68572&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=68572&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=68572&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68572&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=68572&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=68572&r=mysqlcfg



Thread (2 messages)

« previous php.bugs (#188970) next »