mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed memory allocation bugs. Probably this patch should fix bug #31725.
This commit is contained in:
parent
7e8bd05c89
commit
84392e5e7f
1 changed files with 3 additions and 0 deletions
|
@ -1205,6 +1205,7 @@ PHP_FUNCTION(sqlite_popen)
|
|||
}
|
||||
if (errmsg) {
|
||||
zval_dtor(errmsg);
|
||||
ZVAL_NULL(errmsg);
|
||||
}
|
||||
|
||||
if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) {
|
||||
|
@ -1280,6 +1281,7 @@ PHP_FUNCTION(sqlite_open)
|
|||
}
|
||||
if (errmsg) {
|
||||
zval_dtor(errmsg);
|
||||
ZVAL_NULL(errmsg);
|
||||
}
|
||||
|
||||
if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) {
|
||||
|
@ -1334,6 +1336,7 @@ PHP_FUNCTION(sqlite_factory)
|
|||
}
|
||||
if (errmsg) {
|
||||
zval_dtor(errmsg);
|
||||
ZVAL_NULL(errmsg);
|
||||
}
|
||||
|
||||
if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue