Bug #75013 [Fbk]: Fatal error: Allowed memory size
| From: | cmb@php.net | Date: | Tue, 18 Jan 2022 17:03:13 +0000 |
| Subject: | Bug #75013 [Fbk]: Fatal error: Allowed memory size | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-239106@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75013&edit=1
ID: 75013
Updated by: cmb@php.net
Reported by: ymtene at gmail dot com
Summary: Fatal error: Allowed memory size
Status: Feedback
Type: Bug
Package: ODBC related
Operating System: CentOS Linux 7.2.1511 (Core)
PHP Version: 7.1.7
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
We do no longer actively support PHP-7.4, either, but at the very
least I need an ODBC trace, since I don't have an Informix DB
setup.
Previous Comments:
------------------------------------------------------------------------
[2022-01-18 16:28:57] darwincabaro at gmail dot com
Hello again, i am using xampp, php 7.4
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 2731599200272
bytes) in C:\xampp\htdocs\test.php on line 11
$conn = odbc_connect("Driver={IBM INFORMIX ODBC DRIVER (64-bit)};
Server=nameserver; Database=namedb;","userdb", "pwddb") or
exit('Cannot open with dns.');
if (!$conn) {
exit("Connection Failed: " . $conn);
}
$sql = 'SELECT FIRST 1 * FROM test;';
$rs = odbc_exec($conn, $sql); //Fatal error:
if (!$rs) {
exit("Error in SQL");
}
odbc_result_all($rs);
------------------------------------------------------------------------
[2022-01-18 15:50:21] cmb@php.net
> PHP 7.3
We do no longer support PHP 7.3. Does it also happen with any of
the actively supported PHP versions[1]? If so, please provide an
ODBC trace of the given script.
[1] <https://www.php.net/supported-versions.php>
------------------------------------------------------------------------
[2022-01-18 15:37:57] darwincabaro at gmail dot com
Hi! i have same problem
ODBC 64 BITS
PHP 7.3
the error occurs when I use prepare and execute
$conn = odbc_connect("Driver={IBM INFORMIX ODBC DRIVER (64-bit)};
Server=SERVERNAME; Database=MYDB;","userdb", "pwdhash");
if (!($conn)) {
echo "<p>Connection to DB via ODBC failed: ";
echo odbc_errormsg ($conn );
echo "</p>\n";
}
$sql = "SELECT FIRST 1 * FROM test";
$rs = odbc_exec($conn,$sql); //problem here
odbc_result_all($rs);
------------------------------------------------------------------------
[2020-12-15 18:22:56] cmb@php.net
Jon, please provide a minimal reproduce script, and an ODBC trace.
Also note that we do no longer support PHP 7.2, and that even PHP
7.3 won't receive bug fixes anymore.
------------------------------------------------------------------------
[2020-12-15 18:02:54] jon at donnasaxby dot com
I am getting this problem with php 7.2 x64 running on Windows 2016
My SQL should return a short string (a UUID), but it crashes after demanding several terabytes of
memory.
Allowed memory size of 2147483648 bytes exhausted (tried to allocate 2074469204224 bytes)
I can test the SQL call directly via an IDE, and it is correct and definitely returns just a UUID.
------------------------------------------------------------------------
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=75013
--
Edit this bug report at https://bugs.php.net/bug.php?id=75013&edit=1