Bug #77597 [NEW]: mysqli_fetch_field hangs scripts in PHP 7.3.2

From: Date: Mon, 11 Feb 2019 02:30:20 +0000
Subject: Bug #77597 [NEW]: mysqli_fetch_field hangs scripts in PHP 7.3.2
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-219481@lists.php.net to get a copy of this message
From: ryan dot brothers at gmail dot com Operating system: Linux PHP version: 7.3.2 Package: MySQLi related Bug Type: Bug Bug description:mysqli_fetch_field hangs scripts in PHP 7.3.2 Description: ------------ I am running into an issue with PHP 7.3.2 where calling mysqli_fetch_field hangs the script. The same script in PHP 7.2.15 runs successfully. It only occurs when calling store_result() with MYSQLI_STORE_RESULT_COPY_DATA It could be related to bug #68548 that I submitted a few years ago, but something changed in PHP 7.3.2 that causes the call to hang completely now. For the below test script, I'm using SQL: DROP TABLE IF EXISTS a; CREATE TABLE a (b int); INSERT INTO a VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9); Test script: --------------- <?php $mysqli = new mysqli('localhost', 'test', 'test', 'test'); $mysqli->real_query("SELECT * FROM a"); $result = $mysqli->store_result(MYSQLI_STORE_RESULT_COPY_DATA); $field = $result->fetch_field(); Expected result: ---------------- Script runs and instantly exits. Actual result: -------------- In PHP 7.3.2 with MYSQLI_STORE_RESULT_COPY_DATA, the script hangs. In PHP 7.2.15 with MYSQLI_STORE_RESULT_COPY_DATA, the script runs and instantly exits. In PHP 7.3.2 without MYSQLI_STORE_RESULT_COPY_DATA, the script runs and instantly exits. In PHP 7.2.15 without MYSQLI_STORE_RESULT_COPY_DATA, the script runs and instantly exits. -- Edit bug report at https://bugs.php.net/bug.php?id=77597&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77597&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77597&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77597&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77597&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77597&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77597&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77597&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77597&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77597&r=support Expected behavior: https://bugs.php.net/fix.php?id=77597&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77597&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77597&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77597&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77597&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77597&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77597&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77597&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77597&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77597&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77597&r=mysqlcfg

« previous php.bugs (#219481) next »