.. _structures-printfarguments: .. _printf-number-of-arguments: Printf Number Of Arguments ++++++++++++++++++++++++++ The number of arguments provided to `printf() `_, `vprintf() `_ and `vsprintf() `_ doesn't match the format string. Extra arguments are ignored, and are dead code as such. Missing arguments are reported with a warning, and nothing is displayed. Omitted arguments produce an `error `_. .. code-block:: php See also `printf `_, `sprintf `_ and `vsprintf `_. Related PHP errors ------------------- + `0 `_ Connex PHP features ------------------- + `print `_ Suggestions ___________ * Sync the number of argument with the format command Specs _____ +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Short name | Structures/PrintfArguments | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Analyze `, :ref:`CE `, :ref:`CI-checks ` | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 1.0.1 | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Instant (5 mins) | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Precision | Medium | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Examples | :ref:`case-phpipam-structures-printfarguments` | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Community Edition `_, `Exakat Cloud `_ | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+