dams Wed Jul 18 09:37:27 2001 EDT
Modified files:
/phpdoc/en/functions info.xml
Log:
Reordered example, removed extra u
Index: phpdoc/en/functions/info.xml
diff -u phpdoc/en/functions/info.xml:1.55 phpdoc/en/functions/info.xml:1.56
--- phpdoc/en/functions/info.xml:1.55 Sat Jul 7 17:27:10 2001
+++ phpdoc/en/functions/info.xml Wed Jul 18 09:37:26 2001
@@ -62,14 +62,15 @@
<para>
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)
</para>
<para>
- Handle a failed assertion with a custom handler
- <informalexample>
- <programlisting><?php
+ <example>
+ <title>Handle a failed assertion with a custom handler</title>
+ <programlisting role="php">
+<?php
// Active assert and make it quiet
assert_options (ASSERT_ACTIVE, 1);
assert_options (ASSERT_WARNING, 0);
@@ -88,8 +89,9 @@
// Make an assertion that should fail
assert ('mysql_query ("")');
- ?></programlisting>
- </informalexample>
+?>
+ </programlisting>
+ </example>
</para>
</refsect1>
</refentry>