Bug #72416 [NEW]: mysqli_stmt::__construct(): Unknown type 18 sent by the server.
From: webart dot video at gmail dot com
Operating system: Ubuntu 14.04 LTS
PHP version: 7.0.7
Package: MySQLi related
Bug Type: Bug
Bug description:mysqli_stmt::__construct(): Unknown type 18 sent by the server.
Description:
------------
PHP Information:
PHP 7.0.7-4+deb.sury.org~trusty+1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend
Technologies
with Xdebug v2.4.0, Copyright (c) 2002-2016, by Derick Rethans
with blackfire v1.10.6, https://blackfire.io, by Blackfireio
Inc.
Pretty simple, using $mysqli->prepare($query) crashes the server with
the message
"mysqli_stmt::__construct(): Unknown type 18 sent by the server. Please
send a report to the developers"
Test script:
---------------
https://gist.github.com/NoMan2000/0ee7fbf41f69a7ae4cdc555241e2e5f6
Refer bug: https://bugs.php.net/bug.php?id=72041&edit=1
The difference is that user is using PDO, I'm using mysqli, but the
underlying cause seems to be the same.
--
Edit bug report at https://bugs.php.net/bug.php?id=72416&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72416&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72416&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72416&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72416&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72416&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72416&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72416&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72416&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72416&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72416&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72416&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72416&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72416&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72416&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72416&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72416&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72416&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72416&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72416&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72416&r=mysqlcfg
Thread (15 messages)
- webart dot video at gmail dot com
- laruence@php.netBug #72416 [Opn->Ver]: mysqli_stmt::__construct(): Unknown type 18 sent by the server.
- andrey@php.netBug #72416 [Ver->Fbk]: mysqli_stmt::__construct(): Unknown type 18 sent by the server.
- andrey@php.netBug #72416 [Fbk]: mysqli_stmt::__construct(): Unknown type 18 sent by the server.
- webart dot video at gmail dot comBug #72416 [Fbk->Asn]: mysqli_stmt::__construct(): Unknown type 18 sent by the server.
- andrey@php.netBug #72416 [Asn]: mysqli_stmt::__construct(): Unknown type 18 sent by the server.
- andrey@php.netBug #72416 [Asn->Fbk]: mysqli_stmt::__construct(): Unknown type 18 sent by the server.
- webart dot video at gmail dot comBug #72416 [Com]: mysqli_stmt::__construct(): Unknown type 18 sent by the server.
- php-bugs at lists dot php dot netBug #72416 [Fbk->NoF]: mysqli_stmt::__construct(): Unknown type 18 sent by the server.
- requinix@php.netBug #72416 [NoF->Opn]: mysqli_stmt::__construct(): Unknown type 18 sent by the server.
- andrey@php.netBug #72416 [Asn]: mysqli_stmt::__construct(): Unknown type 18 sent by the server.
- andrey@php.netBug #72416 [Asn]: mysqli_stmt::__construct(): Unknown type 18 sent by the server.
- andrey@php.netBug #72416 [Asn]: mysqli_stmt::__construct(): Unknown type 18 sent by the server.
- nikic@php.netBug #72416 [Asn->Fbk]: mysqli_stmt::__construct(): Unknown type 18 sent by the server.
- php-bugs at lists dot php dot netBug #72416 [Fbk->NoF]: mysqli_stmt::__construct(): Unknown type 18 sent by the server.