mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
- Document passing of the condition to the assertion handler some more.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@101229 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
eefb58e087
commit
cde693d876
1 changed files with 7 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- splitted from ./en/functions/info.xml, last change in rev 1.51 -->
|
||||
<refentry id="function.assert">
|
||||
<refnamediv>
|
||||
|
@ -23,7 +23,12 @@
|
|||
The advantages of a string <parameter>assertion</parameter> are
|
||||
less overhead when assertion checking is off and messages
|
||||
containing the <parameter>assertion</parameter> expression when
|
||||
an assertion fails.
|
||||
an assertion fails. This means that if you pass a boolean condition
|
||||
as <parameter>assertion</parametre> this condition will not show up as
|
||||
parameter to the assertion function which you may have defined with the
|
||||
<function>assert_options</function> function, the condition is converted
|
||||
to a string before calling that handler function, and the boolean &false;
|
||||
is converted as the empty string.
|
||||
</para>
|
||||
<para>
|
||||
Assertions should be used as a debugging feature only. You may
|
||||
|
|
Loading…
Reference in a new issue