Annotation of embedaddon/php/ext/standard/tests/network/define_syslog_variables_error.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test define_syslog_variables() function : error conditions 
                      3: --FILE--
                      4: <?php
                      5: /* Prototype  : void define_syslog_variables(void)
                      6:  * Description: Initializes all syslog-related variables 
                      7:  * Source code: ext/standard/syslog.c
                      8:  * Alias to functions: 
                      9:  */
                     10: 
                     11: echo "*** Testing define_syslog_variables() : error conditions ***\n";
                     12: 
                     13: // One argument
                     14: echo "\n-- Testing define_syslog_variables() function with one argument --\n";
                     15: $extra_arg = 10;
                     16: var_dump( define_syslog_variables($extra_arg) );
                     17: 
                     18: ?>
                     19: ===DONE===
                     20: --EXPECTF--
                     21: *** Testing define_syslog_variables() : error conditions ***
                     22: 
                     23: -- Testing define_syslog_variables() function with one argument --
                     24: 
                     25: Deprecated: Function define_syslog_variables() is deprecated in %s on line %d
                     26: 
                     27: Warning: define_syslog_variables() expects exactly 0 parameters, 1 given in %s on line %d
                     28: NULL
                     29: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>