php
<?php namespace X\Y; function foo() { echo __FUNCTION__."\n"; } namespace X\Z; function foo() { echo __FUNCTION__."\n"; }