#49360 [NEW]: MySQLi extension fails to recognize POINT (spatial) colums
| From: | bugs at r-o-b-e-r-t dot de | Date: | Tue, 25 Aug 2009 14:59:03 +0000 |
| Subject: | #49360 [NEW]: MySQLi extension fails to recognize POINT (spatial) colums | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-141497@lists.php.net to get a copy of this message | ||
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=49360&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49360&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49360&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49360&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=49360&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49360&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=49360&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=49360&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=49360&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=49360&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=49360&r=support
Expected behavior: http://bugs.php.net/fix.php?id=49360&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=49360&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=49360&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=49360&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49360&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49360&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=49360&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=49360&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=49360&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=49360&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=49360&r=mysqlcfg