mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
replace some images by plain text
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@205753 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
83475bb770
commit
dd54706d7f
4 changed files with 11 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<sect1 id="zend.arguments">
|
||||
<title>Accepting Arguments</title>
|
||||
<para>
|
||||
|
@ -49,12 +49,11 @@ if(ZEND_NUM_ARGS() != 2) WRONG_PARAM_COUNT;
|
|||
If the function is not called with two
|
||||
arguments, it exits with an error message. The code snippet above
|
||||
makes use of the tool macro <literal>WRONG_PARAM_COUNT</literal>,
|
||||
which can be used to generate a standard error message (see <xref linkend='fig.wrong-param-count'/>).
|
||||
</para>
|
||||
<figure id='fig.wrong-param-count'>
|
||||
<title><literal>WRONG_PARAM_COUNT</literal> in action.</title>
|
||||
<graphic fileref="figures/zend.03-wrong-parameter-count.png"/>
|
||||
</figure>
|
||||
which can be used to generate a standard error message like:
|
||||
<![CDATA[
|
||||
"Warning: Wrong parameter count for firstmodule() in /home/www/htdocs/firstmod.php on line 5"
|
||||
]]>
|
||||
</para>
|
||||
<para>
|
||||
This macro prints a default error message and then returns to the caller.
|
||||
Its definition can also be found in <filename>zend_API.h</filename> and looks
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 5.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 6.8 KiB |
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<sect1 id="zend.using">
|
||||
<title>Using Extensions</title>
|
||||
<para>
|
||||
|
@ -41,12 +41,10 @@ print("We sent '$param' and got '$return'");
|
|||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Calling this PHP file in your Web browser should give you the
|
||||
output shown in <xref linkend='fig.out-first'/>.
|
||||
<figure id='fig.out-first'>
|
||||
<title>Output of first_module.php.</title>
|
||||
<graphic fileref="figures/zend.02-first-module-output.png"/>
|
||||
</figure>
|
||||
Calling this PHP file should output the following:
|
||||
<![CDATA[
|
||||
We sent '2' and got '2'
|
||||
]]>
|
||||
</para>
|
||||
<para>
|
||||
If required, the dynamic loadable module is loaded by calling the
|
||||
|
|
Loading…
Reference in a new issue