mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
use DBUG_ON flag for checking debug
# Some libmysql builds don't define DBUG_OFF and non-debug builds are more frequent
This commit is contained in:
parent
6e0dfc1851
commit
153649906c
@ -809,10 +809,10 @@ PHP_MINIT_FUNCTION(mysqli)
|
||||
#ifdef MYSQLI_USE_MYSQLND
|
||||
REGISTER_LONG_CONSTANT("MYSQLI_DEBUG_TRACE_ENABLED", MYSQLND_DBG_ENABLED, CONST_CS | CONST_PERSISTENT);
|
||||
#else
|
||||
#ifndef DBUG_OFF
|
||||
REGISTER_LONG_CONSTANT("MYSQLI_DEBUG_TRACE_ENABLED", 0, CONST_CS | CONST_PERSISTENT);
|
||||
#else
|
||||
#ifdef DBUG_ON
|
||||
REGISTER_LONG_CONSTANT("MYSQLI_DEBUG_TRACE_ENABLED", 1, CONST_CS | CONST_PERSISTENT);
|
||||
#else
|
||||
REGISTER_LONG_CONSTANT("MYSQLI_DEBUG_TRACE_ENABLED", 0, CONST_CS | CONST_PERSISTENT);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user