Bug #73370 [NEW]: falsely exits with "Out of Memory" when using USE_ZEND_ALLOC=0

From: Date: Fri, 21 Oct 2016 18:30:00 +0000
Subject: Bug #73370 [NEW]: falsely exits with "Out of Memory" when using USE_ZEND_ALLOC=0
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-204957@lists.php.net to get a copy of this message
From: jim dot hofer at gmail dot com Operating system: CentOS 6 PHP version: 7.0.12 Package: MySQLi related Bug Type: Bug Bug description:falsely exits with "Out of Memory" when using USE_ZEND_ALLOC=0 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 bug report at https://bugs.php.net/bug.php?id=73370&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73370&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73370&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73370&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73370&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73370&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73370&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73370&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73370&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73370&r=support Expected behavior: https://bugs.php.net/fix.php?id=73370&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73370&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73370&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73370&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73370&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73370&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73370&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73370&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73370&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73370&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73370&r=mysqlcfg

« previous php.bugs (#204957) next »