1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 297028 $ -->
<refentry xml:id="zend-api-macro.zend-wrong-param-count-with-retval" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>ZEND_WRONG_PARAM_COUNT_WITH_RETVAL</refname>
<refpurpose>Generate standard error message and return custom value</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<literallayout>#include <zend_API.h></literallayout>
<literallayout>#include <zend_API.h></literallayout>
<methodsynopsis>
<type>void</type><methodname>ZEND_WRONG_PARAM_COUNT_WITH_RETVAL</methodname>
<methodparam><type>mixed</type><parameter>return_value</parameter></methodparam>
</methodsynopsis>
<note><simpara>This macro is part of the API but not used in any bundled or PECL extension</simpara></note>
<para>
<function>ZEND_WRONG_PARAM_COUNT_WITH_RETVAL</function> produces a standard warning message
for functions or class methods that have been called with a wrong number of
parameters and returns its parameter to the calling function.
The macro automaticly puts the right function name and class
name (if needed) into the error message.
</para>
<para>
The <parameter>return_value</parameter> parameter is returned to the calling
function of the current one.
</para>
<para>
<function>ZEND_WRONG_PARAM_COUNT_WITH_RETVAL</function> is actually a convenience
wrapper for <function>zend_wrong_param_count</function>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
|