Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PHP-MySQLi-Database-Class
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
PHP-MySQLi-Database-Class
Commits
47461b15
Commit
47461b15
authored
Aug 14, 2015
by
Alexander Butenko
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #296 from avbdr/master
close() prepared statement when its not needed anymore
parents
00824c1a
08295f04
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
MysqliDb.php
MysqliDb.php
+4
-1
mysqliDbTests.php
tests/mysqliDbTests.php
+2
-1
No files found.
MysqliDb.php
View file @
47461b15
...
@@ -961,8 +961,11 @@ class MysqliDb
...
@@ -961,8 +961,11 @@ class MysqliDb
$x
[
$key
]
=
$val
;
$x
[
$key
]
=
$val
;
}
}
$this
->
count
++
;
$this
->
count
++
;
array_push
(
$results
,
$x
);
array_push
(
$results
,
$x
);
}
}
if
(
$shouldStoreResult
)
$stmt
->
free_result
();
$stmt
->
close
();
// stored procedures sometimes can return more then 1 resultset
// stored procedures sometimes can return more then 1 resultset
if
(
$this
->
mysqli
()
->
more_results
())
if
(
$this
->
mysqli
()
->
more_results
())
$this
->
mysqli
()
->
next_result
();
$this
->
mysqli
()
->
next_result
();
...
...
tests/mysqliDbTests.php
View file @
47461b15
...
@@ -400,5 +400,6 @@ $db->delete("products");
...
@@ -400,5 +400,6 @@ $db->delete("products");
//print_r($db->rawQuery("CALL simpleproc(?)",Array("test")));
//print_r($db->rawQuery("CALL simpleproc(?)",Array("test")));
print_r
(
$db
->
trace
);
print_r
(
$db
->
trace
);
echo
"All done"
;
echo
"All done
\n
"
;
echo
"Memory usage: "
.
memory_get_peak_usage
()
.
"
\n
"
;
?>
?>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment