Annotation of embedaddon/php/ext/standard/tests/misc/syslog_vars_variation2.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: define_syslog_variables() variation 2
3: --FILE--
4: <?php
5: define_syslog_variables();
6:
7: $standard_types = Array(
8: 'LOG_EMERG',
9: 'LOG_ALERT',
10: 'LOG_CRIT',
11: 'LOG_ERR',
12: 'LOG_WARNING',
13: 'LOG_NOTICE',
14: 'LOG_INFO',
15: 'LOG_DEBUG',
16: 'LOG_KERN',
17: 'LOG_USER',
18: 'LOG_MAIL',
19: 'LOG_DAEMON',
20: 'LOG_AUTH',
21: 'LOG_LPR',
22: 'LOG_PID',
23: 'LOG_CONS',
24: 'LOG_ODELAY',
25: 'LOG_NDELAY'
26: );
27:
28: foreach($standard_types as $logtype)
29: {
30: var_dump(isset(${$logtype}));
31: }
32: ?>
33: --EXPECTF--
34: Deprecated: Function define_syslog_variables() is deprecated in %s on line %d
35: bool(true)
36: bool(true)
37: bool(true)
38: bool(true)
39: bool(true)
40: bool(true)
41: bool(true)
42: bool(true)
43: bool(true)
44: bool(true)
45: bool(true)
46: bool(true)
47: bool(true)
48: bool(true)
49: bool(true)
50: bool(true)
51: bool(true)
52: bool(true)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>