From:             tecdoc at ukr dot net
Operating system: Windows 7 32bit
PHP version:      Irrelevant
Package:          MySQLi related
Bug Type:         Bug
Bug description:die() don't terminate the current script if mysqli::query use 
MYSQLI_USE_RESULT

Description:
------------
Tested on PHP version is 5.4.16 and 5.3.13

die() don't terminate the current script when mysqli::query use
MYSQLI_USE_RESULT

---
>From manual page:
http://www.php.net/mysqli.query#refsect1-mysqli.query-seealso
---

Test script:
---------------
$mysqli = new mysqli('localhost', 'root', '', 'db1');
if (!$mysqli->set_charset("utf8"))
    die('Set Charset Error: ' . $mysqli->error);

// tab - it is a table that have more than 3 000 000 rows
$q = "SELECT * FROM tab1";

// open query and try close all
$result = $mysqli->query($q, MYSQLI_USE_RESULT);
$result->free();
$mysqli->close();
die('why don't terminated script?');

// this end of script don't terminate also
$result = $mysqli->query($q, MYSQLI_USE_RESULT);
$result->free();
$thread = $mysqli->thread_id;
$mysqli->kill($thread);
$mysqli->close();
die('why don't terminated script?');



-- 
Edit bug report at https://bugs.php.net/bug.php?id=65411&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=65411&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=65411&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=65411&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=65411&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=65411&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=65411&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=65411&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=65411&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=65411&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=65411&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=65411&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=65411&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=65411&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65411&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=65411&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=65411&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=65411&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65411&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=65411&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=65411&r=mysqlcfg

Reply via email to