1--TEST--
2assert() - basic - Test recoverable error
3--INI--
4assert.active = 1
5assert.warning = 1
6assert.callback = f1
7assert.quiet_eval = 0
8assert.bail = 0
9error_reporting = -1
10display_errors = 1
11--FILE--
12<?php
13$sa = "0 $ 0";
14var_dump($r2 = assert($sa, "Describing what was asserted"));
15--EXPECTF--
16Deprecated: assert(): Calling assert() with a string argument is deprecated in %s on line %d
17
18Fatal error: Uncaught ParseError: syntax error, unexpected '$', expecting ';' in %s(%d) : assert code:1
19Stack trace:
20#0 %s(%d): assert('0 $ 0', 'Describing what...')
21#1 {main}
22
23Next Error: Failure evaluating code:
24Describing what was asserted:"0 $ 0" in %s:%d
25Stack trace:
26#0 %s(%d): assert('0 $ 0', 'Describing what...')
27#1 {main}
28  thrown in %s on line %d
29