Bug #68350 [NEW]: SQL_DESC_OCTET_LENGTH not supported by ADS ODBC driver
From: frederic dot marchal at wowtechnology dot com
Operating system:
PHP version: 5.4.34
Package: ODBC related
Bug Type: Bug
Bug description:SQL_DESC_OCTET_LENGTH not supported by ADS ODBC driver
Description:
------------
Running odbc_exec() on an ADS ODBC driver version 11.0 or 11.1 for Linux
produces errors such as:
PHP Fatal error: Out of memory (allocated 524288) (tried to allocate
12415340535808218625 bytes) in SybaseClass.php on line 127
The error is produced because libadsodbc.so returns an invalid value
when SQLColAttributes is queried with SQL_DESC_OCTET_LENGTH.
It worked before this commit:
https://github.com/php/php-src/commit/7301994c28d548c5a4eda6a3a4ae0fab6af04636
The patch simply checks the return value from SQLColAttributes and falls
back on the old method to get the column size.
--
Edit bug report at https://bugs.php.net/bug.php?id=68350&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68350&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68350&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68350&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68350&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68350&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68350&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68350&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68350&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68350&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68350&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68350&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68350&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68350&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68350&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68350&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68350&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68350&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68350&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68350&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68350&r=mysqlcfg
Thread (10 messages)
- frederic dot marchal at wowtechnology dot com