mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
- Fixed possible crash when calling SQLiteDatabase::{ArrayQuery, SingleQuery} methods using Reflection
This commit is contained in:
parent
b394a75ad5
commit
16be0343d7
2 changed files with 24 additions and 1 deletions
|
@ -129,7 +129,7 @@ PHP_INI_END()
|
|||
#define RES_FROM_OBJECT(res, object) RES_FROM_OBJECT_RESTORE_ERH(res, object, NULL)
|
||||
|
||||
#define PHP_SQLITE_EMPTY_QUERY \
|
||||
if (!sql_len) { \
|
||||
if (!sql_len || !*sql) { \
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot execute empty query."); \
|
||||
RETURN_FALSE; \
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue