Bug #62215 [Opn->Fbk]: ODBC: ms access memo field causes cli abend

From: Date: Mon, 28 Sep 2020 08:51:40 +0000
Subject: Bug #62215 [Opn->Fbk]: ODBC: ms access memo field causes cli abend
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229242@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62215&edit=1

 ID:                 62215
 Updated by:         cmb@php.net
 Reported by:        ned at cop dot ufl dot edu
 Summary:            ODBC: ms access memo field causes cli abend
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            PDO ODBC
 Operating System:   windows
 PHP Version:        5.4.3
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

I cannot reproduce the reported behavior.  If you still experience
this misbehavior with any of the actively supported PHP
versions[1], please provide the Access database for download
somewhere on the Web.

[1] <https://www.php.net/supported-versions.php>


Previous Comments:
------------------------------------------------------------------------
[2012-06-03 14:48:13] ned at cop dot ufl dot edu

Description:
------------
this problem was first noticed with 5.4.1; 5.4.0 works fine.

i am using PDO to read a ms access database with a memo field, at the command line interface. i
created a test database with one table and one field of type memo and one record. if the text in
that field is 255 chars of less, all is well. between 256 and 259 php returns scrambled data. at 260
it gives "zend mm heap corrupted". at 261 CLI blows up.

Test script:
---------------
<?

$dbq = "test.mdb";
$sql = "SELECT * FROM table1";
$pdo = new PDO("odbc:Driver={Microsoft Access Driver (*.mdb)};Dbq=$dbq;");
$result = $pdo->query($sql,PDO::FETCH_ASSOC);
foreach ($result as $row)
   {
   echo $row['COMMENT'] . "\n";
   }

?>


Expected result:
----------------
the script should return whatever chars are in the memo field, up to 65536 max. instead it only
handles 255 chars as if it were a text field.

Actual result:
--------------
between 256 and 259 returns scrambled data. at 260 gives "zend mm heap corrupted". a 261
CLI blows up.


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=62215&edit=1


Thread (3 messages)

« previous php.bugs (#229242) next »