out of memory with sage odbc driver (ok in 5.6.5)
| Bug #69381 | out of memory with sage odbc driver (ok in 5.6.5) | ||||
|---|---|---|---|---|---|
| Submitted: | 2015-04-05 20:13 UTC | Modified: | 2015-04-27 14:45 UTC | ||
| From: | JLH at Dataplan dot co dot uk | Assigned: | ab (profile) | ||
| Status: | Closed | Package: | ODBC related | ||
| PHP Version: | 5.6.7 | OS: | Windows 2012r2 nts | ||
| Private report: | No | CVE-ID: | None | ||
[2015-04-05 20:13 UTC] JLH at Dataplan dot co dot uk
Description:
------------
On upgrading from php 5.6.5 nts (server 2012r2 64bit) to 5.6.7, our odbc_exec is no longer working.
we are using the sage line 50 odbc driver to extract data from the accounts software we use.
I suspect this is related to bug id 68964
Test script:
---------------
c:\inetpub\php\php.exe c:\inetpub\wwwroot\sage.php
sage.php contains:
<?php
$odbcconn=odbc_connect("SageLine50v20","user","pass");
$query=odbc_exec($odbcconn,"SELECT ACCOUNT_REF, NAME FROM sales_ledger");
?>
Expected result:
----------------
in the 5.6.5 version, the code will display no errors
Actual result:
--------------
in the 5.6.7 version we get:
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 1956365745 bytes) in C:\inetpub\wwwroot\sage.php on line 3
So i changed the memory limit from 512M to 3G to see what would happen:
PHP Fatal error: Out of memory (allocated 262144) (tried to allocate 1956365745
bytes) in C:\inetpub\wwwroot\sage.php on line 3
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2015-04-06 15:25 UTC] ab@php.net
-Status: Open +Status: Feedback
[2015-04-06 15:25 UTC] ab@php.net
[2015-04-13 09:51 UTC] JLH at Dataplan dot co dot uk
[2015-04-14 06:30 UTC] ab@php.net
[2015-04-14 17:15 UTC] JLH at Dataplan dot co dot uk
[2015-04-15 07:29 UTC] ab@php.net
[2015-04-23 17:36 UTC] JLH at Dataplan dot co dot uk
[2015-04-26 04:22 UTC] php-bugs at lists dot php dot net
[2015-04-26 18:25 UTC] cmb@php.net
-Status: Open +Status: Analyzed -Assigned To: +Assigned To: ab
[2015-04-27 14:43 UTC] ab@php.net
[2015-04-27 14:45 UTC] ab@php.net
[2015-04-28 13:04 UTC] ab@php.net
-Status: Analyzed +Status: Closed