diff --git a/functions/info.xml b/functions/info.xml index 063d88e62c..4a92eccde1 100644 --- a/functions/info.xml +++ b/functions/info.xml @@ -62,14 +62,15 @@ The callback function should accept three arguments. The first argument will contain the file the assertion failed in. The second - arugument will contain the line the assertion failed on and the + argument will contain the line the assertion failed on and the third argument will contain the expression that failed (if any - literal values such as 1 or "two" will not be passed via this argument) - Handle a failed assertion with a custom handler - - <?php + + Handle a failed assertion with a custom handler + +<?php // Active assert and make it quiet assert_options (ASSERT_ACTIVE, 1); assert_options (ASSERT_WARNING, 0); @@ -88,8 +89,9 @@ assert_options (ASSERT_CALLBACK, 'my_assert_handler'); // Make an assertion that should fail assert ('mysql_query ("")'); - ?> - +?> + +