|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-08-25 15:41 UTC] sjoerd@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 05:00:01 2025 UTC |
Description: ------------ As reported in Bug "#37671 MySQLi extension fails to recognize BIT colums" I have the same problem with a Spatial Column. The Column coord is a POINT Field. Reproduce code: --------------- Here is the Table-Definition: CREATE TABLE `user` ( `coord` point default NULL, ) ENGINE=InnoDB The Test Code: // $mysqli is an existing db connection $stmt = $mysqli->prepare("SELECT coord FROM user"); $stmt->execute(); $stmt->bind_result($res); while ($stmt->fetch() === true ) { debug_zval_dump($res); var_dump($res); } $stmt->close(); Expected result: ---------------- The binary representation of the point Actual result: -------------- The Output is the same as the BIT-Field Problem (#37671) Warning: mysqli_stmt::bind_result(): Server returned unknown type 255. Probably your client library is incompatible with the server version you use! in /home/robert/tmp/test.php on line 11 NULL refcount(1) NULL NULL refcount(1) NULL NULL refcount(1) NULL NULL refcount(1) NULL NULL refcount(1) NULL NULL refcount(1) NULL