derick Fri Oct 25 01:47:49 2002 EDT Modified files: /phpdoc/en/reference/info/functions assert.xml Log: - Document passing of the condition to the assertion handler some more. Index: phpdoc/en/reference/info/functions/assert.xml diff -u phpdoc/en/reference/info/functions/assert.xml:1.2 phpdoc/en/reference/info/functions/assert.xml:1.3 --- phpdoc/en/reference/info/functions/assert.xml:1.2 Wed Apr 17 02:39:24 2002 +++ phpdoc/en/reference/info/functions/assert.xml Fri Oct 25 01:47:48 2002 @@ -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
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php