mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-08 01:37:30 +00:00
Fixed memory allocation bugs. Probably this patch should fix bug #31725.
This commit is contained in:
1 parent
7de57d1a0f
commit
bfbbf5cedc
1 file changed
+3
@@ -1173,6 +1173,7 @@ PHP_FUNCTION(sqlite_popen)
|
||||
}
|
||||
if (errmsg) {
|
||||
zval_dtor(errmsg);
|
||||
ZVAL_NULL(errmsg);
|
||||
}
|
||||
|
||||
if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) {
|
||||
@@ -1248,6 +1249,7 @@ PHP_FUNCTION(sqlite_open)
|
||||
}
|
||||
if (errmsg) {
|
||||
zval_dtor(errmsg);
|
||||
ZVAL_NULL(errmsg);
|
||||
}
|
||||
|
||||
if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) {
|
||||
@@ -1302,6 +1304,7 @@ PHP_FUNCTION(sqlite_factory)
|
||||
}
|
||||
if (errmsg) {
|
||||
zval_dtor(errmsg);
|
||||
ZVAL_NULL(errmsg);
|
||||
}
|
||||
|
||||
if (strncmp(filename, ":memory:", sizeof(":memory:") - 1)) {
|
||||
|
||||
Reference in new issue
Block a user