Annotation of embedaddon/php/Zend/tests/bug34786.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #34786 (2 @ results in change to error_reporting() to random value)
        !             3: --FILE--
        !             4: <?php
        !             5: function foo($a,$b,$c) {
        !             6: echo "foo: ".error_reporting()."\n";
        !             7: }
        !             8: 
        !             9: function bar() {
        !            10: echo "bar: ".error_reporting()."\n";
        !            11: }
        !            12: 
        !            13: error_reporting(1);
        !            14: echo "before: ".error_reporting()."\n";
        !            15: @foo(1,@bar(),3);
        !            16: echo "after: ".error_reporting()."\n";
        !            17: ?>
        !            18: --EXPECT--
        !            19: before: 1
        !            20: bar: 0
        !            21: foo: 0
        !            22: after: 1

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