Bug #79277 [ReO->Fbk]: pdo_odbc accessing SAP 16.0 ASE Fatal error: Allowed memory size ...
| From: | cmb@php.net | Date: | Sun, 23 Feb 2020 12:05:34 +0000 |
| Subject: | Bug #79277 [ReO->Fbk]: pdo_odbc accessing SAP 16.0 ASE Fatal error: Allowed memory size ... | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-225675@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79277&edit=1
ID: 79277
Updated by: cmb@php.net
Reported by: khleung at isfactory dot com
Summary: pdo_odbc accessing SAP 16.0 ASE Fatal error: Allowed
memory size ...
-Status: Re-Opened
+Status: Feedback
Type: Bug
Package: PDO ODBC
Operating System: CentOS 7
PHP Version: 7.4.2
Assigned To: cmb
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2020-02-23 12:05:24] cmb@php.net
Thanks for the ODBC trace, and sorry for the late reply!
It seems to me that we are not properly handling the retrieval of
the display size; the MS documentation of SQLColAttribute()[1]
states:
| Please note that some drivers may only write the lower 32-bit or
| 16-bit of a buffer and leave the higher-order bit unchanged.
| Therefore, applications should initialize the value to 0 before
| calling this function.
So can you please try the attached init-displaysize patch?
[1] <https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqlcolattribute-function>
------------------------------------------------------------------------
[2020-02-23 12:04:52] cmb@php.net
The following patch has been added/updated:
Patch Name: init-displaysize
Revision: 1582459492
URL: https://bugs.php.net/patch-display.php?bug=79277&patch=init-displaysize&revision=1582459492
------------------------------------------------------------------------
[2020-02-23 04:33:02] khleung at isfactory dot com
Problem still exits waiting for further recommendations
------------------------------------------------------------------------
[2020-02-23 04:22:08] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
------------------------------------------------------------------------
[2020-02-16 06:19:00] khleung at isfactory dot com
The following patch has been added/updated:
Patch Name: odbc_tracelog_revised
Revision: 1581833940
URL: https://bugs.php.net/patch-display.php?bug=79277&patch=odbc_tracelog_revised&revision=1581833940
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=79277
--
Edit this bug report at https://bugs.php.net/bug.php?id=79277&edit=1