<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >ZEND_WRONG_PARAM_COUNT_WITH_RETVAL</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="PHP 手册" HREF="index.html"><LINK REL="UP" TITLE="API 函数和宏参考手册(尚未完成)" HREF="x256862.html"><LINK REL="PREVIOUS" TITLE="ZEND_WRITE" HREF="zend-macro.zend-write.html"><LINK REL="NEXT" TITLE="ZEND_WRONG_PARAM_COUNT" HREF="zend-macro.zend-wrong-param-count.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP 手册</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="zend-macro.zend-write.html" ACCESSKEY="P" >上一页</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="zend-macro.zend-wrong-param-count.html" ACCESSKEY="N" >下一页</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="zend-api-macro.zend-wrong-param-count-with-retval" ></A >ZEND_WRONG_PARAM_COUNT_WITH_RETVAL</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN285071" ></A >ZEND_WRONG_PARAM_COUNT_WITH_RETVAL -- Generate standard error message and return custom value</DIV ><DIV CLASS="refsect1" ><A NAME="AEN285074" ></A ><H2 >说明</H2 ><P CLASS="literallayout" >#include <zend_API.h></P ><P CLASS="literallayout" >#include <zend_API.h></P >void <B CLASS="methodname" >ZEND_WRONG_PARAM_COUNT_WITH_RETVAL</B > ( mixed return_value )<BR ></BR ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >注意: </B >This macro is part of the API but not used in any bundled or PECL extension</P ></BLOCKQUOTE ></DIV ><P > <B CLASS="function" >ZEND_WRONG_PARAM_COUNT_WITH_RETVAL()</B > 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. </P ><P > The <CODE CLASS="parameter" >return_value</CODE > parameter is returned to the calling function of the current one. </P ><P > <B CLASS="function" >ZEND_WRONG_PARAM_COUNT_WITH_RETVAL()</B > is actually a convenience wrapper for <A HREF="zend-api.zend-wrong-param-count.html" ><B CLASS="function" >zend_wrong_param_count()</B ></A >. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="zend-macro.zend-write.html" ACCESSKEY="P" >上一页</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >起始页</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="zend-macro.zend-wrong-param-count.html" ACCESSKEY="N" >下一页</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >ZEND_WRITE</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="x256862.html" ACCESSKEY="U" >上一级</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >ZEND_WRONG_PARAM_COUNT</TD ></TR ></TABLE ></DIV ></BODY ></HTML >