2026-05-04 07:33 ftp://ftp.de.debian.org/debian/pool/main/p/php-pq/php-pq_2.2.3.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 33 33 elapsed-time: 0.4 0.3 head-timing-info: old-timing-info: head results: pq-2.2.3/src/php_pq_callback.c:120:31: style: Condition 'php_pq_callback_is_locked(old)' is always false [knownConditionTrueFalse] pq-2.2.3/src/php_pq_callback.c:120:31: note: Calling function 'php_pq_callback_is_locked' returns 0 pq-2.2.3/src/php_pq_callback.c:120:31: note: Condition 'php_pq_callback_is_locked(old)' is always false pq-2.2.3/src/php_pq_callback.c:88:56: style: Parameter 'cb' can be declared as pointer to const [constParameterPointer] pq-2.2.3/src/php_pq_callback.c:137:66: style: Parameter 'cb' can be declared as pointer to const [constParameterPointer] pq-2.2.3/src/php_pq_callback.c:149:83: style: Parameter 'new' can be declared as pointer to const [constParameterPointer] pq-2.2.3/src/php_pq_misc.c:257:2: error: There is an unknown macro here somewhere. Configuration is required. If ZEND_ARG_INFO is a macro then please configure it. [unknownMacro] pq-2.2.3/src/php_pq_module.c:119:2: error: There is an unknown macro here somewhere. Configuration is required. If ZEND_MOD_REQUIRED is a macro then please configure it. [unknownMacro] pq-2.2.3/src/php_pq_object.c:117:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZEND_HASH_APPLY_KEEP [valueFlowBailoutIncompleteVar] pq-2.2.3/src/php_pq_object.c:216:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable E_RECOVERABLE_ERROR [valueFlowBailoutIncompleteVar] pq-2.2.3/src/php_pq_object.c:247:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUCCESS [valueFlowBailoutIncompleteVar] pq-2.2.3/src/php_pq_object.c:268:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable E_RECOVERABLE_ERROR [valueFlowBailoutIncompleteVar] pq-2.2.3/src/php_pq_object.c:301:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUCCESS [valueFlowBailoutIncompleteVar] pq-2.2.3/src/php_pq_object.c:37:38: style:inconclusive: Function 'php_pq_object_dtor' argument 1 names different: declaration 'obj' definition 'o'. [funcArgNamesDifferent] pq-2.2.3/src/php_pq_object.h:46:45: note: Function 'php_pq_object_dtor' argument 1 names different: declaration 'obj' definition 'o'. pq-2.2.3/src/php_pq_object.c:37:38: note: Function 'php_pq_object_dtor' argument 1 names different: declaration 'obj' definition 'o'. pq-2.2.3/src/php_pq_object.c:314:45: style: Parameter 'object' can be declared as pointer to const [constParameterPointer] pq-2.2.3/src/php_pq_object.c:314:59: style: Parameter 'member' can be declared as pointer to const [constParameterPointer] pq-2.2.3/src/php_pq_params.c:35:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zval_add_ref [valueFlowBailoutIncompleteVar] pq-2.2.3/src/php_pq_params.c:45:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZEND_HASH_APPLY_KEEP [valueFlowBailoutIncompleteVar] pq-2.2.3/src/php_pq_params.c:199:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZEND_HASH_APPLY_KEEP [valueFlowBailoutIncompleteVar] pq-2.2.3/src/php_pq_params.c:311:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZEND_HASH_APPLY_KEEP [valueFlowBailoutIncompleteVar] pq-2.2.3/src/php_pqcancel.c:74:37: error: syntax error [syntaxError] pq-2.2.3/src/php_pqconn.c:1906:36: error: syntax error [syntaxError] pq-2.2.3/src/php_pqconn_event.c:42:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZEND_HASH_APPLY_KEEP [valueFlowBailoutIncompleteVar] pq-2.2.3/src/php_pqconn_event.c:76:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZEND_HASH_APPLY_KEEP [valueFlowBailoutIncompleteVar] pq-2.2.3/src/php_pqconn_event.c:86:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZEND_HASH_APPLY_KEEP [valueFlowBailoutIncompleteVar] pq-2.2.3/src/php_pqconn_event.c:67:75: style: Parameter 'key' can be declared as pointer to const. However it seems that 'apply_relisten' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pq-2.2.3/src/php_pqconn_event.c:97:65: note: You might need to cast the function pointer here pq-2.2.3/src/php_pqconn_event.c:67:75: note: Parameter 'key' can be declared as pointer to const pq-2.2.3/src/php_pqconn_event.c:209:37: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] pq-2.2.3/src/php_pqcopy.c:99:37: error: syntax error [syntaxError] pq-2.2.3/src/php_pqcur.c:264:37: error: syntax error [syntaxError] pq-2.2.3/src/php_pqexc.c:78:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable zend_ce_throwable [valueFlowBailoutIncompleteVar] pq-2.2.3/src/php_pqlob.c:230:38: error: syntax error [syntaxError] pq-2.2.3/src/php_pqres.c:838:2: error: There is an unknown macro here somewhere. Configuration is required. If ZEND_ARG_INFO is a macro then please configure it. [unknownMacro] pq-2.2.3/src/php_pqstm.c:165:37: error: syntax error [syntaxError] pq-2.2.3/src/php_pqtxn.c:183:37: error: syntax error [syntaxError] pq-2.2.3/src/php_pqtypes.c:193:37: error: syntax error [syntaxError] diff: DONE