|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-05-02 20:29 UTC] top dot bagger at bk dot ru
[2008-05-27 00:14 UTC] jani@php.net
[2008-05-27 07:02 UTC] top dot bagger at bk dot ru
[2008-07-14 17:30 UTC] uw@php.net
[2008-07-23 14:11 UTC] andrey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 08:00:01 2025 UTC |
Description: ------------ "prepare" method call returns false if mysql stored procedure was prepared before Reproduce code: --------------- $my = new mysqli("localhost","test","test","test_db"); $stmta = $my->prepare("CALL sp_auth_user(?,?)"); $user = 'user'; $pass = 'pass'; $stmta->bind_param("ss", $user,$pass); $stmta->execute(); $stmta->bind_result($state); $stmta->fetch(); printf("State of user: %s\n", $state); $stmta->close(); $stmtb = $my->prepare("SELECT userId FROM appUsers WHERE login = ?"); if ($stmtb) echo "prepare succeeded"; else { echo "prepare failed<br />"; echo "errno: ", $my->errno, " - error: ", $my->error, "<br />"; } Expected result: ---------------- $stmtb contains mysqli_stmt object Actual result: -------------- $stmtb is false