Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!takemy.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <2185476.vkglFbDy2O@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Tue, 29 Oct 2013 13:47:12 +0100 User-Agent: KNode/4.10.5 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <12356089.gSGYd4PIy3@PointedEars.de> MIME-Version: 1.0 Lines: 45 NNTP-Posting-Date: 29 Oct 2013 13:47:18 CET NNTP-Posting-Host: a76b2eb2.newsspool4.arcor-online.net X-Trace: DXC=]UC8_k7kLOX[7Non7UCi8U4IUK Thomas 'PointedEars' Lahn schrieb: >> PHP 5.4.15-1 (cli) (built: May 12 2013 12:17:45) >> mysql Ver 14.14 Distrib 5.5.33, for debian-linux-gnu (i686) using >> readline 6.2 > > PHP 5.4.8 > MySQL 5.1.41 > > Hm. So it could either be a bug that was fixed in a later version or I > somehow messed up my local installation. I presume reading the changelog will tell. >> PDO::ATTR_EMULATE_PREPARES == false should be the effective default for >> PDO_MySQL unless you are using an ancient MySQL version (why?) that does >> not support Prepared Statements. > > My MySQL version does support them. Still, PDO's default seems to be > "on" for the emulation. Not here; the attribute is not even supported: $ php -r ' $pdo = new PDO("mysql:host=localhost", "…", "…"); var_dump($pdo->getAttribute(PDO::ATTR_EMULATE_PREPARES));' PHP Warning: PDO::getAttribute(): SQLSTATE[IM001]: Driver does not support this function: driver does not support that attribute in Command line code on line 3 PHP Stack trace: PHP 1. {main}() Command line code:0 PHP 2. PDO->getAttribute() Command line code:3 bool(false) PointedEars -- realism: HTML 4.01 Strict evangelism: XHTML 1.0 Strict madness: XHTML 1.1 as application/xhtml+xml -- Bjoern Hoehrmann