Bug #73370 [Opn->Ver]: falsely exits with "Out of Memory" when using USE_ZEND_ALLOC=0
| From: | yohgaki@php.net | Date: | Fri, 21 Oct 2016 20:47:21 +0000 |
| Subject: | Bug #73370 [Opn->Ver]: falsely exits with "Out of Memory" when using USE_ZEND_ALLOC=0 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-204961@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73370&edit=1
ID: 73370
Updated by: yohgaki@php.net
Reported by: jim dot hofer at gmail dot com
Summary: falsely exits with "Out of Memory" when using
USE_ZEND_ALLOC=0
-Status: Open
+Status: Verified
Type: Bug
Package: MySQLi related
-Operating System: CentOS 6
+Operating System: Irrelevant
-PHP Version: 7.0.12
+PHP Version: Irrelevant
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2016-10-21 18:29:59] jim dot hofer at gmail dot com
Description:
------------
I'm using USE_ZEND_ALLOC=0 for some cli scripts due this bug https://bugs.php.net/bug.php?id=72736
When using USE_ZEND_ALLOC=0 and querying mysql with buffered queries on and the select query returns
an empty result set the script exits with the message "Out of Memory"
Setting the query to use unbuffered results in expected behavior.
Also, not setting USE_ZEND_ALLOC=0 and querying unbuffered returns results in expected behavior
This bug does not affect 7.0.11
Test script:
---------------
<?php
$mysqli = new mysqli("localhost", "root");
$result = $mysqli->query("SELECT * FROM mysql.user WHERE User = 'test'",
MYSQLI_USE_RESULT)->fetch_all();
var_dump($result);
$result = $mysqli->query("SELECT * FROM mysql.user WHERE User =
'test'")->fetch_all();
var_dump($result);
Expected result:
----------------
array(0) {
}
array(0) {
}
Actual result:
--------------
array(0) {
}
Out of memory
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73370&edit=1