|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35637 Mysqli "Lost connection to MySQL server during query"
Submitted: 2005-12-11 22:49 UTC Modified: 2005-12-13 11:33 UTC
From: realbenzin at inbox dot lv Assigned: georg (profile)
Status: Not a bug Package: MySQLi related
PHP Version: 5CVS-2005-12-12 (snap) OS: Win XP SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
42 + 24 = ?
Subscribe to this entry?

 [2005-12-11 22:49 UTC] realbenzin at inbox dot lv
When mysql stored procedures are called twice in a row I get  mysqli error "Lost connection to MySQL server during query", it does not happen if I do it once or in row with simple sql statements... Mysql is ok, and no free_result is helping...

Reproduce code:
$db = new mysqli('localhost','root','qwerty','VT_SYS');
$u = $db->query("call spRazList(NULL);");
$u = $db->query("call spRazList(NULL);") or die('asdasdad'.$db->error);

Expected result:
That stored procedure would execute twice with no errors.

Actual result:
Mysqli error "Lost connection to MySQL server during query"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-11 23:12 UTC]
What mysql version are you connecting to?
 [2005-12-11 23:22 UTC] realbenzin at inbox dot lv
 [2005-12-11 23:30 UTC]
Duplicate of bug #32882.
 [2005-12-12 07:11 UTC] realbenzin at inbox dot lv
It is not the same!!!!! Because I am calling the sp twice and sp contains only one select not two like in that other "bug". PS i red about that multi query, but that won`t help me...
 [2005-12-12 07:53 UTC]
How about showing how you defined the procedure?
 [2005-12-12 11:51 UTC] realbenzin at inbox dot lv
Ok here is sp:

DROP PROCEDURE IF EXISTS `vt_sys`.`spRazList` $$
CREATE PROCEDURE `spRazList`(r_id int unsigned)
    RAZ_ID = IFNULL(r_id,RAZ_ID);
END $$

 [2005-12-12 13:22 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-12-12 14:09 UTC] realbenzin at inbox dot lv
Nop still the same problem..
 [2005-12-12 23:13 UTC]
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

see also #35333, #35203
 [2005-12-13 11:33 UTC] realbenzin at inbox dot lv
Sorry #35203 was identical...
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Jun 25 17:03:41 2022 UTC