|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-05-10 06:13 UTC] chris dot kings-lynne at navitas dot com
[2013-05-31 21:38 UTC] ssufficool@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: ssufficool
[2013-06-01 05:58 UTC] ssufficool@php.net
[2013-06-01 05:59 UTC] ssufficool@php.net
-Status: Assigned
+Status: Closed
[2013-06-01 05:59 UTC] ssufficool@php.net
[2013-06-04 00:25 UTC] chris dot kings-lynne at navitas dot com
[2013-06-04 03:40 UTC] ssufficool@php.net
[2013-06-04 05:03 UTC] stas@php.net
[2013-11-17 09:31 UTC] laruence@php.net
[2013-11-17 09:31 UTC] laruence@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 13:00:02 2025 UTC |
Description: ------------ If you attempt to use getColumnMeta() on a prepared but not yet executed PDOStatement, using the dblib driver, you get a segmentation fault. FreeTDS library version 0.82-7 Test script: --------------- <?php $pdo = new PDO('dblib:host=SERVICE;dbname=xxx','xxx','xxx'); $result = $pdo->prepare('SELECT * FROM users'); $meta = $result->getColumnMeta(1); Expected result: ---------------- I would expect to get the column metadata just as it as after execution, as in this code sample: <?php $pdo = new PDO('dblib:host=SERVICE;dbname=xxx','xxx','xxx'); $result = $pdo->prepare('SELECT * FROM users'); $result->execute(); $meta = $result->getColumnMeta(1); var_dump($meta); Gives: array(8) { 'max_length' => int(8) 'precision' => int(0) 'scale' => int(0) 'column_source' => string(4) "mode" 'native_type' => string(7) "unknown" 'name' => string(4) "mode" 'len' => int(8) 'pdo_type' => int(2) } Actual result: -------------- Segmentation fault Don't have debugging symbols or gdb on the machine sorry :(