|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-02-25 12:25 UTC] uw@php.net
-Status: Open
+Status: Not a bug
[2014-02-25 12:25 UTC] uw@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 20 23:00:01 2025 UTC |
Description: ------------ When MySQL connection_id goes larger then 2**31, Mysqli::thread_id just return the wrong value. tested version PHP 5.5.7 on Gentoo Linux x86_64 PHP 5.2.14 on RHEL 5.5 x86_64 Test script: --------------- <?php $mysql = new Mysqli('127.0.0.1', 'batchjob', 'aN2jU3ke', 'anjuke_db'); $_id = $mysql->thread_id; var_dump($_id); $sql = 'select connection_id()'; $res = $mysql->query($sql); var_dump($res->fetch_row()[0]); sleep(30); $mysql->close(); Expected result: ---------------- result of Mysqli::thread_id is the same as result of `select connection_id()` statement. Actual result: -------------- Mysqli::thread_id: 2804557258 select connection_id(): 11394491850