php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72041 Unknown type 18 sent by the server
Submitted: 2016-04-17 10:24 UTC Modified: 2017-04-24 19:19 UTC
From: janne dot saukkio at gmail dot com Assigned:
Status: Open Package: PDO MySQL
PHP Version: 5.6.20 OS: Debian 8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
18 - 2 = ?
Subscribe to this entry?

 
 [2016-04-17 10:24 UTC] janne dot saukkio at gmail dot com
Description:
------------
Apache2 error_log:
PHP Warning: PDO::prepare(): Unknown type 18 sent by the server. Please send a report to the developers ... on line 65
PHP Fatal error: Call to a member function execute() on boolean ... on line 66

My PHP version is 5.6.19-0+deb8u1 (Jessie doesn't have an update for PHP)
My MySQL version is 5.7.11

Example SQL code works perfectly on MySQL console and doesn't create an error.

Test script:
---------------
http://pastebin.com/YkKN1HdX

Create a PHP error by adding "?error=1" in the url


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-04-24 19:19 UTC] adambaratz@php.net
-Package: PDO related +Package: PDO MySQL
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Sep 20 18:01:26 2020 UTC