]> granicus.if.org Git - php/commitdiff
- Should be static and be called (comitted wrong version)
authorMarcus Boerger <helly@php.net>
Sat, 20 May 2006 09:11:50 +0000 (09:11 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 20 May 2006 09:11:50 +0000 (09:11 +0000)
Zend/tests/catch_004.phpt

index f91da60dc08518f556dbd265fb36a5ea3958b094..54920b8947b0373023c8e2607819723bcb30f81a 100755 (executable)
@@ -21,7 +21,7 @@ class MyObject
                echo __METHOD__ . "() Must not be called\n";
        }
        
-       function test()
+       static function test()
        {
                try
                {
@@ -34,6 +34,8 @@ class MyObject
        }
 }
 
+MyObject::test();
+
 ?>
 ===DONE===
 --EXPECT--