[wp-trac] [WordPress Trac] #36813: wrong written php code: !defined(MDBC_POOL_MODE)

WordPress Trac noreply at wordpress.org
Wed May 11 08:11:22 UTC 2016


#36813: wrong written php code: !defined(MDBC_POOL_MODE)
--------------------------+-----------------------------
 Reporter:  katazina      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Database      |    Version:  4.5.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 in /wp-content/plugins/multidb-cache-hash/db-module.php:1536

 there is: '''!defined(MDBC_POOL_MODE)'''
 it should be given as string: '''!defined('MDBC_POOL_MODE')'''

 {{{
 if (
    (!defined(MDBC_POOL_MODE) || MDBC_POOL_MODE == MDBC_REPLICATE )
    &&
 (preg_match("/^\\s*(create|insert|delete|update|replace|alter)\\b/si",
 $query))
 ) {
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36813>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list