Annotation of embedaddon/php/ext/standard/tests/assert/assert_error.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: assert() - error - give assert nonsense string with quiet_eval on then off
3: --INI--
4: assert.active = 1
5: assert.warning = 1
6: assert.callback = f1
7: assert.bail = 0
8: assert.quiet_eval = 0
9: --FILE--
10: <?php
11: function f1()
12: {
13: echo "f1 called\n";
14: }
15:
16: $sa = "threemeninaboat";
17:
18: var_dump($r2=assert($sa));
19:
20: var_dump($ra0 = assert_options(ASSERT_QUIET_EVAL, 1));
21:
22: var_dump($r2=assert($sa));
23: --EXPECTF--
24: Notice: Use of undefined constant threemeninaboat - assumed 'threemeninaboat' in %s(9) : assert code on line 1
25: bool(true)
26: int(0)
27: bool(true)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>