<?php
function match( $mask , $name ) {
if ( $pattern == $tested ) {
return match( $mask , $name ) ;
} else {
return false ;
}
return true ;
} else {
return false ;
}
}
$a = match( тест1 , тест) ;
PD9waHAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKCmZ1bmN0aW9uIG1hdGNoKCRtYXNrLCAkbmFtZSkgewoJJHBhdHRlcm4gPSBtYl9zdWJzdHIoJG1hc2ssIDAsIDEpOwoJJHRlc3RlZCA9IG1iX3N1YnN0cigkbmFtZSwgMCwgMSk7CgoJaWYoIWVtcHR5KCR0ZXN0ZWQpIGFuZCAhZW1wdHkoJHBhdHRlcm4pKSB7CgkJCgkJaWYoJHBhdHRlcm4gPT0gJHRlc3RlZCkgewoJCQkkbWFzayA9IG1iX3N1YnN0cigkbWFzaywgMSk7CgkJCSRuYW1lID0gbWJfc3Vic3RyKCRuYW1lLCAxKTsKCQkJcmV0dXJuIG1hdGNoKCRtYXNrLCAkbmFtZSk7CgkJfSBlbHNlIHsKCQkJcmV0dXJuIGZhbHNlOwoJCX0KCQkKCX0gZWxzZWlmIChlbXB0eSgkdGVzdGVkKSBhbmQgZW1wdHkoJHBhdHRlbikpIHsKCQlyZXR1cm4gdHJ1ZTsKCX0gZWxzZSB7CgkJcmV0dXJuIGZhbHNlOwoJfQoKfQoKJGEgPSBtYXRjaCjRgtC10YHRgjEsINGC0LXRgdGCKTsKCnZhcl9kdW1wKCRhKTs=