#3817 + test case

PhpManager small fix