Bug #68964 [Csd]: Allowed memory size exhausted with odbc_exec
| From: | ab@php.net | Date: | Mon, 16 Mar 2015 07:22:39 +0000 |
| Subject: | Bug #68964 [Csd]: Allowed memory size exhausted with odbc_exec | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-191411@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68964&edit=1
ID: 68964
Updated by: ab@php.net
Reported by: giodev at panozzo dot it
Summary: Allowed memory size exhausted with odbc_exec
Status: Closed
Type: Bug
Package: ODBC related
Operating System: Windows Server 2012
PHP Version: 5.6.5
Assigned To: ab
Block user comment: N
Private report: N
New Comment:
Hey @xaionaro,
please check a snapshot towards the commit I've asked. Or in the meantime, this fix can be
noticeable in the latest RCs.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2015-03-16 05:44:52] xaionaro at gmail dot com
The bug is still there in PHP-5.6.6
[16-Mar-2015 08:40:10] WARNING: [pool www] child 63955 said into stderr: "NOTICE: PHP message:
PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 4294967293
bytes) in /var/www/stpdn.ut.mephi.ru/root/main.php on line 950"
# php --version
PHP 5.6.6-2 (cli) (built: Feb 24 2015 10:07:30)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies
------------------------------------------------------------------------
[2015-02-06 18:10:54] ab@php.net
@giodev, please check any snapshot starting with rev a41aa46.
Thanks.
------------------------------------------------------------------------
[2015-02-06 18:06:18] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=a41aa46759d20e23af92df00b917ca66c6102412
Log: Fixed bug #68964 Allowed memory size exhausted with odbc_exec
------------------------------------------------------------------------
[2015-02-03 16:26:41] giodev at panozzo dot it
Update: nxtext and nvrchar(max) fields causes the problem, even if they are empty. If you change the
fields to nvarchar(4000), all seems to be working.
This bug is similar to bug #67437, but #67437 is linux related.
------------------------------------------------------------------------
[2015-01-31 18:52:04] giodev at panozzo dot it
Two more notes:
- This happens when querying both MSSQL server Express 2008 or 2012
- Workaround: change ntext field to nvarchar(max) (as explained here: https://msdn.microsoft.com/en-us/library/ms186939.aspx)
------------------------------------------------------------------------
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=68964
--
Edit this bug report at https://bugs.php.net/bug.php?id=68964&edit=1