php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76616 PHP max memory limit not respected on pdo_pgsql
Submitted: 2018-07-12 12:01 UTC Modified: -
From: matttah at gmail dot com Assigned:
Status: Open Package: PDO PgSQL
PHP Version: 7.1.19 OS: Ubuntu 16
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: matttah at gmail dot com
New email:
PHP Version: OS:

 

 [2018-07-12 12:01 UTC] matttah at gmail dot com
Description:
------------
If using the PDO driver with the pgsql driver it appears that the ini max memory limits are NOT obeyed while the driver fetches the results.  This allows for a large query (ie select * from table)  to go well above the memory limits that the php.ini specifies.  



Expected result:
----------------
I would expect the PHP.ini memory limits to cause an out of memory limit/kill it if the amount of allocated space on the driver exceeds the configured memory limit.


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Thu Dec 13 08:01:25 2018 UTC