Annotation of embedaddon/php/Zend/tests/call_user_func_004.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Calling non-static method with call_user_func()
                      3: --FILE--
                      4: <?php
                      5: 
                      6: class foo {
                      7:        public function teste() {
                      8:                $this->a = 1;
                      9:        }
                     10: }
                     11: 
                     12: call_user_func(array('foo', 'teste'));
                     13: 
                     14: ?>
                     15: --EXPECTF--
                     16: Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method foo::teste() should not be called statically in %s on line %d
                     17: 
                     18: Fatal error: Using $this when not in object context in %s on line %d

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