Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-123

Wrong sizeof modifying INI in server.c

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.1.4
    • Affects Version/s: 0.1.3
    • Component/s: None
    • Labels:
      None

      server.c

      CID 49624: Wrong sizeof argument (SIZEOF_MISMATCH) [select issue]
         
      CID 49579 (#1 of 1): Incorrect sizeof expression (BAD_SIZEOF)bad_sizeof: Taking the size of "phongo.debug_log", which is the address of an object, is suspicious.
         
      Did you intend the size of "phongo.debug_log" itself?
       94                        zend_alter_ini_entry_ex(ZEND_STRS((char *)"phongo.debug_log"), Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), PHP_INI_USER, PHP_INI_STAGE_RUNTIME, 0 TSRMLS_CC);
       95                }
      
      

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: