From cd59518c88c2989446a1e272f38154bc9149d9b8 Mon Sep 17 00:00:00 2001 From: Damien Seguy Date: Wed, 18 Jul 2001 13:37:26 +0000 Subject: [PATCH] Reordered example, removed extra u git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@51723 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/info.xml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 ("")'); - ?> - +?> + +