From cde693d8764936c2d555e4f86a910726e70c60a9 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Fri, 25 Oct 2002 05:47:48 +0000 Subject: [PATCH] - 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 --- reference/info/functions/assert.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/reference/info/functions/assert.xml b/reference/info/functions/assert.xml index f65f531021..8fe13667d9 100644 --- a/reference/info/functions/assert.xml +++ b/reference/info/functions/assert.xml @@ -1,5 +1,5 @@ - + @@ -23,7 +23,12 @@ The advantages of a string assertion are less overhead when assertion checking is off and messages containing the assertion expression when - an assertion fails. + an assertion fails. This means that if you pass a boolean condition + as assertion this condition will not show up as + parameter to the assertion function which you may have defined with the + assert_options function, the condition is converted + to a string before calling that handler function, and the boolean &false; + is converted as the empty string. Assertions should be used as a debugging feature only. You may