From:             ned at cop dot ufl dot edu
Operating system: windows
PHP version:      5.4.3
Package:          PDO related
Bug Type:         Bug
Bug description:ms access memo field causes cli abend

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 bug report at https://bugs.php.net/bug.php?id=62215&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=62215&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=62215&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=62215&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=62215&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=62215&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=62215&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=62215&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=62215&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=62215&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=62215&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=62215&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=62215&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=62215&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=62215&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=62215&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=62215&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=62215&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=62215&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=62215&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=62215&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=62215&r=mysqlcfg

Reply via email to