1--TEST-- 2default argument value in interface implementation 3--SKIPIF-- 4<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?> 5--FILE-- 6<?php 7 8interface test { 9 public function bar(); 10} 11 12class foo implements test { 13 14 public function bar($arg = 2) { 15 var_dump($arg); 16 } 17} 18 19$foo = new foo; 20$foo->bar(); 21 22?> 23--EXPECT-- 24int(2)