From: bugs at r-o-b-e-r-t dot de Operating system: Debian/Ubuntu/Gentoo PHP version: 5.2.10 PHP Bug Type: MySQLi related Bug description: MySQLi extension fails to recognize POINT (spatial) colums
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 -- Edit bug report at http://bugs.php.net/?id=49359&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49359&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49359&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49359&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49359&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49359&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49359&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49359&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49359&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49359&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49359&r=support Expected behavior: http://bugs.php.net/fix.php?id=49359&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49359&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49359&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49359&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49359&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49359&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49359&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49359&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49359&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49359&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49359&r=mysqlcfg