1--TEST-- 2ZE2 An interface method allows additional default arguments 3--SKIPIF-- 4<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?> 5--FILE-- 6<?php 7 8error_reporting(4095); 9 10interface test { 11 public function bar(); 12} 13 14class foo implements test { 15 16 public function bar($foo = NULL) { 17 echo "foo\n"; 18 } 19} 20 21$foo = new foo; 22$foo->bar(); 23 24?> 25--EXPECT-- 26foo 27 28